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

Rafael Guerra jrafaelbguerra at hotmail.com
Wed Nov 25 16:37:01 CET 2015


Hi Antoine,
 
Thanks for the tip but unfortunately a.auto_position it is not what I need.
It does not seem to cope well with 90-deg rotations of the plot axes, which I
can handle with manual title positioning (+ title rotation), whenever the
x-scale is linear.
 
I am still looking for what to use as [x,y] in a.title.position when
logflag="ln" or "ll". 
 
Thanks and regards,
 
Rafael
 
 
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine
Monmayrant
Sent: Wednesday, November 25, 2015 12:45 PM
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: Re: [Scilab-users] Title positioning on log-scale plots
 
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 <mailto: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/66d7f569/attachment.htm>


More information about the users mailing list