Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: with image and corners2color Date: Thu, 07 May 2015 15:28:47 -0700 Organization: gnuplot development Lines: 27 Message-ID: References: <5a4aaebd-85ab-4dce-bcff-0beee9b03379@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Thu, 7 May 2015 22:27:43 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8e86a57dfa599721f116da4577f3d1af"; logging-data="22663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/emyfSfIZY7tmkIX09rSoA" User-Agent: KNode/4.10.5 Cancel-Lock: sha1:QvPGq7qsApXehhi5kYBnP1xKXoA= Xref: csiph.com comp.graphics.apps.gnuplot:2896 Vasilis wrote: > Thank you Ethan, > > the file I am using is not an image is a file containing > x y z1 > x+dx y z2 > ... > > x y+dy z11 > x+dx y+dy z12 > ... > > coordinates as a 3D histogram > that I was plotting with splot as pm3d map > Using the plot "with image" it works exactly as before > however the z-color mapped value now is not starting from > the x,y (lower-left) coordinate but from x-dx/2,y-dy/2 > so it is centred around x,y Yes, that is how the image styles are defined. If you are asking how to reposition the origin of the pixels, how about plot 'file' using ($1 + dx/2) : ($2 + dy/2) : 3 with image Ethan