hist() sort of broken in trunk

hist(histtype="step") worked fine in rev5412, but in the latest I get

hist(randn(1000), histtype="step")

Traceback (most recent call last):
/.../
     raise TypeError, 'There is no patch property "%s"'%key
TypeError: There is no patch property "closed"

Changing
closed = kwargs.get('closed', True)
back to
closed = kwargs.pop('closed')

in axes.py helps (but there was probably a reason for the change in the first place)

Cheers,
Olle

Olle Engdeg�rd wrote:

hist(histtype="step") worked fine in rev5412, but in the latest I get

hist(randn(1000), histtype="step")

Traceback (most recent call last):
/.../
     raise TypeError, 'There is no patch property "%s"'%key
TypeError: There is no patch property "closed"

Changing
closed = kwargs.get('closed', True)
back to
closed = kwargs.pop('closed')

in axes.py helps (but there was probably a reason for the change in the first place)

Cheers,
Olle

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Hi Olle,

   thanks for the report. This is fixed now in r5609.

Manuel