Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plotting an adaptive mesh Date: Tue, 17 Jan 2017 11:18:50 +0100 Organization: solani.org Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1484648331 13216 eJwFwYcBwDAIA7CXyjDjHEjq/0+IBAuJkx4IB8HmSRj+4RblbjWvgSnaNfh0XDuoFcb1Kj4omBEl (17 Jan 2017 10:18:51 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 17 Jan 2017 10:18:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 In-Reply-To: Cancel-Lock: sha1:d2S5985peFnXKQDIpVtwgsg/WEE= X-User-ID: eJwFwYEBgDAIA7CXwEKL5wwc/59gkqBzFExGbu7YTq905Vfd7mv+JBs6qsWJepuBEFTIz34lkBCn X-NNTP-Posting-Host: eJwFwYkBwEAEBMCWiGcpB0f/JWTGxNkH6uZqZ4dBtizviiWbArhpBenRy4jv3tBulWZFl/wa9RFy Xref: csiph.com comp.graphics.apps.gnuplot:3529 Am 17.01.2017 um 10:54 schrieb maierd83@gmail.com: > Hello, > > I am doing some calculations on the basis of an adaptive mesh. So, my data look like: > > |----|----|---------|---------| > | 1 | 6 | | | > |----|----| 4 | 9 | > | 2 | 9 | | | > |----|----|----|----|---------| > | | 1 | 8 | | > | 5 |----|----| 2 | > | | 8 | 5 | | > |---------|----|----|----|----| > | | | 8 | 2 | > | 1 | 4 |----|----| > | | | 3 | 7 | > |---------|---------|----|----| > > I want to plot these data with an 2D heat map. > > To do so, I am expanding the fine pitched mesh to the hole data set > and used "plot "data.dat" with image pixels". > > This works, but it generates big data set (30MB) and also a big image (my used output is svg -> ~60MB) and is against the idea of an adaptive mesh. > For a bitmap, you should use a bitmap output (e.g. png). A vector graphic that consists of single pixels is simply a large waste of disk space. As for the plotting, "set dgrid3d" will not lead to exactly the same result as filling each larger mesh with the same value, but perhaps it'll suit your needs. Try out the different kernels. Otherwise, you might write a program that expands the dataset (i.e. fills out the larger meshes) online, and pipe the output into gnuplot. plot '< expand dataset.dat' with image That way you don't have those large, redundant files lying around. Karl