[Scilab-users] 2d plot y-axis expresio

Serge Steer Serge.Steer at inria.fr
Fri May 8 21:05:40 CEST 2015


Le 07/05/2015 01:58, fujimoto2005 a écrit :
> Thanks a lot.
> 1,I don't know well about c languge.please the meaning of 1st "%",
The first % opens the format, the .1 give the number of decimal digits
> 4th"f" and
f sands for floating point
> last"%%" of "%.1f%%\n"
to display a % in a C format one should set 2 %
>
> 2,how to display only the range between 0.04 and 0.05 when
> y=[0.01,0.03,0.041,0.042,0.05]?
clf;plot(y)
ax=gca();
yt=ax.y_ticks;
yt.locations=y';
yt.labels=msprintf("%.1f%%\n",100*y')
ax.y_ticks=yt;
>
> 3,how to display as the wider range like from 0.01 to 0.09 when
> y=[0.01,0.03,0.041,0.042,0.05]?
ax.data_bounds(2,2)=0.09;

Serge Steer
>
>
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/2d-plot-y-axis-expresio-tp4032213p4032215.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list