Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3528
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2017-01-17 01:54 -0800 |
| Message-ID | <b72ec22a-2510-4fe9-ac7f-ffd25801b221@googlegroups.com> (permalink) |
| Subject | plotting an adaptive mesh |
| From | 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 |----|----|---------|---------| | 1 | 6 | 4 | 4 | 9 | 9 | |----|----|----|----|----|----| | 2 | 9 | 4 | 4 | 9 | 9 | |----|----|----|----|---------| | 5 | 5 | 1 | 8 | 2 | 2 | |----|----|----|----|----|----| | 5 | 5 | 8 | 5 | 2 | 2 | |---------|----|----|----|----| | 1 | 1 | 4 | 4 | 8 | 2 | |----|----|----|----|----|----| | 1 | 1 | 4 | 4 | 3 | 7 | |---------|---------|----|----| 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. In stackoverflow, I have found the idea to use set pm3d corners2color: http://stackoverflow.com/questions/19294342/heatmap-with-gnuplot-on-a-non-uniform-grid But this doesn't help in my case as the fine pitched pixels are not in one column but span over a diagonal. A new idea would be to plot each rectangle by myself and filling it with a color according to its data value. I remember something like a statistics command in gnuplot, but I can't remember the details. Furthermore I am wondering if I have to print the rectangle command for each rectangle I want to draw (in principle I can do that because I produce the data by myself but printing some repetitive text ~1000 times will blow up again the data file) or if I can use a command that reads the values written in the data file. Or this is all not a good idea and maybe there is an easy way to plot an adaptive mesh in gnuplot? Thanks for any help.
Back to comp.graphics.apps.gnuplot | Previous | Next — 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