From 98b6ad9b8204f0ee6397d35419ffd68db649e121 Mon Sep 17 00:00:00 2001 From: AkM-2018 Date: Thu, 6 May 2021 19:08:11 +0530 Subject: [PATCH 1/3] Remove unsupported arguments from tricontourf documentation --- lib/matplotlib/tri/tricontour.py | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index 297d457009ac..a6f56d77f737 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -164,13 +164,6 @@ def _contour_args(self, args, kwargs): Other Parameters ---------------- -corner_mask : bool, default: :rc:`contour.corner_mask` - Enable/disable corner masking, which only has an effect if *Z* is - a masked array. If ``False``, any quad touching a masked point is - masked out. If ``True``, only the triangular corners of quads - nearest those points are always masked out, other triangular - corners comprising three unmasked points are contoured as usual. - colors : color string or sequence of colors, optional The colors of the levels, i.e., the contour %(type)s. @@ -256,16 +249,7 @@ def _contour_args(self, args, kwargs): antialiased : bool, optional Enable antialiasing, overriding the defaults. For filled contours, the default is *True*. For line contours, - it is taken from :rc:`lines.antialiased`. - -nchunk : int >= 0, optional - If 0, no subdivision of the domain. Specify a positive integer to - divide the domain into subdomains of *nchunk* by *nchunk* quads. - Chunking reduces the maximum length of polygons generated by the - contouring algorithm which reduces the rendering workload passed - on to the backend and also requires slightly less RAM. It can - however introduce rendering artifacts at chunk boundaries depending - on the backend, the *antialiased* flag and value of *alpha*.""") + it is taken from :rc:`lines.antialiased`.""") @docstring.Substitution(func='tricontour', type='lines') @@ -273,6 +257,22 @@ def _contour_args(self, args, kwargs): def tricontour(ax, *args, **kwargs): """ %(_tricontour_doc)s + + corner_mask : bool, default: :rc:`contour.corner_mask` + Enable/disable corner masking, which only has an effect if *Z* is + a masked array. If ``False``, any quad touching a masked point is + masked out. If ``True``, only the triangular corners of quads + nearest those points are always masked out, other triangular + corners comprising three unmasked points are contoured as usual. + + nchunk : int >= 0, optional + If 0, no subdivision of the domain. Specify a positive integer to + divide the domain into subdomains of *nchunk* by *nchunk* quads. + Chunking reduces the maximum length of polygons generated by the + contouring algorithm which reduces the rendering workload passed + on to the backend and also requires slightly less RAM. It can + however introduce rendering artifacts at chunk boundaries depending + on the backend, the *antialiased* flag and value of *alpha*. linewidths : float or array-like, default: :rc:`contour.linewidth` The line width of the contour lines. From 3570f12ccb1849d873dcf0d259bad9e71c1cf56d Mon Sep 17 00:00:00 2001 From: AkM-2018 Date: Thu, 6 May 2021 21:47:12 +0530 Subject: [PATCH 2/3] Remove whitespaces --- lib/matplotlib/tri/tricontour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index a6f56d77f737..78d1e716f801 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -257,7 +257,7 @@ def _contour_args(self, args, kwargs): def tricontour(ax, *args, **kwargs): """ %(_tricontour_doc)s - + corner_mask : bool, default: :rc:`contour.corner_mask` Enable/disable corner masking, which only has an effect if *Z* is a masked array. If ``False``, any quad touching a masked point is From e386b83d432aaf155fe5356d3dded8767520ad15 Mon Sep 17 00:00:00 2001 From: AkM-2018 Date: Fri, 7 May 2021 11:17:26 +0530 Subject: [PATCH 3/3] Removed nchunk and corner_masks argument --- lib/matplotlib/tri/tricontour.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index 78d1e716f801..dd7e569e641f 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -258,22 +258,6 @@ def tricontour(ax, *args, **kwargs): """ %(_tricontour_doc)s - corner_mask : bool, default: :rc:`contour.corner_mask` - Enable/disable corner masking, which only has an effect if *Z* is - a masked array. If ``False``, any quad touching a masked point is - masked out. If ``True``, only the triangular corners of quads - nearest those points are always masked out, other triangular - corners comprising three unmasked points are contoured as usual. - - nchunk : int >= 0, optional - If 0, no subdivision of the domain. Specify a positive integer to - divide the domain into subdomains of *nchunk* by *nchunk* quads. - Chunking reduces the maximum length of polygons generated by the - contouring algorithm which reduces the rendering workload passed - on to the backend and also requires slightly less RAM. It can - however introduce rendering artifacts at chunk boundaries depending - on the backend, the *antialiased* flag and value of *alpha*. - linewidths : float or array-like, default: :rc:`contour.linewidth` The line width of the contour lines.