plotting on top of images

Ben Abbott bpabbott at mac.com
Wed May 27 03:16:45 CDT 2009


On May 27, 2009, at 3:31 AM, Jaroslav Hajek wrote:

> On Wed, May 27, 2009 at 3:20 AM, Ben Abbott <bpabbott at mac.com> wrote:
>>
>> On May 26, 2009, at 6:33 PM, Ben Abbott wrote:
>>
>>>
>>> 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
>>
>> It appears that I've fixed the problem with my build. I appear to  
>> have a
>> working solution. However, I'm not very confident in it as I  
>> haven't studied
>> this part of the sources sufficiently to understand it sufficiently.
>>
>> The part of the sources where the problem lies appears (to me) to  
>> have been
>> contributed by David when he added the isosurface.
>>
>> David, if you have the time, can you comment?
>>
>> Ben
>>
>
> Since it seems to work, right now we're taking this one. If David
> manages to comment before the final RC of 3.2, we can still fix it.
>
> I just moved the demos to hold.m, as I don't think demos for internal
> functions make much sense.
>
> thanks

ok. It didn't occur to me to place the demos in hold.m. That is a  
better home.

Thanks
Ben




More information about the Bug-octave mailing list