[Scilab-users] RE(2): plotxxyyy
Rafael Guerra
jrafaelbguerra at hotmail.com
Tue Oct 11 17:39:24 CEST 2016
Hi Frieder,
The revised code here below should meet better your requirements for plotting a 2nd x-axis, as no 4th subplot is needed. You may play further with the margins to fit your data.
x1 = (-10:0.5:10)'; y1 = sin(x1);
x2 = (-20:20)'; y2= 5*cos(x2);
x3 = (-30:2:30)';
clf()
subplot(3,1,1)
plot2d(x1,y1,color('red'),strf="020"); //no box surrounding plot
a=gca();
a.x_location = 'top';
a.axes_visible = ['off','on'];
a.margins = [0.1 0.1 0.2 0.1];
subplot(3,1,2)
plot2d(x2,y2,color('blue'),strf="020"); ////no box surrounding plot
a=gca();
a.axes_visible = ['off','on'];
subplot(3,1,3)
plot2d([x1,x2],[y1,y2],style=[color('cyan'),color('green')],strf="020")
a=gca();
a.axes_visible = ['on','on'];
a = newaxes();
a.axes_bounds =[0,-0.07,1,1];
a.filled = 'off';
plot2d(x3,0*x3,strf="020"); //no box surrounding plot
a=gca();
a.children.children(1).visible = "off"; // line invisible
a.axes_visible = ['on','off'];
a.x_location = 'top';
PS:
Would it be possible to increase the message size limit of 100 KB on this ML?
100 KB seems too restrictive.
Regards,
Rafael
More information about the users
mailing list