You can do it a couple of different ways (as always). The one you probably want is to feed in X and Y coordinates of each pixel. This works fine for affine (linear) relationships between pixel index and desired scientific value. Try:
$a = random(3,4); gplot with=>'image',$a->xlinvals(6,12), $a->ylinvals(10,20), $a You can also feed in a plot option (‘xtics’) to control the x and y ticks with more precision. > On Jan 16, 2015, at 11:35 AM, Ingo Schmid <ingo...@gmx.at> 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 > Perldl@jach.hawaii.edu > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________ Perldl mailing list Perldl@jach.hawaii.edu http://mailman.jach.hawaii.edu/mailman/listinfo/perldl