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

Antoine Monmayrant antoine.monmayrant at laas.fr
Wed Nov 25 13:45:12 CET 2015


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)?
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20151125/3b5bafc2/attachment.htm>


More information about the users mailing list