Surprising behaviour of cursor command on an image
LTKunneman
With traces this works fine, and I can switch to point numbers with /P, images seem to only accept point numbers. Try my example below:
make /N=(100,100) gau=gauss(x,50,10,y,50,15);make/N=101 wxy=-50+p;display;appendimage gau vs {wxy,wxy}
cursor/I a gau 10,10;Showinfo
setscale /I x,-10,10,gau;display gau[][50]
cursor A gau 4
cursor/P B gau 4
ShowInfo
I would expect cursor A in the image to land in the top right quadrant, yet it lands in the left bottom, right on the point number. Cursors on traces do display the behaviour I expect: no flag: x, with /P on the point.
Any ideas?
Between the Cursor command you used on the image and the Cursor commands you used on the XY graph, you changed the X scaling of the matrix wave gau. Also, the XY trace uses a waveform (no X wave) but the image uses X and Y waves to set the X and Y axes of the image. So you've combined a bunch of things that made your test a confusing test of a confusing property of the Cursor command :)
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 27, 2013 at 10:11 am - Permalink
September 28, 2013 at 12:08 am - Permalink