[Scilab-users] New uicontrol layout: what bout axes?

Antoine Monmayrant antoine.monmayrant at laas.fr
Mon May 5 12:42:50 CEST 2014


On 05/05/2014 11:47 AM, Pierre-Aimé Agnel wrote:
>
> On 05/05/2014 11:42 AM, Antoine Monmayrant wrote:
>> On 05/05/2014 09:17 AM, Vincent COUVERT wrote:
>>> Hi Antoine,
>>>
>>> What you can do is creating axes inside "frame" uicontrols (using 
>>> newaxes) and use a layout for the frames.
>> Thanks!
>>
>> I had a look at it and I though frame only accepts uicontrols, as 
>> stated in the help page for uincontrols: "Frame: a container for 
>> other uicontrols."
>> I don't understand how I am supposed to tell newaxes to use the newly 
>> created frame as parent and not the current window.
>> If I call:
>>
>>
>> f = figure( ...
>> "layout"          , "border",...
>> "layout_options", createLayoutOptions("border", [10,20]),...
>> "visible"         , "on");
>>
>>  c = createConstraints("border", "top", [200,100]);
>>
>>  ui1 = uicontrol(f,...
>>  "style", "frame",...
>>  "backgroundcolor", [0 0 1], ...
>>  "constraints", c);
>>  a1=newaxes();
>>
> I think a1 = newaxes(ui1) may be what you are looking for.

I reported two bugs for these inaccuracies in the help pages:
13383: newaxes optional argument (handle to the parent) is not present 
in the help page
13384: uicontrols description of frames does not mention axes entities 
(only uicontrols).

Cheers,

Antoine

>> a1 is attached to f, not ui1 and placed relative to the figure, not 
>> the frame...
>>
>> I'm confused...
>>
>> Antoine
>>>
>>> Regards,
>>>
>>> Le 02/05/2014 18:05, Antoine Monmayrant a écrit :
>>>> I am a bit disappointed by the newly introduced "layout" properties.
>>>> I was expecting these properties to be available for axes in 
>>>> addition to figures and uicontrols.
>>>> This could have saved me a lot of time when generating multiple 
>>>> plots for scientific articles.
>>>> A the moment, it's a true pain in the blip to arrange by hand the 
>>>> different axes.
>>>> (Please don't mention subplot, it's quite handy but it's not really 
>>>> usable for advanced layouts).
>>>> Why were axes left behind?
>>>> Any plan to extend these properties to axes?
>>>>
>>>> Cheers,
>>>>
>>>> Antoine
>>>> _______________________________________________
>>>> users mailing list
>>>> users at lists.scilab.org
>>>> http://lists.scilab.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at lists.scilab.org
>>> http://lists.scilab.org/mailman/listinfo/users
>>>
>>
>>
>



More information about the users mailing list