[Scilab-users] Title positioning on log-scale plots

Serge Steer Serge.Steer at inria.fr
Wed Nov 25 14:15:25 CET 2015


Le 25/11/2015 13:45, Antoine Monmayrant a écrit :
> Le 11/25/2015 12:45 PM, Rafael Guerra a écrit :
>>
>> Dear Scilaber’s,
>>
>> Does anybody know how to [x,y]-position titles on log-scale plots?
>>
>> See examples below which plot ok only if the x-scale is linear:
>>
>> _clf_;
>>
>> x=1:100;y=x.^0.2;
>>
>> _subplot_(2,1,1)
>>
>> plot2d(x,y,5,logflag="ln")/// changing to "nn" or "nl" works, but not 
>> "ll" or "ln"/
>>
>> a=_gca_();
>>
>> a.title.text="TITLE#1: out for lunch for logarithmic x-scale";
>>
>> a.title.position=[min(x),max(y)+_stdev_(y)/3];
>>
>> xgrid()
>>
>> _subplot_(2,1,2)
>>
>> plot2d(x,y,2,logflag="nn")
>>
>> a=_gca_();
>>
>> a.title.text="TITLE#2: OK for linear x-scale";
>>
>> a.title.position=[min(x),max(y)+_stdev_(y)/3];
>>
>> xgrid()
>>
>> On a related matter, is it possible to use figure coordinates to 
>> position titles (instead of the axes coordinates)?
>>
You can use xchange function to convert pixel coordinates to axes 
coordinates
Serge
>>
>> Thanks and regards,
>>
>> Rafael
>>
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>
> Hi
>
> is
>     a.title.auto_position="on"
> ok for you?
>
> Cheers,
>
> Antoine
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20151125/ff795e2f/attachment.htm>


More information about the users mailing list