support for advanced gnuplot features (was: Plotting semi-trasnparent patches?)

Ben Abbott bpabbott at mac.com
Thu Jan 29 09:49:25 CST 2009


On Thursday, January 29, 2009, at 10:09AM, "John W. Eaton" <jwe at octave.org> wrote:
>On 29-Jan-2009, Ben Abbott wrote:
>
>| 
>| On Jan 28, 2009, at 9:57 PM, John W. Eaton wrote:
>| 
>| > Even without a version of gnuplot that supports the X11 window
>| > position feature, I see a difference with this patch, and I wasn't
>| > expecting that.  Given the following sequence
>| >
>| >  xlabel ("foo");
>| >  ## move window with mouse
>| >  ylabel ("bar");
>| >
>| > Without the patch, the window stays put after moving it with the
>| > mouse.
>| >
>| > With the patch, and a version of gnuplot that does not support the
>| > position feature, the window moves back to its original position after
>| > the ylabel call.
>| 
>| I think you got that backwards (or my changeset is improperly  
>| implemented).
>| 
>| With or without my changeset , and without the gnuplot patch  
>| supporting the position feature, the window should stay put.
>
>It doesn't, at least for me.  When I apply the patch and use gnuplot
>4.2.2, and execute the sequence above, the window moves back to the
>original position after the call to ylabel.  If I remove the patch,
>the window stays put.

Ok, I found the problem. Try the attached version.

btw, while looking at this I noticed an unexpected behavior

octave:8> true && NaN
ans =  1

For Matlab

>> true && NaN
??? NaN's cannot be converted to logicals.

Shall I file a bug report?

Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-x11_position.patch
Type: application/octet-stream
Size: 6049 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090129/7f81b0c2/attachment.obj 


More information about the Octave-maintainers mailing list