Re: [Scilab-users] plot2d question
It works for me in Scilab 5.5.2 and 6.0.0, the result is shown here: From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Offe rPade Sent: Sunday, July 03, 2016 11:27 PM To: 'Users mailing list for Scilab' Subject: Re: [Scilab-users] plot2d question Sorry Rafael It did not work. Thanks anyway From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra Sent: Sunday, July 03, 2016 9:24 PM To: 'Users mailing list for Scilab' Subject: Re: [Scilab-users] plot2d question Offer, Would this be ok: x=(1:10)'; y=log(x); plot2d([x x],[y y],[1,-5],logflag='ln') Regards, Rafael From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Offe rPade Sent: Sunday, July 03, 2016 5:58 PM To: users@lists.scilab.org <mailto:users@lists.scilab.org> Subject: [Scilab-users] plot2d question 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: Plot2d(x,y,1,logflag='ln') for the line And then: Plot2d(x,y,-5,logflag='ln') for the markers. It is very cumbersome. Does anyone know a simple way to do it? Offer ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] plot2d question
Thank you Samue! It works!!! Offer -Original Message- From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of sgoug...@free.fr Sent: Monday, July 04, 2016 7:52 AM To: Users mailing list for Scilab Subject: Re: [Scilab-users] plot2d question >- Mail original - >De: "Offe rPade" >À: users@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. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] plot2d question
>- Mail original - >De: "Offe rPade" >À: users@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. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] plot2d question
Sorry Rafael It did not work. Thanks anyway From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Rafael Guerra Sent: Sunday, July 03, 2016 9:24 PM To: 'Users mailing list for Scilab' Subject: Re: [Scilab-users] plot2d question Offer, Would this be ok: x=(1:10)'; y=log(x); plot2d([x x],[y y],[1,-5],logflag='ln') Regards, Rafael From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Offe rPade Sent: Sunday, July 03, 2016 5:58 PM To: users@lists.scilab.org Subject: [Scilab-users] plot2d question 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: Plot2d(x,y,1,logflag='ln') for the line And then: Plot2d(x,y,-5,logflag='ln') for the markers. It is very cumbersome. Does anyone know a simple way to do it? Offer ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] plot2d question
Offer, Would this be ok: x=(1:10)'; y=log(x); plot2d([x x],[y y],[1,-5],logflag='ln') Regards, Rafael From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Offe rPade Sent: Sunday, July 03, 2016 5:58 PM To: users@lists.scilab.org Subject: [Scilab-users] plot2d question 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: Plot2d(x,y,1,logflag='ln') for the line And then: Plot2d(x,y,-5,logflag='ln') for the markers. It is very cumbersome. Does anyone know a simple way to do it? Offer ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users