Re: [Matplotlib-users] plotting lines in the "background" of other lines

2009-07-17 Thread Jouni K . Seppänen
per freem  writes:

> then the horizontal line appears ON TOP of the other two lines -- i want it
> to be the opposite, i want the horizontal line to be in the background. how
> can i do this?

Use the zorder keyword.

http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plotting lines in the "background" of other lines

2009-07-17 Thread per freem
hi all,

i am plotting several lines together in a plot. i'd like some of the lines
to be "behind" the other ones -- i.e., when the two lines intersect, i want
the most recently plotted line to be on top of the previously plotted lines.

in general, this is true but it seems to be violated by plt.axhline. for
example if i have

plt.axhline(...plot horizontal line..., color='red')
plt.plot(...plot 1st line)
plt.plot(...plot 2nd line...)

then the horizontal line appears ON TOP of the other two lines -- i want it
to be the opposite, i want the horizontal line to be in the background. how
can i do this?

thank you
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users