Data draws on top of legend.

I would expect the legend to draw on top of everything, but it seems to be obscured by plotted data from time to time.


The unfortunate above example keeps happening for me on OS X 10.10.

Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
IPython 2.3.0 -- An enhanced Interactive Python.

Using matplotlib backend: MacOSX
In [2]: numpy.__version__
Out[2]: '1.9.0'

In [3]: scipy.__version__
Out[3]: '0.14.0'

In [4]: matplotlib.__version__
Out[4]: '1.4.1'

Author: Fantashit

1 thought on “Data draws on top of legend.

  1. @NCSUphytotron If you want help or inform people about your problem you should always provide a verifiable example (see e.g. sscce).

    Concerning the general issue here, one can always add the legend to the topmost axes,

    ax = plt.subplot(111)
    # ... some plotting
    leg = ax.legend()

Comments are closed.