[Scilab-users] Plotting problem - subplot with 2 y-axis
SCHULZ Wolfgang
W.Schulz at ove.at
Wed May 7 11:13:13 CEST 2014
Hello,
I have a Scilab script with a subplot containing 2 y-axis perfectly working in Scilab 5.4.1 but I have problems in Scilab 5.5 (everything on Win7 64bit).
I attached the same plot received with both Scilab versions.
Basically I do the following:
subplot(2,1,1);
plot(amp,DE(sensor_nb,:),"-s","MarkerSize",4,"MarkerFaceColor","b");
set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1));
a=gca();
a.title.text=main_title;
.
.
a1=newaxes();
a1.filled="off"; // the background of the graphical area should be
a1.axes_bounds=a.axes_bounds;
plot(amp,anz(sensor_nb,:),'r');
set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1));
a1=gca(); //get the handle of the newly created axes
a1.tight_limits = "on";
a1.y_location = "right";
a1.axes_visible = ["off","on","off"];
.
.
subplot(2,1,2);
.
.
Any idea what is going wrong? Maybe the axes_bounds are not correct?
Thanks for your help
Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: de_sensor_001_5.4.1.gif
Type: image/gif
Size: 21572 bytes
Desc: de_sensor_001_5.4.1.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20140507/fd0011a9/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: de_sensor_001_5.5.gif
Type: image/gif
Size: 25575 bytes
Desc: de_sensor_001_5.5.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20140507/fd0011a9/attachment-0001.gif>
More information about the users
mailing list