Re: [Matplotlib-users] problem with fill_between in combination with line plot

2011-04-08 Thread Valentine Svensson
Hello, in the plot commands you can control what covers what by using the zorder parameter. Here's a demo: http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html So, in your case you could change the plotting commands to p1.plot(x,y1,'r',linewidth=5,zorder=1) p1.fill_between(x

[Matplotlib-users] problem with fill_between in combination with line plot

2011-04-08 Thread Terry Lang
Hey Matplotlib Community, I am trying to create a standard line plot and then overlay a fill_between plot that would partly grey out the line plot. The code snippet I am interested in is: import matplotlib.pyplot as plot fig = plot.figure() p1 = fig.add_subplot(111) p1.plot(x,y1,'r',l