[Matplotlib-users] fille area under a step function

amuls alain.muls at gmail.com
Fri Apr 22 05:28:59 EDT 2016


Hi All

I make a plot of visible satellites at a ground station where calculations
are performed every X minutes (eg 10 minutes). From these calculations I
make a plot which,among other info, displays the number of visible
satellites as a function of time using the drwa-style 'steps-post' (cfr line
below)

   ax2.plot(predDates, nrVisSats, linewidth=3, color='black',
drawstyle='steps-post', label='#Visible', alpha=.6)

I would like to color the area between the time-axis and this line but I
cannot find how to do that for a 'step' function.

Tx for any help.

Alain




--
View this message in context: http://matplotlib.1069221.n5.nabble.com/fille-area-under-a-step-function-tp46991.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


More information about the Matplotlib-users mailing list