Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3532
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2017-01-17 04:49 -0800 |
| References | <b72ec22a-2510-4fe9-ac7f-ffd25801b221@googlegroups.com> <o5kr2b$ct0$1@solani.org> |
| Message-ID | <c8b4aecb-5e61-4b5b-9d4b-b7f3a1f06fe8@googlegroups.com> (permalink) |
| Subject | Re: plotting an adaptive mesh |
| From | maierd83@gmail.com |
Thanks for your answer Karl. My idea is to minimize the size of the data file and the image file. Furthermore, I want to reduce the calculation time of my program. At the moment the expanding of the adaptive mesh to a regular mesh takes longer than the calculation 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 to 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 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 colorbar? 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 "white") 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....
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 01:54 -0800
Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 11:18 +0100
Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 04:49 -0800
Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 14:11 +0100
Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 06:05 -0800
Re: plotting an adaptive mesh Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 15:25 +0100
Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 07:25 -0800
svg with bitmap image graph? (was: Re: plotting an adaptive mesh) Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-17 21:36 +0100
Re: svg with bitmap image graph? (was: Re: plotting an adaptive mesh) Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-01-17 14:41 -0800
Re: plotting an adaptive mesh maierd83@gmail.com - 2017-01-17 06:07 -0800
csiph-web