diff --git a/.flake8 b/.flake8 index f06261f96ff0..7ed0d70189b0 100644 --- a/.flake8 +++ b/.flake8 @@ -14,7 +14,7 @@ ignore = D100, D101, D102, D103, D104, D105, D106, D107, D200, D202, D203, D204, D205, D207, D208, D209, D212, D213, D300, D301 - D400, D401, D402, D403, D412, D413, + D400, D401, D402, D403, D413, exclude = .git diff --git a/examples/text_labels_and_annotations/arrow_demo.py b/examples/text_labels_and_annotations/arrow_demo.py index cc1f8dd127a6..943d11077bb3 100644 --- a/examples/text_labels_and_annotations/arrow_demo.py +++ b/examples/text_labels_and_annotations/arrow_demo.py @@ -31,18 +31,25 @@ def make_arrow_plot(data, size=4, display='length', shape='right', **kwargs): """Makes an arrow plot. - Parameters: - - data: dict with probabilities for the bases and pair transitions. - size: size of the graph in inches. - display: 'length', 'width', or 'alpha' for arrow property to change. - shape: 'full', 'left', or 'right' for full or half arrows. - max_arrow_width: maximum width of an arrow, data coordinates. - arrow_sep: separation between arrows in a pair, data coordinates. - alpha: maximum opacity of arrows, default 0.8. - - **kwargs can be anything allowed by a Arrow object, e.g. - linewidth and edgecolor. + Parameters + ---------- + data + Dict with probabilities for the bases and pair transitions. + size + Size of the graph in inches. + display : {'length', 'width', 'alpha'} + The arrow property to change. + shape : {'full', 'left', 'right'} + For full or half arrows. + max_arrow_width : float + Maximum width of an arrow, data coordinates. + arrow_sep : float + Separation between arrows in a pair, data coordinates. + alpha : float + Maximum opacity of arrows. + **kwargs + Can be anything allowed by a Arrow object, e.g. *linewidth* or + *edgecolor*. """ plt.xlim(-0.5, 1.5) diff --git a/lib/matplotlib/_constrained_layout.py b/lib/matplotlib/_constrained_layout.py index 1000217ec9f1..1a554275c852 100644 --- a/lib/matplotlib/_constrained_layout.py +++ b/lib/matplotlib/_constrained_layout.py @@ -87,8 +87,6 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad, Parameters ---------- - - fig : Figure is the ``figure`` instance to do the layout in. diff --git a/lib/matplotlib/_pylab_helpers.py b/lib/matplotlib/_pylab_helpers.py index ed5012d3dd8d..2407b573c4aa 100644 --- a/lib/matplotlib/_pylab_helpers.py +++ b/lib/matplotlib/_pylab_helpers.py @@ -15,12 +15,11 @@ class Gcf: methods that operate on those attributes, accessing them directly as class attributes. - Attributes: - - *figs*: + Attributes + ---------- + figs dictionary of the form {*num*: *manager*, ...} - - *_activeQue*: + _activeQue list of *managers*, with active one at the end """ diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index ab4122ed6e04..d4fc3fbe675d 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -968,7 +968,6 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None, Parameters ---------- - filename : str The output filename, e.g., :file:`mymovie.mp4`. diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 9a9477d08b18..f481fcfc9812 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -614,7 +614,6 @@ def set_sketch_params(self, scale=None, length=None, randomness=None): Parameters ---------- - scale : float, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is `None`, or not provided, no @@ -1018,7 +1017,6 @@ def sticky_edges(self): Examples -------- - >>> artist.sticky_edges.x[:] = (xmin, xmax) >>> artist.sticky_edges.y[:] = (ymin, ymax) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 7da553de87db..fda0bb93786d 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -358,7 +358,6 @@ def legend(self, *args, **kwargs): Parameters ---------- - handles : sequence of `.Artist`, optional A list of Artists (lines, patches) to be added to the legend. Use this together with *labels*, if you need full control on what @@ -376,7 +375,6 @@ def legend(self, *args, **kwargs): Other Parameters ---------------- - %(_legend_kw_doc)s Returns @@ -385,13 +383,11 @@ def legend(self, *args, **kwargs): Notes ----- - Not all kinds of artist are supported by the legend command. See :doc:`/tutorials/intermediate/legend_guide` for details. Examples -------- - .. plot:: gallery/text_labels_and_annotations/legend.py """ handles, labels, extra_args, kwargs = mlegend._parse_legend_args( @@ -414,12 +410,10 @@ def inset_axes(self, bounds, *, transform=None, zorder=5, Warnings -------- - This method is experimental as of 3.0, and the API may change. Parameters ---------- - bounds : [x0, y0, width, height] Lower-left corner of inset axes, and its width and height. @@ -438,13 +432,11 @@ def inset_axes(self, bounds, *, transform=None, zorder=5, Returns ------- - Axes The created `.axes.Axes` instance. Examples -------- - This example makes two inset axes, the first is in axes-relative coordinates, and the second in data-coordinates:: @@ -485,13 +477,11 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None, Warnings -------- - This method is experimental as of 3.0, and the API may change. Parameters ---------- - bounds : [x0, y0, width, height] Lower-left corner of rectangle to be marked, and its width and height. @@ -525,7 +515,6 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None, Returns ------- - rectangle_patch : `.Patches.Rectangle` Rectangle artist. @@ -588,12 +577,10 @@ def indicate_inset_zoom(self, inset_ax, **kwargs): Warnings -------- - This method is experimental as of 3.0, and the API may change. Parameters ---------- - inset_ax : `.Axes` Inset axes to draw connecting lines to. Two lines are drawn connecting the indicator box to the inset axes on corners @@ -604,7 +591,6 @@ def indicate_inset_zoom(self, inset_ax, **kwargs): Returns ------- - rectangle_patch : `.Patches.Rectangle` Rectangle artist. @@ -635,7 +621,6 @@ def secondary_xaxis(self, location, *, functions=None, **kwargs): Examples -------- - The main axis shows frequency, and the secondary axis shows period. .. plot:: @@ -671,7 +656,6 @@ def secondary_yaxis(self, location, *, functions=None, **kwargs): Examples -------- - Add a secondary axes that converts from radians to degrees .. plot:: @@ -827,7 +811,6 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs): Examples -------- - * draw a thick red hline at 'y' = 0 that spans the xrange:: >>> axhline(linewidth=4, color='r') @@ -1272,14 +1255,12 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, Returns ------- - list : A list of :class:`~.collections.EventCollection` objects. Contains the :class:`~.collections.EventCollection` that were added. Notes ----- - For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only a single value is given, that value is applied to all lines. If an array-like is given, it must have the same length as *positions*, and @@ -1287,7 +1268,6 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1, Examples -------- - .. plot:: gallery/lines_bars_and_markers/eventplot_demo.py """ self._process_unit_info(xdata=positions, @@ -2738,7 +2718,6 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0, Notes ----- - .. seealso:: The MATLAB function `stem `_ @@ -3787,7 +3766,6 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True, Parameters ---------- - bxpstats : list of dicts A list of dictionaries containing stats for each boxplot. Required keys are: @@ -3913,7 +3891,6 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True, Examples -------- - .. plot:: gallery/statistics/bxp.py """ @@ -4397,7 +4374,6 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None, Notes ----- - * The `.plot` function will be faster for scatterplots where markers don't vary in size or color. @@ -5821,7 +5797,6 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None, Notes ----- - **Masked arrays** *X*, *Y* and *C* may be masked arrays. If either ``C[i, j]``, or one @@ -6058,7 +6033,6 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None, Notes ----- - **Masked arrays** *C* may be a masked array. If ``C[i, j]`` is masked, the corresponding @@ -7919,7 +7893,6 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5, Returns ------- - result : dict A dictionary mapping each component of the violinplot to a list of the corresponding collection instances created. The @@ -7972,7 +7945,6 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5, Parameters ---------- - vpstats : list of dicts A list of dictionaries containing stats for each violin plot. Required keys are: diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 8505d3308dba..38aa42833ad5 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2932,7 +2932,6 @@ def tick_params(self, axis='both', **kwargs): Other Parameters ---------------- - axis : {'x', 'y', 'both'} Axis on which to operate; default is 'both'. @@ -2995,7 +2994,6 @@ def tick_params(self, axis='both', **kwargs): Examples -------- - Usage :: ax.tick_params(direction='out', length=6, width=2, colors='r', @@ -3990,7 +3988,6 @@ def _set_view_from_bbox(self, bbox, direction='in', Parameters ---------- - bbox : 4-tuple or 3 tuple * If bbox is a 4 tuple, it is the selected bounding box limits, in *display* coordinates. diff --git a/lib/matplotlib/axes/_secondary_axes.py b/lib/matplotlib/axes/_secondary_axes.py index 3f0766fb3058..4740fe6b23fb 100644 --- a/lib/matplotlib/axes/_secondary_axes.py +++ b/lib/matplotlib/axes/_secondary_axes.py @@ -424,7 +424,6 @@ def set_color(self, color): _secax_docstring = ''' Warnings -------- - This method is experimental as of 3.1, and the API may change. Parameters diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index e6e9df0d170a..80925fef2afe 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2235,7 +2235,6 @@ def new_timer(self, *args, **kwargs): Examples -------- - >>> timer = fig.canvas.new_timer(callbacks=[(f1, (1, ), {'a': 3}),]) """ diff --git a/lib/matplotlib/backends/backend_pdf.py b/lib/matplotlib/backends/backend_pdf.py index 12fc1001a921..6ba1e03db83d 100644 --- a/lib/matplotlib/backends/backend_pdf.py +++ b/lib/matplotlib/backends/backend_pdf.py @@ -2330,7 +2330,6 @@ class PdfPages: Examples -------- - >>> import matplotlib.pyplot as plt >>> # Initialize: >>> with PdfPages('foo.pdf') as pdf: @@ -2342,7 +2341,6 @@ class PdfPages: Notes ----- - In reality :class:`PdfPages` is a thin wrapper around :class:`PdfFile`, in order to avoid confusion when using :func:`~matplotlib.pyplot.savefig` and forgetting the format argument. @@ -2355,7 +2353,6 @@ def __init__(self, filename, keep_empty=True, metadata=None): Parameters ---------- - filename : str Plots using :meth:`PdfPages.savefig` will be written to a file at this location. The file is opened at once and any older file with @@ -2414,7 +2411,6 @@ def savefig(self, figure=None, **kwargs): Parameters ---------- - figure : :class:`~matplotlib.figure.Figure` or int, optional Specifies what figure is saved to file. If not specified, the active figure is saved. If a :class:`~matplotlib.figure.Figure` diff --git a/lib/matplotlib/backends/backend_pgf.py b/lib/matplotlib/backends/backend_pgf.py index 4fd11ae8b95e..2b3fcfd7af9e 100644 --- a/lib/matplotlib/backends/backend_pgf.py +++ b/lib/matplotlib/backends/backend_pgf.py @@ -964,7 +964,6 @@ class PdfPages: Examples -------- - >>> import matplotlib.pyplot as plt >>> # Initialize: >>> with PdfPages('foo.pdf') as pdf: @@ -992,7 +991,6 @@ def __init__(self, filename, *, keep_empty=True, metadata=None): Parameters ---------- - filename : str Plots using :meth:`PdfPages.savefig` will be written to a file at this location. Any older file with the same name is overwritten. @@ -1111,7 +1109,6 @@ def savefig(self, figure=None, **kwargs): Parameters ---------- - figure : :class:`~matplotlib.figure.Figure` or int, optional Specifies what figure is saved to file. If not specified, the active figure is saved. If a :class:`~matplotlib.figure.Figure` diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index b9e97d594909..e79af6dbe223 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -1354,7 +1354,6 @@ def violin_stats(X, method, points=100, quantiles=None): Returns ------- - A list of dictionaries containing the results for each column of data. The dictionaries contain at least the following: @@ -1600,7 +1599,6 @@ def normalize_kwargs(kw, alias_mapping=None, required=(), forbidden=(), Parameters ---------- - alias_mapping : dict or Artist subclass or Artist instance, optional A mapping between a canonical name to a list of aliases, in order of precedence from lowest to highest. diff --git a/lib/matplotlib/cbook/deprecation.py b/lib/matplotlib/cbook/deprecation.py index cc7a26891b8f..e900af38857f 100644 --- a/lib/matplotlib/cbook/deprecation.py +++ b/lib/matplotlib/cbook/deprecation.py @@ -98,12 +98,11 @@ def warn_deprecated( Examples -------- + Basic example:: - Basic example:: - - # To warn of the deprecation of "matplotlib.name_of_module" - warn_deprecated('1.4.0', name='matplotlib.name_of_module', - obj_type='module') + # To warn of the deprecation of "matplotlib.name_of_module" + warn_deprecated('1.4.0', name='matplotlib.name_of_module', + obj_type='module') """ warning = _generate_deprecation_warning( since, message, name, alternative, pending, obj_type, addendum, @@ -170,12 +169,11 @@ def new_function(): Examples -------- + Basic example:: - Basic example:: - - @deprecated('1.4.0') - def the_function_to_deprecate(): - pass + @deprecated('1.4.0') + def the_function_to_deprecate(): + pass """ def deprecate(obj, message=message, name=name, alternative=alternative, @@ -277,7 +275,6 @@ def _rename_parameter(since, old, new, func=None): Examples -------- - :: @_rename_parameter("3.1", "bad_name", "good_name") def func(good_name): ... @@ -335,7 +332,6 @@ def _delete_parameter(since, name, func=None): Examples -------- - :: @_delete_parameter("3.1", "unused") def func(used_arg, other_arg, unused, more_args): ... diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 54d867c394f5..08f449bc4858 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -1459,7 +1459,6 @@ def __init__(self, Examples -------- - .. plot:: gallery/lines_bars_and_markers/eventcollection_demo.py """ diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index c4d2ea9d4437..3640dcfedb78 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -643,7 +643,6 @@ class ConciseDateFormatter(ticker.Formatter): Parameters ---------- - locator : `.ticker.Locator` Locator that this axis is using. @@ -675,7 +674,6 @@ class ConciseDateFormatter(ticker.Formatter): Examples -------- - See :doc:`/gallery/ticks_and_spines/date_concise_formatter` .. plot:: diff --git a/lib/matplotlib/dviread.py b/lib/matplotlib/dviread.py index a9ed0b3fcd2f..59c72cf7e1c0 100644 --- a/lib/matplotlib/dviread.py +++ b/lib/matplotlib/dviread.py @@ -499,7 +499,6 @@ class DviFont: Parameters ---------- - scale : float Factor by which the font is scaled from its natural size. tfm : Tfm @@ -514,7 +513,6 @@ class DviFont: Attributes ---------- - texname : bytes size : float Size of the font in Adobe points, converted from the slightly @@ -775,12 +773,10 @@ class PsfontsMap: Parameters ---------- - filename : string or bytestring Notes ----- - For historical reasons, TeX knows many Type-1 fonts by different names than the outside world. (For one thing, the names have to fit in eight characters.) Also, TeX's native fonts are not Type-1 @@ -1024,7 +1020,6 @@ def find_tex_file(filename, format=None): References ---------- - .. [1] `Kpathsea documentation `_ The library that :program:`kpsewhich` is part of. """ diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 0883564f9c1e..e5a4f2cf8e0f 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -554,7 +554,6 @@ def set_constrained_layout_pads(self, **kwargs): Parameters ---------- - w_pad : scalar Width padding in inches. This is the pad around axes and is meant to make sure there is enough room for fonts to @@ -592,7 +591,6 @@ def get_constrained_layout_pads(self, relative=False): Parameters ---------- - relative : boolean If `True`, then convert from inches to figure relative. """ @@ -735,7 +733,6 @@ def suptitle(self, t, **kwargs): Examples -------- - >>> fig.suptitle('This is the figure title', fontsize=12) """ manual_position = ('x' in kwargs or 'y' in kwargs) @@ -1141,7 +1138,6 @@ def add_axes(self, *args, **kwargs): Parameters ---------- - rect : sequence of float The dimensions [left, bottom, width, height] of the new axes. All quantities are in fractions of figure width and height. @@ -1780,7 +1776,6 @@ def legend(self, *args, **kwargs): Parameters ---------- - handles : sequence of `.Artist`, optional A list of Artists (lines, patches) to be added to the legend. Use this together with *labels*, if you need full control on what @@ -1798,7 +1793,6 @@ def legend(self, *args, **kwargs): Other Parameters ---------------- - %(_legend_kw_doc)s Returns @@ -2065,7 +2059,6 @@ def savefig(self, fname, *, transparent=None, **kwargs): Parameters ---------- - fname : str or PathLike or file-like object A path, or a Python file-like object, or possibly some backend-dependent object such as @@ -2080,7 +2073,6 @@ def savefig(self, fname, *, transparent=None, **kwargs): Other Parameters ---------------- - dpi : [ *None* | scalar > 0 | 'figure' ] The resolution in dots per inch. If *None*, defaults to :rc:`savefig.dpi`. If 'figure', uses the figure's dpi value. diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index a49559156c42..5fee471dfe43 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -323,7 +323,6 @@ def tight_layout(self, figure, renderer=None, Parameters ---------- - pad : float Padding between the figure edge and the edges of subplots, as a fraction of the font-size. diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index 35b6859336f6..3add9c39be5a 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -399,12 +399,10 @@ def __init__(self, parent, handles, labels, Other Parameters ---------------- - %(_legend_kw_doc)s Notes ----- - Users can specify any arbitrary location for the legend using the *bbox_to_anchor* keyword argument. bbox_to_anchor can be an instance of BboxBase(or its derivatives) or a tuple of 2 or 4 floats. diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 843710244db1..4c7306591e89 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -3865,7 +3865,6 @@ def __init__(self, posA=None, posB=None, Parameters ---------- - posA, posB : (float, float), optional (default: None) (x,y) coordinates of arrow tail and arrow head respectively. diff --git a/lib/matplotlib/sankey.py b/lib/matplotlib/sankey.py index 9e995f7e1ff6..9a9e085c8242 100644 --- a/lib/matplotlib/sankey.py +++ b/lib/matplotlib/sankey.py @@ -116,7 +116,6 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25, Examples -------- - .. plot:: gallery/specialty_plots/sankey_basics.py """ # Check the arguments. diff --git a/lib/matplotlib/scale.py b/lib/matplotlib/scale.py index a0adce4f9632..83086545bb2f 100644 --- a/lib/matplotlib/scale.py +++ b/lib/matplotlib/scale.py @@ -121,7 +121,6 @@ def __init__(self, forward, inverse): """ Parameters ---------- - forward : callable The forward function for the transform. This function must have an inverse and, for best behavior, be monotonic. @@ -158,7 +157,6 @@ def __init__(self, axis, functions): """ Parameters ---------- - axis: the axis for the scale functions : (callable, callable) @@ -440,7 +438,6 @@ def __init__(self, axis, functions, base=10): """ Parameters ---------- - axis: the axis for the scale functions : (callable, callable) diff --git a/lib/matplotlib/textpath.py b/lib/matplotlib/textpath.py index 232255c11a12..3eb73326add9 100644 --- a/lib/matplotlib/textpath.py +++ b/lib/matplotlib/textpath.py @@ -98,7 +98,6 @@ def get_text_path(self, prop, s, ismath=False, usetex=False): Parameters ---------- - prop : `matplotlib.font_manager.FontProperties` instance The font properties for the text. @@ -113,14 +112,12 @@ def get_text_path(self, prop, s, ismath=False, usetex=False): Returns ------- - verts, codes : tuple of lists *verts* is a list of numpy arrays containing the x and y coordinates of the vertices. *codes* is a list of path codes. Examples -------- - Create a list of vertices and codes from a text, and create a `Path` from those:: @@ -394,7 +391,6 @@ def __init__(self, xy, s, size=None, prop=None, Parameters ---------- - xy : tuple or array of two float values Position of the text. For no offset, use ``xy=(0, 0)``. @@ -418,7 +414,6 @@ def __init__(self, xy, s, size=None, prop=None, Examples -------- - The following creates a path from the string "ABC" with Helvetica font face; and another path from the latex fraction 1/2:: diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index 25557dc7966b..7194b7e4c764 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -102,13 +102,13 @@ class AxesWidget(Widget): object it may be garbage collected which will disconnect the callbacks. - Attributes: - - *ax* : :class:`~matplotlib.axes.Axes` - The parent axes for the widget - *canvas* : :class:`~matplotlib.backend_bases.FigureCanvasBase` subclass + Attributes + ---------- + ax : `~matplotlib.axes.Axes` + The parent axes for the widget. + canvas : `~matplotlib.backend_bases.FigureCanvasBase` subclass The parent figure canvas for the widget. - *active* : bool + active : bool If False, the widget does not respond to events. """ def __init__(self, ax): diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index 948d6a96f208..5e57b328a79b 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -1967,7 +1967,6 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None, Examples -------- - .. plot:: gallery/mplot3d/trisurf3d.py .. plot:: gallery/mplot3d/trisurf3d_2.py