Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions lib/matplotlib/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,13 +1486,19 @@ def _initialize_x_y(self, z):
levels : int or array-like, optional
Determines the number and positions of the contour lines / regions.

If an int *n*, use `~matplotlib.ticker.MaxNLocator`, which tries
to automatically choose no more than *n+1* "nice" contour levels
between minimum and maximum numeric values of *Z*.
If an int *n*, use `~matplotlib.ticker.MaxNLocator`, which tries to
automatically choose no more than *n+2* "nice" contour level boundaries
between the minimum and maximum numeric values of *Z*. These boundaries
define where lines are drawn (for `contour`) or where filled regions
are separated (for `contourf`).

If array-like, draw contour lines at the specified levels.
The values must be in increasing order.

If not specified, a reasonable default is automatically chosen. For
linear scales, this corresponds to *levels=7*. For logarithmic
scales, `~matplotlib.ticker.LogLocator` is used instead.

Returns
-------
`~.contour.QuadContourSet`
Expand Down
Loading