You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs for contour levels argument is incorrect #12729
In 2.2.3 a sentence made it into the contourf docs saying for the levels of contourf(x,y,z,levels, ....)
levels : int or array-like, optional
Determines the number and positions of the contour lines / regions. If an int n, use n data intervals; i.e. draw n+1 contour lines. The level heights are automatically chosen.
The bold sentence is obviously wrong, as seen from the below image. E.g. the top right plot has n=4 specified, but it produces 5 intervals and 4 contour lines. When specifying n=5, the same 5 intervals and 4 contour lines are produced.
One may look at the generated levels as a function of the input argument,
Activity