I don't know if there is any reason for not having it, but as a
workaround, you could use np.hist to get the data (syntax is the same
as mpl.hist and returns the same numbers, but without drawing) and
then renormalise and plot with mpl.bars.

On Thu, Jul 12, 2012 at 4:42 PM, Alan G Isaac <alan.is...@gmail.com> wrote:
> This is essentially a query about why certain histogram types
> are not offered.  I can see two possible answers: haven't gotten
> to them, or, don't want to offer them (e.g., they're bad practice).
>
> I will choose Stata as a point of comparison.
> http://www.stata.com/help.cgi?hist
> The types are density, fraction, frequency, and percent.
> Frequency corresponds of mpl's normed=False.
> Density corresponds of mpl's normed=True.
> Today I wanted the 'fraction' type, but mpl did not offer it.
> (Note that because of other elements of the graph, hacks like
> replacing the ticklabels won't work nicely.)
>
> If there is not sentiment against offering these types,
> I suggest that the `normed` keyword accept strings,
> including "fraction" and "percent", and that `hist`
> be extended to produce these types.
>
> Cheers,
> Alan Isaac
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to