Re: [Scilab-users] How to produce a filled staircase plot

2015-10-08 Thread Rafael Guerra
Very ingenious matrix trick, I loved it Date: Wed, 7 Oct 2015 11:47:49 +0200 From: serge.st...@inria.fr To: users@lists.scilab.org Subject: Re: [Scilab-users] How to produce a filled staircase plot Under Scilab-5.5.2 xfpoly rescale the graph automatically as plot does

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-07 Thread Yann DEBRAY
ts.scilab.org> Subject: Re: [Scilab-users] How to produce a filled staircase plot Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. I am simulating an exponential random decay: starting from a number N0, my population decr

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-07 Thread Antoine Monmayrant
On Behalf Of Antoine Monmayrant Sent: Tuesday, October 06, 2015 10:57 AM To: Users mailing list for Scilab<users@lists.scilab.org> Subject: Re: [Scilab-users] How to produce a filled staircase plot Thank you Serge for this solution, but it does not work for me: the "bars" in my c

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-07 Thread Serge Steer
clf; >>> xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); >>> h = gce(); >>> h.line_mode = "off"; >>> h.background = color('gray'); >>> plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); >>> >>> >>> Regards, >>> &

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Rafael Guera
Of Antoine Monmayrant Sent: Tuesday, October 06, 2015 10:57 AM To: Users mailing list for Scilab <users@lists.scilab.org> Subject: Re: [Scilab-users] How to produce a filled staircase plot Thank you Serge for this solution, but it does not work for me: the "bars" in my case are no

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Dang, Christophe
Hello, > De : Antoine Monmayrant > Envoyé : mardi 6 octobre 2015 00:01 > > I'm trying to do a filled staircase plot > (ie a staircase where the area between the staircase and the x axis is filled > with a solid color). > Is there a given combination of polyline_style and fill_mode, etc ... that

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Serge Steer
Le 06/10/2015 00:01, Antoine Monmayrant a écrit : > Hi everyone, > > I'm trying to do a filled staircase plot (ie a staircase where the area > between the staircase and the x axis is filled with a solid color). > Is there a given combination of polyline_style and fill_mode, etc ... that > can do

Re: [Scilab-users] How to produce a filled staircase plot

2015-10-06 Thread Antoine Monmayrant
Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occure at random times, following an exponential law (see the attached

[Scilab-users] How to produce a filled staircase plot

2015-10-05 Thread Antoine Monmayrant
Hi everyone, I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). Is there a given combination of polyline_style and fill_mode, etc ... that can do this? Or should I resort to building a polygon by hand?