[Scilab-users] Plotting problem - subplot with 2 y-axis

SCHULZ Wolfgang W.Schulz at ove.at
Mon May 12 18:56:46 CEST 2014


Hello,
I haven't heard anything. Are you guy thinking that this is a bug which I should report on bugzilla?
Thanks for your help
Wolfgang

> -----Ursprüngliche Nachricht-----
> Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von SCHULZ
> Wolfgang
> Gesendet: Mittwoch, 07. Mai 2014 11:13
> An: International users mailing list for Scilab.
> Betreff: [Scilab-users] Plotting problem - subplot with 2 y-axis
> 
> 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



More information about the users mailing list