Heh.

Yes, with xr and yr you get exactly what you ask for — those set the exact 
ranges of the x and y axes.  The autoscaling for images knows about the width 
of individual pixels, which is why the last row doesn’t get cut off by default.


> On Jan 16, 2015, at 12:26 PM, Derek Lamb <[email protected]> wrote:
> 
> From 
> http://search.cpan.org/~zowie/PDL-Graphics-Gnuplot-2.004/README.pod#Images 
> <http://search.cpan.org/~zowie/PDL-Graphics-Gnuplot-2.004/README.pod#Images>, 
> you can specify the x- and y-coordinates of each pixel (for trivial arrays at 
> least):
> 
> gplot xr=>[4.5,13.5],yr=>[2.5,6.5],with=>'image',xvals($a)*3+6,yvals($a)+3,$a
> 
> I had to add in the xr and yr because it doesn't seem to account for margins 
> properly without it.
> 
> best,
> Derek
> 
> 
>> On Jan 16, 2015, at 11:35 AM, Ingo Schmid <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi,
>> 
>> I'm stuck in the attempt to correctly display x / y axis tics in an image 
>> plot.
>> 
>> let's say I want to plot 
>> 
>> $a=random(3,4);
>> gplot with=>'image',$a;
>> 
>> and my x-axis should display [6,9,12]. What do I need to add to the code?
>> 
>> Thanks
>> Ingo
>> 
>> 
>> _______________________________________________
>> Perldl mailing list
>> [email protected] <mailto:[email protected]>
>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to