Skip to content

Commit 787c773

Browse files
authored
Update contour.py
1 parent 397629e commit 787c773

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/matplotlib/contour.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,17 +1487,16 @@ def _initialize_x_y(self, z):
14871487
Determines the number and positions of the contour lines / regions.
14881488
14891489
If an int *n*, use `~matplotlib.ticker.MaxNLocator`, which tries to
1490-
automatically choose approximately *n+1* "nice" contour levels
1491-
between the minimum and maximum numeric values of *Z*. Note that the
1492-
actual number may be up to *n+2* depending on the data range.
1490+
automatically choose no more than *n+2* "nice" contour levels
1491+
between the minimum and maximum numeric values of *Z*.
14931492
14941493
If array-like, draw contour lines at the specified levels.
14951494
The values must be in increasing order.
14961495
14971496
If not given, a reasonable default is automatically chosen. For linear
1498-
scales, this corresponds to *n*=7, typically producing approximately
1499-
8 contour levels. For logarithmic scales, `~matplotlib.ticker.LogLocator`
1500-
is used instead.
1497+
scales, `~matplotlib.ticker.MaxNLocator` is used with *nbins*=8,
1498+
producing up to 9 "nice" contour levels. For logarithmic scales,
1499+
`~matplotlib.ticker.LogLocator` is used instead.
15011500
15021501
Returns
15031502
-------

0 commit comments

Comments
 (0)