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

Rafael Guerra jrafaelbguerra at hotmail.com
Wed Nov 25 12:45:29 CET 2015


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


More information about the users mailing list