Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15f15f8

Browse files
committed
Update [tri]contour[f] docs from review comments.
1 parent acdc9b3 commit 15f15f8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/contour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ def _initialize_x_y(self, z):
16531653
By default (value *None*), the colormap specified by *cmap*
16541654
will be used.
16551655
1656-
alpha : float, optional
1656+
alpha : float, default: 1
16571657
The alpha blending value, between 0 (transparent) and 1 (opaque).
16581658
16591659
cmap : str or `.Colormap`, default: :rc:`image.cmap`
@@ -1707,7 +1707,7 @@ def _initialize_x_y(self, z):
17071707
and above the *levels* range.
17081708
17091709
Values below ``min(levels)`` and above ``max(levels)`` are mapped
1710-
to the under/over values of the `.Colormap`. Note, that most
1710+
to the under/over values of the `.Colormap`. Note that most
17111711
colormaps do not have dedicated colors for these by default, so
17121712
that the over and under values are the edge values of the colormap.
17131713
You may want to set these values explicitly using

lib/matplotlib/tri/tricontour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _contour_args(self, args, kwargs):
204204
205205
By default (value *None*), the colormap specified by *cmap* will be used.
206206
207-
alpha : float, optional
207+
alpha : float, default: 1
208208
The alpha blending value, between 0 (transparent) and 1 (opaque).
209209
210210
cmap : str or `.Colormap`, default: :rc:`image.cmap`
@@ -251,7 +251,7 @@ def _contour_args(self, args, kwargs):
251251
*levels* range.
252252
253253
Values below ``min(levels)`` and above ``max(levels)`` are mapped to the
254-
under/over values of the `.Colormap`. Note, that most colormaps do not have
254+
under/over values of the `.Colormap`. Note that most colormaps do not have
255255
dedicated colors for these by default, so that the over and under values
256256
are the edge values of the colormap. You may want to set these values
257257
explicitly using `.Colormap.set_under` and `.Colormap.set_over`.
@@ -304,8 +304,8 @@ def tricontourf(ax, *args, **kwargs):
304304
"""
305305
%(_tricontour_doc)s
306306
307-
antialiased : bool, default True
308-
Enable antialiasing, overriding the defaults.
307+
antialiased : bool, default: True
308+
Whether to use antialiasing.
309309
310310
Notes
311311
-----

0 commit comments

Comments
 (0)