pylab.boxplot

Hi Everyone.. the docs for boxplot say :

Returns a list of the :class:`matplotlib.lines.Line2D` instances added.

It seems to be returning a list of strings rather than a list of
handles... What's the easiest way for me to get the handles of those
objects, with only the names? It's giving me this:

medians <type 'str'>
fliers <type 'str'>
whiskers <type 'str'>
boxes <type 'str'>
caps <type 'str'>

Thanks!

Eric

Eric Wertman wrote:

Hi Everyone.. the docs for boxplot say :

Returns a list of the :class:`matplotlib.lines.Line2D` instances added.

It seems to be returning a list of strings rather than a list of
handles... What's the easiest way for me to get the handles of those
objects, with only the names? It's giving me this:

medians <type 'str'>
fliers <type 'str'>
whiskers <type 'str'>
boxes <type 'str'>
caps <type 'str'>

I get a dictionary with medians, flier, whiskers, boxes, and caps as keys and lists of Line2D objects as the values. What version are you running? I'm on 0.98.3 here.

Either way the docstring is wrong.

Ryan

···

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

I'm using 0.98.3 as well... I get a dictionary too. Should have
backed up another step and checked that, I just iterated over the
return and got the keys. Thanks for the help.

···

On Thu, Sep 4, 2008 at 2:25 PM, Ryan May <rmay31@...287...> wrote:

Eric Wertman wrote:

Hi Everyone.. the docs for boxplot say :

Returns a list of the :class:`matplotlib.lines.Line2D` instances added.

It seems to be returning a list of strings rather than a list of
handles... What's the easiest way for me to get the handles of those
objects, with only the names? It's giving me this:

medians <type 'str'>
fliers <type 'str'>
whiskers <type 'str'>
boxes <type 'str'>
caps <type 'str'>

I get a dictionary with medians, flier, whiskers, boxes, and caps as keys
and lists of Line2D objects as the values. What version are you running?
I'm on 0.98.3 here.

Either way the docstring is wrong.

Ryan

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma