X-Received: by 10.36.103.2 with SMTP id u2mr5099743itc.30.1484657358200; Tue, 17 Jan 2017 04:49:18 -0800 (PST) X-Received: by 10.157.17.114 with SMTP id p47mr1500762otp.6.1484657358173; Tue, 17 Jan 2017 04:49:18 -0800 (PST) Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!r185no1963642ita.0!news-out.google.com!h135ni5143ith.0!nntp.google.com!r185no1963640ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 17 Jan 2017 04:49:17 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=132.166.8.166; posting-account=z8Ve6goAAABn6czUgKvlbTisCOQvkNvf NNTP-Posting-Host: 132.166.8.166 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: plotting an adaptive mesh From: maierd83@gmail.com Injection-Date: Tue, 17 Jan 2017 12:49:18 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.graphics.apps.gnuplot:3532 Thanks for your answer Karl. My idea is to minimize the size of the data file and the image file. Furthe= rmore, I want to reduce the calculation time of my program. At the moment t= he expanding of the adaptive mesh to a regular mesh takes longer than the c= alculation of the adaptive mesh data. So, I want definitely get rid of the idea of expansion. As adaptive meshing seems not to be supported by gnuplot directly, I want t= o use some gnuplot plotting utilities to make it by myself. My idea: 1) Finding with stats the min and max value of my data. 2) Make a color palette according to the min and max values. 3) Plot each data point as a rectangle with the fillcolor equal to the=20 color defined according to the color palette The finer pitched data points (smaller rectangles) shall then be plotted on= top of the bigger rectangles. I hope I can do point 1) and 2) by myself, but I see problems on point 3): how can I plot a rectangle with a fillcolor defined by the index of a color= bar? Something like (not working): set obj rect cen 4,5 size 1,3 fc colorbar(5.3) At the moment I am playing with this example: reset set terminal svg size 800,600 set output "./test.svg" set style rect fc lt -1 fs noborder #stats 'data.dat' using 3 prefix "A" set xrange [2 : 8] set yrange [2 : 8] set pm3d set palette defined (0 "black", 100 "blue", 200 "red", 300 "orange", 500 "w= hite") set obj rect cen 4,5 size 1,3 fc rgb "#5FD8F0" set obj rect cen 5,4 size 1,1 fc rgb "#5FD800" set obj rect cen 5,5 size 1,1 fc rgb "#9FD900" set obj rect cen 5,6 size 1,1 fc rgb "#CFDA00" set obj rect cen 6,5 size 1,3 fc rgb "#FFDB00" plot x I don't know if this is a reasonable way to go....