<p dir="ltr">As of mpl 1.5 the fill_between method/function takes a step kwarg <a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.fill_between">http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.fill_between</a> which I think will do what you want.</p>
<p dir="ltr">Tom</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 22, 2016, 02:44 amuls <<a href="mailto:alain.muls@gmail.com">alain.muls@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All<br>
<br>
I make a plot of visible satellites at a ground station where calculations<br>
are performed every X minutes (eg 10 minutes). From these calculations I<br>
make a plot which,among other info, displays the number of visible<br>
satellites as a function of time using the drwa-style 'steps-post' (cfr line<br>
below)<br>
<br>
   ax2.plot(predDates, nrVisSats, linewidth=3, color='black',<br>
drawstyle='steps-post', label='#Visible', alpha=.6)<br>
<br>
I would like to color the area between the time-axis and this line but I<br>
cannot find how to do that for a 'step' function.<br>
<br>
Tx for any help.<br>
<br>
Alain<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/fille-area-under-a-step-function-tp46991.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/fille-area-under-a-step-function-tp46991.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>