plotting on top of images

John W. Eaton jwe at octave.org
Fri May 22 15:53:53 CDT 2009


On 22-May-2009, Søren Hauberg wrote:

| 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

The following change avoids the problem for me, but I don't know
whether it will break something else.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090522/9e71f1ee/attachment.ksh 
-------------- next part --------------


jwe


More information about the Bug-octave mailing list