plotting on top of images

Søren Hauberg soren at hauberg.org
Fri May 22 15:37:47 CDT 2009


Hi All

With a recent checkout I can't seem to plot on top of images:

        A = rand (100);
        [X, Y] = find (A > 0.9);
        imshow (A)
        hold on, plot (X, Y, 'o'), hold off

This should produce a gray scale image just containing noise, but with
some red circles on top of the brightest pixels. But instead I get the
following error:

"
multiplot> plot "-" binary array=100x100 scan=yx origin=(1,1) dx=1 dy=1
using 1 title "" with image; , "-" binary format='%float64' record=1040
using ($1):($2) axes x1y1 title "" with points linestyle 2 ;

^
           line 0: invalid command


multiplot> @
           ^
           line 0: invalid character @


multiplot> (@
            ^
           line 0: invalid character @


multiplot> @
           ^
           line 0: invalid character @


multiplot> I@
            ^
           line 0: invalid character @


multiplot> �P@
           ^
           line 0: invalid character 
"

I'm using gnuplot 4.3.0 in case that matters.

Søren



More information about the Bug-octave mailing list