Hi; I've got a rather simple question. I want to (color) fill a step plot below the line, but using the fill() function always creates regular plots, not step plots, and fillstyle doesn't work as I'd expect it to. How can I fill a step plot? Something like this:
import matplotlib.pyplot as plt
x = [0.0,0.5,0.66,0.75,1.0]
y = [0.72,0.72,0.61,0.43,0.33]
plt.step(x, y, fillstyle="bottom") # doesn't work how I imagine...
What I want is that the area below the step-plot line is color-filled, but I seem to be unable to find a function for it. If I use plt.fill(), it creates a polygon plot and it does not allow to use the kwarg drawstyle="steps", so I get no further with this function either.
I guess it's a simple problem, but I'm having a bit of a hard time wading though all the API, being completely new to matplotlib, so some help would be very welcome!
**NOTA DE CONFIDENCIALIDAD** Este correo electr�nico, y en su caso los ficheros adjuntos, pueden contener informaci�n protegida para el uso exclusivo de su destinatario. Se proh�be la distribuci�n, reproducci�n o cualquier otro tipo de transmisi�n por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies.