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

Skip to content

Commit 9fad6a7

Browse files
committed
Fix docstrings for multiple parameters
:param x, y: is wrong, it looks like *y* (x,) in the result :param x,y: is better, it looks like *x,y* Really I suspect sphinx doesn't support describing multiple parameters in one list item, but this way it looks less nonsensical. Idea from https://sources.debian.net/src/matplotlib/1.4.2-3.1/debian/patches/50_bts608942_spaces_in_param_args.patch/ but this fixes more cases.
1 parent ce20610 commit 9fad6a7

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

lib/mpl_toolkits/axes_grid1/axes_divider.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ def get_position_runtime(self, ax, renderer):
201201
def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None):
202202
"""
203203
204-
:param nx, nx1: Integers specifying the column-position of the
204+
:param nx,nx1: Integers specifying the column-position of the
205205
cell. When nx1 is None, a single nx-th column is
206206
specified. Otherwise location of columns spanning between nx
207207
to nx1 (but excluding nx1-th column) is specified.
208208
209-
:param ny, ny1: same as nx and nx1, but for row positions.
209+
:param ny,ny1: same as nx and nx1, but for row positions.
210210
"""
211211

212212
figW, figH = self._fig.get_size_inches()
@@ -250,12 +250,12 @@ def new_locator(self, nx, ny, nx1=None, ny1=None):
250250
(:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for
251251
specified cell.
252252
253-
:param nx, nx1: Integers specifying the column-position of the
253+
:param nx,nx1: Integers specifying the column-position of the
254254
cell. When nx1 is None, a single nx-th column is
255255
specified. Otherwise location of columns spanning between nx
256256
to nx1 (but excluding nx1-th column) is specified.
257257
258-
:param ny, ny1: same as nx and nx1, but for row positions.
258+
:param ny,ny1: same as nx and nx1, but for row positions.
259259
"""
260260
return AxesLocator(self, nx, ny, nx1, ny1)
261261

@@ -298,12 +298,12 @@ def __init__(self, axes_divider, nx, ny, nx1=None, ny1=None):
298298
"""
299299
:param axes_divider: An instance of AxesDivider class.
300300
301-
:param nx, nx1: Integers specifying the column-position of the
301+
:param nx,nx1: Integers specifying the column-position of the
302302
cell. When nx1 is None, a single nx-th column is
303303
specified. Otherwise location of columns spanning between nx
304304
to nx1 (but excluding nx1-th column) is is specified.
305305
306-
:param ny, ny1: same as nx and nx1, but for row positions.
306+
:param ny,ny1: same as nx and nx1, but for row positions.
307307
"""
308308
self._axes_divider = axes_divider
309309

@@ -719,12 +719,12 @@ def new_locator(self, nx, nx1=None):
719719
(:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for
720720
specified cell.
721721
722-
:param nx, nx1: Integers specifying the column-position of the
722+
:param nx,nx1: Integers specifying the column-position of the
723723
cell. When nx1 is None, a single nx-th column is
724724
specified. Otherwise location of columns spanning between nx
725725
to nx1 (but excluding nx1-th column) is specified.
726726
727-
:param ny, ny1: same as nx and nx1, but for row positions.
727+
:param ny,ny1: same as nx and nx1, but for row positions.
728728
"""
729729
return AxesLocator(self, nx, 0, nx1, None)
730730

@@ -733,12 +733,12 @@ def _locate(self, x, y, w, h,
733733
figW, figH):
734734
"""
735735
736-
:param nx, nx1: Integers specifying the column-position of the
736+
:param nx,nx1: Integers specifying the column-position of the
737737
cell. When nx1 is None, a single nx-th column is
738738
specified. Otherwise location of columns spanning between nx
739739
to nx1 (but excluding nx1-th column) is specified.
740740
741-
:param ny, ny1: same as nx and nx1, but for row positions.
741+
:param ny,ny1: same as nx and nx1, but for row positions.
742742
"""
743743

744744
equivalent_sizes = y_equivalent_sizes
@@ -765,12 +765,12 @@ def _locate(self, x, y, w, h,
765765
def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None):
766766
"""
767767
768-
:param nx, nx1: Integers specifying the column-position of the
768+
:param nx,nx1: Integers specifying the column-position of the
769769
cell. When nx1 is None, a single nx-th column is
770770
specified. Otherwise location of columns spanning between nx
771771
to nx1 (but excluding nx1-th column) is specified.
772772
773-
:param ny, ny1: same as nx and nx1, but for row positions.
773+
:param ny,ny1: same as nx and nx1, but for row positions.
774774
"""
775775

776776
figW, figH = self._fig.get_size_inches()
@@ -801,24 +801,24 @@ def new_locator(self, ny, ny1=None):
801801
(:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for
802802
specified cell.
803803
804-
:param nx, nx1: Integers specifying the column-position of the
804+
:param nx,nx1: Integers specifying the column-position of the
805805
cell. When nx1 is None, a single nx-th column is
806806
specified. Otherwise location of columns spanning between nx
807807
to nx1 (but excluding nx1-th column) is specified.
808808
809-
:param ny, ny1: same as nx and nx1, but for row positions.
809+
:param ny,ny1: same as nx and nx1, but for row positions.
810810
"""
811811
return AxesLocator(self, 0, ny, None, ny1)
812812

813813
def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None):
814814
"""
815815
816-
:param nx, nx1: Integers specifying the column-position of the
816+
:param nx,nx1: Integers specifying the column-position of the
817817
cell. When nx1 is None, a single nx-th column is
818818
specified. Otherwise location of columns spanning between nx
819819
to nx1 (but excluding nx1-th column) is specified.
820820
821-
:param ny, ny1: same as nx and nx1, but for row positions.
821+
:param ny,ny1: same as nx and nx1, but for row positions.
822822
"""
823823

824824
figW, figH = self._fig.get_size_inches()

0 commit comments

Comments
 (0)