hist() bug in log-scale with "stepfilled"

Hi,

Combining "stepfilled" with log scale sometimes gives inappropriate plots:

a=[4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5]
hist(a, range=(0,10), bins=10, histtype="stepfilled", log=True)

The problem is not restricted to the case here with more bins than unique elements, but sometimes reducing the bin number makes the issue go away.

Cheers,
Olle

Olle Engdeg�rd wrote:

Hi,

Combining "stepfilled" with log scale sometimes gives inappropriate plots:

a=[4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5]
hist(a, range=(0,10), bins=10, histtype="stepfilled", log=True)

The problem is not restricted to the case here with more bins than unique
elements, but sometimes reducing the bin number makes the issue go away.

Cheers,
Olle

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Thanks for the report. This is fixed now in r8097. mm