Revision: 6496
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6496&view=rev
Author: mmetz_bn
Date: 2008-12-05 14:48:45 +0000 (Fri, 05 Dec 2008)
Log Message:
-----------
hist docstring updated & exception added
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-12-05 00:08:43 UTC (rev
6495)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-12-05 14:48:45 UTC (rev
6496)
@@ -6430,6 +6430,10 @@
are ignored. If not provided, *range* is (x.min(), x.max()).
Range has no effect if *bins* is a sequence.
+ If *bins* is a sequence or *range* is specified, autoscaling is
+ set off (*autoscale_on* is set to *False*) and the xaxis limits
+ are set to encompass the full specified bin range.
+
*normed*:
If *True*, the first element of the return tuple will
be the counts normalized to form a probability density, i.e.,
@@ -6533,6 +6537,8 @@
for i in xrange(len(x)):
tx.append( np.array(x[i]) )
x = tx
+ else:
+ raise ValueError, 'Can not use providet data to create a
histogram'
# Check whether bins or range are given explicitly. In that
# case do not autoscale axes.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins