Skip to content

Commit d57f728

Browse files
committed
Docstring tweaks
1 parent 472c311 commit d57f728

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def __getattr__(cls, name):
7979
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
8080
"numpy": ("https://numpy.org/doc/stable/", None),
8181
"monetio": ("https://monetio.readthedocs.io/en/stable/", None),
82+
"matplotlib": ("https://matplotlib.org/stable/", None),
8283
}
8384

8485

monet/monet_accessor.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -960,10 +960,9 @@ def _check_kwargs_and_set_defaults(**kwargs):
960960
return kwargs
961961

962962
def quick_imshow(self, map_kws=None, roll_dateline=False, **kwargs):
963-
"""This function takes an xarray DataArray and quickly creates a figure
964-
using cartopy and matplotlib ``imshow``.
963+
"""Quickly create a geo-referenced image plot using Cartopy and Matplotlib.
965964
966-
Note that this should only be used for regular grids.
965+
Note that this should only be used for regular grids (e.g. rectangular lat/lon grid).
967966
968967
Parameters
969968
----------
@@ -1028,8 +1027,7 @@ def quick_imshow(self, map_kws=None, roll_dateline=False, **kwargs):
10281027
return ax
10291028

10301029
def quick_map(self, map_kws=None, roll_dateline=False, **kwargs):
1031-
"""This function takes an xarray DataArray and quickly creates a figure
1032-
using cartopy and matplotlib ``pcolormesh``.
1030+
"""Quickly create a geo-referenced plot using Cartopy and Matplotlib.
10331031
10341032
Parameters
10351033
----------
@@ -1041,6 +1039,7 @@ def quick_map(self, map_kws=None, roll_dateline=False, **kwargs):
10411039
at 0 degrees.
10421040
**kwargs :
10431041
kwargs for :meth:`xarray.DataArray.plot.pcolormesh`
1042+
(actually passed to :meth:`xarray.DataArray.plot`, but pcolormesh is the usual result)
10441043
10451044
Returns
10461045
-------
@@ -1087,8 +1086,7 @@ def quick_map(self, map_kws=None, roll_dateline=False, **kwargs):
10871086
return ax
10881087

10891088
def quick_contourf(self, map_kws=None, roll_dateline=False, **kwargs):
1090-
"""This function takes an xarray DataArray and quickly creates a figure
1091-
using cartopy and matplotlib ``contourf``.
1089+
"""Quickly create a geo-referenced filled-contour plot using Cartopy and Matplotlib.
10921090
10931091
Parameters
10941092
----------

monet/plots/mapgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ def draw_map(
4444
extent : array-like
4545
Set the map extent with ``[lon_min,lon_max,lat_min,lat_max]``.
4646
figsize : tuple
47-
Figure size (width, height), passed to ``plt.subplots()``.
47+
Figure size (width, height), passed to :func:`plt.subplots() <matplotlib.pyplot.subplots>`.
4848
This takes precedence over the possible ``kwargs['figsize']``.
4949
linewidth : float
5050
Line width for coastlines, states, counties, and countries.
5151
return_fig : bool
5252
Return the figure and axes objects.
5353
By default (``False``), just the axes object is returned.
5454
**kwargs
55-
Arguments pass to ``plt.subplots()``.
55+
Arguments to pass to :func:`plt.subplots() <matplotlib.pyplot.subplots>`.
5656
5757
Returns
5858
-------

0 commit comments

Comments
 (0)