[Scilab-users] plot2d question

sgougeon at free.fr sgougeon at free.fr
Mon Jul 4 06:51:54 CEST 2016


>----- Mail original -----
>De: "Offe rPade"
>À: users at lists.scilab.org
>Envoyé: Dimanche 3 Juillet 2016 17:58:21
>
>I could not use plot for drawing a semilog graph. So I am using plot2d, 
>but if I want the curve to have both linestyle and markers, 
>I have to draw the curve Twice, like: 

Sure not. One of the properties may be set independently after plotting, say the x-log flag:
Use plot() as usual:

clf
t = 0:%pi/20:2*%pi;
t(1) = [];
plot(t,sin(t),'ro-.')

// then
ax = gca();
ax.log_flags = "ln";

// or simply
// gca().log_flags = "ln"; with Scilab 6
// That's it


>Plot2d(x,y,1,logflag=’ln’) for the line 
// beware about the capital: plot2d instead of Plot2d

Samuel
PS : see also http://bugzilla.scilab.org/14191
I will propose to implement the "ll".. etc  flag as in plot([axes],["ln"],..), for Scilab 6.



More information about the users mailing list