>>>>> "Derek" == Derek Hohls <[EMAIL PROTECTED]> writes:

    Derek> The command: ax = lab.subplot(111, axisbelow='True')
 
    Derek> ensures that the gridlines appear below the bars on a plot;
    Derek> how can the same be done for the legend (ie the grid below
    Derek> the legend and not running through it)?

Hmm, I don't see this in matplotlib svn. Ie, in the example below, the
grid is below the legend.

  In [1]: ax = subplot(111, axisbelow=True)

  In [2]: plot([1,2,3], label='test')
  Out[2]: [<matplotlib.lines.Line2D instance at 0xb581b6ac>]

  In [3]: legend()
  Out[3]: <matplotlib.legend.Legend instance at 0xb581bc4c>

  In [4]: grid()
 
If this doesn't work for you and you cannot upgrade, you may be able
to increase the zorder of your legend 

  l = legend(...)
  l.set_zorder(20)

and see if that helps.

JDH

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to