zorders are only meaningful among objects in a same axes.
An easy workaround is to move the legend in ax1 to ax2.
ax2.add_artist(leg1)
ax1.legend = None
Regards,
-JJ
On Thu, Mar 22, 2012 at 10:13 PM, David Verelst david.vere...@gmail.com wrote:
Hi All,
I am plotting on two
Hi All,
I am plotting on two different y-axes: one on the left (ax1) and one on
the right (ax2). Both share the same x-axes. The problem I am facing
relates back to the zorder of the legend (at least, that is what I
think): I want it to be on the foreground at all times. In order to do
so, I