legend outside axes

Hello,
I encountered a problem when trying to draw a legend outside the axes.
For some reason, when the legend is placed outside the axes, the markers are not drawn near the labels.

I attach two scripts and two corresponding figures.

the only differences between the scripts is the location of the legend.
When the legend is placed inside the axes, everything is OK.
However, when the legend is outside the markers are gone.

Is this a bug ?

Is there a way around it ?

Thanks,
Eli

legend_inside_axes.py (298 Bytes)

legend_inside_axes.png

legend_outside_axes.py (300 Bytes)

legend_outside_axes.png

I am not seeing this problem in mpl svn (what version are you using).
perhaps you can upgrade to svn?

http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

JDH

···

On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh<ebrosh1@...287...> wrote:

Hello,
I encountered a problem when trying to draw a legend outside the axes.
For some reason, when the legend is placed outside the axes, the markers are
not drawn near the labels.

I attach two scripts and two corresponding figures.
the only differences between the scripts is the location of the legend.
When the legend is placed inside the axes, everything is OK.
However, when the legend is outside the markers are gone.

Is this a bug ?
Is there a way around it ?

My version is 0.98.3
This is what comes with ubuntu intrepid.
I will try to upgrade from svn.

Eli

···

On Sat, Jul 11, 2009 at 4:15 PM, John Hunter <jdh2358@…287…> wrote:

On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh<ebrosh1@…287…> wrote:

Hello,

I encountered a problem when trying to draw a legend outside the axes.

For some reason, when the legend is placed outside the axes, the markers are

not drawn near the labels.

I attach two scripts and two corresponding figures.

the only differences between the scripts is the location of the legend.

When the legend is placed inside the axes, everything is OK.

However, when the legend is outside the markers are gone.

Is this a bug ?

Is there a way around it ?

I am not seeing this problem in mpl svn (what version are you using).

perhaps you can upgrade to svn?

http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

JDH

The problem is gone after upgrade to 0.98.5

···

On Sat, Jul 11, 2009 at 6:02 PM, Eli Brosh <ebrosh1@…287…> wrote:

My version is 0.98.3
This is what comes with ubuntu intrepid.
I will try to upgrade from svn.

Eli

On Sat, Jul 11, 2009 at 4:15 PM, John Hunter <jdh2358@…287…> wrote:

On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh<ebrosh1@…287…> wrote:

Hello,

I encountered a problem when trying to draw a legend outside the axes.

For some reason, when the legend is placed outside the axes, the markers are

not drawn near the labels.

I attach two scripts and two corresponding figures.

the only differences between the scripts is the location of the legend.

When the legend is placed inside the axes, everything is OK.

However, when the legend is outside the markers are gone.

Is this a bug ?

Is there a way around it ?

I am not seeing this problem in mpl svn (what version are you using).

perhaps you can upgrade to svn?

http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

JDH