Skip to content

Commit

Permalink
Apply some suggestions from code review verbatim
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Hauser <[email protected]>
  • Loading branch information
zmoon and mathause authored May 13, 2021
1 parent f0c6bbb commit 8216d3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions xarray/plot/dataset_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ def _dsplot(plotfunc):
Variable names for *u* and *v*
(*x* and *y* velocities; quiver/streamplot plots only).
hue: str, optional
Variable by which to color scattered points or arrows.
Variable by which to color scatter points or arrows.
hue_style: str, optional
Can be either ``'discrete'`` (legend) or ``'continuous'`` (colorbar).
markersize: str, optional
Variable by which to vary size of scattered points (scatter plot only).
Variable by which to vary the size of scattered points (scatter plot only).
size_norm: matplotlib.colors.Normalize or tuple, optional
Used to normalize the ``markersize`` variable.
If a tuple is passed, the values will be passed to
:meth:`matplotlib.colors.Normalize` as arguments.
:py:class:`matplotlib:matplotlib.colors.Normalize` as arguments.
Default: no normalization (``vmin=None``, ``vmax=None``, ``clip=False``).
scale: scalar, optional
Quiver only. Number of data units per arrow length unit.
Expand All @@ -231,7 +231,7 @@ def _dsplot(plotfunc):
If ``None``, use the current axes. Not applicable when using facets.
subplot_kws : dict, optional
Dictionary of keyword arguments for Matplotlib subplots
(see :meth:`matplotlib.figure.Figure.add_subplot`).
(see :py:meth:`matplotlib:matplotlib.figure.Figure.add_subplot`).
Only applies to FacetGrid plotting.
aspect : scalar, optional
Aspect ratio of plot, so that ``aspect * size`` gives the *width* in
Expand Down
10 changes: 5 additions & 5 deletions xarray/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def plot(
**kwargs,
):
"""
Default plot of DataArray using :mod:`matplotlib.pyplot`.
Default plot of DataArray using :py:mod:`matplotlib.pyplot`.
Calls xarray plotting function based on the dimensions of
the :meth:`squeezed DataArray <xarray.DataArray.squeeze>`.
the :py:meth:`squeezed DataArray <xarray.DataArray.squeeze>`.
=============== ===========================
Dimensions Plotting function
Expand Down Expand Up @@ -155,7 +155,7 @@ def plot(
are uniformly spaced. Usually a small positive number.
subplot_kws : dict, optional
Dictionary of keyword arguments for Matplotlib subplots
(see :meth:`matplotlib.figure.Figure.add_subplot`).
(see :py:meth:`matplotlib.figure.Figure.add_subplot`).
**kwargs : optional
Additional keyword arguments for Matplotlib.
Expand Down Expand Up @@ -573,7 +573,7 @@ def _plot2d(plotfunc):
subplot_kws : dict, optional
Dictionary of keyword arguments for Matplotlib subplots. Only used
for 2D and faceted plots.
(see :meth:`matplotlib.figure.Figure.add_subplot`).
(see :py:meth:`matplotlib.figure.Figure.add_subplot`).
cbar_ax : matplotlib axes object, optional
Axes in which to draw the colorbar.
cbar_kwargs : dict, optional
Expand Down Expand Up @@ -911,7 +911,7 @@ def imshow(x, y, z, ax, **kwargs):
.. note::
This function needs uniformly spaced coordinates to
properly label the axes. Call :meth:`DataArray.plot` to check.
properly label the axes. Call :py:meth:`DataArray.plot` to check.
The pixels are centered on the coordinates values. For example, if the coordinate
value is 3.2, then the pixels for those coordinates will be centered on 3.2.
Expand Down

0 comments on commit 8216d3c

Please sign in to comment.