@@ -558,17 +558,18 @@ def annotate(self, *args, **kwargs):
558558 "figure points", "figure pixels", "figure fraction", "axes
559559 points", .... See `matplotlib.text.Annotation` for more details.
560560
561- textcoords : string, optional, default: None
561+ textcoords : string, optional
562562 string that indicates what type of coordinates `text` is. Examples:
563563 "figure points", "figure pixels", "figure fraction", "axes
564564 points", .... See `matplotlib.text.Annotation` for more details.
565+ Default is None.
565566
566- arrowprops : `matplotlib.lines.Line2D` properties, optional, default: None
567+ arrowprops : `matplotlib.lines.Line2D` properties, optional
567568 Dictionnary of line properties for the arrow that connects the
568569 annotation to the point. If the dictionnary has a key
569570 `arrowstyle`, a `FancyArrowPatch` instance is created and drawn.
570571 See `matplotlib.text.Annotation` for more details on valid
571- options.
572+ options. Default is None.
572573
573574 Returns
574575 -------
@@ -3643,7 +3644,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
36433644 # Transform accum if needed
36443645 if bins == 'log' :
36453646 accum = np .log10 (accum + 1 )
3646- elif bins != None :
3647+ elif bins is not None :
36473648 if not iterable (bins ):
36483649 minimum , maximum = min (accum ), max (accum )
36493650 bins -= 1 # one less edge than bins
@@ -5119,7 +5120,8 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
51195120
51205121 Returns
51215122 -------
5122- tuple : (n, bins, patches) or ([n0, n1, ...], bins, [patches0, patches1,...])
5123+ tuple : ``(n, bins, patches)`` or \
5124+ ``([n0, n1, ...], bins, [patches0, patches1,...])``
51235125
51245126 Other Parameters
51255127 ----------------
@@ -5246,7 +5248,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
52465248 # this will automatically overwrite bins,
52475249 # so that each histogram uses the same bins
52485250 m , bins = np .histogram (x [i ], bins , weights = w [i ], ** hist_kwargs )
5249- m = m .astype (float ) # causes problems later if it's an int
5251+ m = m .astype (float ) # causes problems later if it's an int
52505252 if mlast is None :
52515253 mlast = np .zeros (len (bins )- 1 , m .dtype )
52525254 if normed and not stacked :
@@ -5417,15 +5419,15 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
54175419 xmin0 = max (_saved_bounds [0 ]* 0.9 , minimum )
54185420 xmax = self .dataLim .intervalx [1 ]
54195421 for m in n :
5420- xmin = np .amin (m [m != 0 ]) # filter out the 0 height bins
5422+ xmin = np .amin (m [m != 0 ]) # filter out the 0 height bins
54215423 xmin = max (xmin * 0.9 , minimum )
54225424 xmin = min (xmin0 , xmin )
54235425 self .dataLim .intervalx = (xmin , xmax )
54245426 elif orientation == 'vertical' :
54255427 ymin0 = max (_saved_bounds [1 ]* 0.9 , minimum )
54265428 ymax = self .dataLim .intervaly [1 ]
54275429 for m in n :
5428- ymin = np .amin (m [m != 0 ]) # filter out the 0 height bins
5430+ ymin = np .amin (m [m != 0 ]) # filter out the 0 height bins
54295431 ymin = max (ymin * 0.9 , minimum )
54305432 ymin = min (ymin0 , ymin )
54315433 self .dataLim .intervaly = (ymin , ymax )
0 commit comments