Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2894
| From | Ethan A Merritt <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: with image and corners2color |
| Date | 2015-05-06 11:28 -0700 |
| Organization | gnuplot development |
| Message-ID | <midmdu$kln$1@dont-email.me> (permalink) |
| References | <cea3c52e-78ed-448c-915b-f9bf269fcb88@googlegroups.com> |
Vasilis wrote: > Hi all, > > In my program I am generating a lot of 2D color plots. For the moment I > was making splots, using the "set pm3d map explicit corners2color c1" to > map to the lower left corner of the pixel. > > I've tried to convert it to 2d plots using the "with image" but now the > pixel is centered on the value. So all colors are shifted by half pixel in > both dimensions. > > Is there a way to use a similar setting as corners2color for the "with > image" command Gnuplot does not do any averaging or reassignment of pixel color within an image. If the issue is just a coordinate offset, note that you can control the origin and scaling (pixels size) of an image using additional keywords origin=<XX,YY> dx=<DX> dy=<DY> Examples: http://gnuplot.sourceforge.net/demo_cvs/image.html http://gnuplot.sourceforge.net/demo_cvs/barchart_art.html It is also possible that you can simply use the same splot+pm3d commands you already have and produce a 2D plot by first saying "set view map". Ethan > > Thanks in advance > Vasilis
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
with image and corners2color Vasilis <vvlachoudis@gmail.com> - 2015-05-06 06:12 -0700
Re: with image and corners2color Ethan A Merritt <sfeam@users.sourceforge.net> - 2015-05-06 11:28 -0700
Re: with image and corners2color Vasilis <vvlachoudis@gmail.com> - 2015-05-06 23:44 -0700
Re: with image and corners2color Ethan A Merritt <sfeam@users.sourceforge.net> - 2015-05-07 15:28 -0700
csiph-web