Hi,

On 8 January 2011 18:57, OKB (not okblacke) <brenb...@brenbarn.net> wrote:
> Is there a simple way to get a
> histogram that does not bin any values together at all, but simply
> creates one bar for each distinct value in the dataset?

You can just use the bins keyword to plt.hist (or np.hist):
plt.hist ( x, bins=np.unique ( x ) )

Jose

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to