plotting on top of images

Ben Abbott bpabbott at mac.com
Tue May 26 17:33:40 CDT 2009


On May 26, 2009, at 5:42 PM, John W. Eaton wrote:

> On 26-May-2009, Ben Abbott wrote:
>
> | While I don't recall the details, I have a test script related to  
> that
> | changeset. It is attached.
> |
> | Presently, it fails for me with and without the semicolon (but
> | slightly differently). I've attached the gnuplot errors as well.
> |
> | Ben
> |
> | <multiplot.m>| Without the ";"
> |
> | octave:10> multiplot
> | octave:11>
> | multiplot> splot "-" binary format='%float64' record=49x49 using  
> ($1):($2):($3):($4) title "" with pm3d linestyle 1 splot "-" binary  
> array=2x2 scan=yx origin=(1,1) dx=1 dy=1 using 1 title "" with image  
> splot "-" binary array=4x4 scan=yx origin=(1,1) dx=1 dy=1 using 1  
> title "" with image splot "-" binary array=2x2 scan=yx origin=(1,1)  
> dx=1 dy=1 using 1 title "" with image splot "-" binary array=4x4  
> scan=yx origin=(1,1) dx=1 dy=1 using 1 title "" with image ;
> | 
>                                                                                                                      ^
> |            line 0: ';' expected
> |
> |
> | Now with the ";"
> |
> | octave:11> multiplot
> | octave:12>
> | multiplot> splot "-" binary format='%float64' record=49x49 using  
> ($1):($2):($3):($4) title "" with pm3d linestyle 1 splot "-" binary  
> array=2x2 scan=yx origin=(1,1) dx=1 dy=1 using 1 title "" with  
> image; splot "-" binary array=4x4 scan=yx origin=(1,1) dx=1 dy=1  
> using 1 title "" with image; splot "-" binary array=2x2 scan=yx  
> origin=(1,1) dx=1 dy=1 using 1 title "" with image; splot "-" binary  
> array=4x4 scan=yx origin=(1,1) dx=1 dy=1 using 1 title "" with  
> image; splot "-" binary array=2x2 scan=yx origin=(1,1) dx=1 dy=1  
> using 1 title "" with image; splot "-" binary array=4x4 scan=yx  
> origin=(1,1) dx=1 dy=1 using 1 title "" with image; ;
> | 
>                                                                                                                      ^
> |            line 0: ';' expected
>
> These multiple splot commands come from the
>
>  hold on
>  colorbar
>  imagesc(1./hilb(2));
>  hold off
>
>  hold on
>  imagesc(1./hilb(4));
>  hold off
>
> commands?  I don't see that at all.  If I look at what's sent to
> gnuplot, I don't see any splot commands.  Also, with the current
> sources, I don't see any errors unless I make the change I proposed
> here:
>
>  https://www-old.cae.wisc.edu/pipermail/bug-octave/2009-May/ 
> 008613.html
>
> So I guess that change is not the right thing.  But without it,
> plotting lines on top of images is broken.  I think we need a fix for
> this problem before we release 3.2.0.
>
> jwe

hmmm ... it would appear something is wrong with my copy of the  
current sources :-(

I'll fix that before comment further.

Ben




More information about the Bug-octave mailing list