plotyy problems and change proposal

David Bateman David.Bateman at motorola.com
Mon Dec 3 04:21:27 CST 2007


Michael Goffioul wrote:
> On 12/2/07, David Bateman <adb014 at gmail.com> wrote:
>   
>> What I meant is that there is nothing to stop you changing the
>> properties of one of the axis objects and that without listeners there
>> is no way to get these changes automatically reflected in the second set
>> of axis. In fact its probably better for the gnuplot code to calculate
>> the size of the axis automatically for first axis and use that to force
>> the size of the second axis..
>>     
>
> You can also screw up the plot in Matlab:
>
> h = plotyy(1:10, rand(1,10), 1:10, rand(1,10))
> set(h(1), 'position', [0.5 0.5 0.4 0.4])
>
> There's no listener on the position property. However, both axes are given
> the same position in normalized units (not the outerposition). This means
> that when resizing the figure window, the axes will still be aligned; no
> listener is needed.
>
>   
>> Alright, then what about the attached. Does this do what you want?
>>     
>
> This looks good. Although I would avoid hardcoding twice the axes position
> and use something like set(ax(2), 'position', get(ax(1), 'position')).
>
> Michael.
>
>   
Ok, then use this instead.

D.


-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch41
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20071203/cc345036/attachment.ksh 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch41.changelog
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20071203/cc345036/attachment-0001.ksh 


More information about the Octave-maintainers mailing list