plotting on top of images
John W. Eaton
jwe at octave.org
Tue May 26 16:42:46 CDT 2009
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
|
|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiplot.m
Type: application/octet-stream
Size: 88 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090526/68e0ce19/attachment.obj
-------------- next part --------------
| 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
More information about the Bug-octave
mailing list