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]> 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] > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
