@@ -920,11 +920,12 @@ def add_axes(self, *args, **kwargs):
920920 polar : boolean, optional
921921 If True, equivalent to projection='polar'.
922922
923- This method also takes the keyword arguments for
924- :class:`~matplotlib.axes.Axes`.
923+ **kwargs
924+ This method also takes the keyword arguments for
925+ :class:`~matplotlib.axes.Axes`.
925926
926927 Returns
927- ------
928+ -------
928929 axes : Axes
929930 The added axes.
930931
@@ -1022,8 +1023,9 @@ def add_subplot(self, *args, **kwargs):
10221023 polar : boolean, optional
10231024 If True, equivalent to projection='polar'.
10241025
1025- This method also takes the keyword arguments for
1026- :class:`~matplotlib.axes.Axes`.
1026+ **kwargs
1027+ This method also takes the keyword arguments for
1028+ :class:`~matplotlib.axes.Axes`.
10271029
10281030 Returns
10291031 -------
@@ -1038,6 +1040,8 @@ def add_subplot(self, *args, **kwargs):
10381040
10391041 Examples
10401042 --------
1043+ ::
1044+
10411045 fig.add_subplot(111)
10421046
10431047 # equivalent but more general
@@ -1762,9 +1766,10 @@ def savefig(self, fname, **kwargs):
17621766
17631767 The output formats available depend on the backend being used.
17641768
1765- Arguments:
1769+ Parameters
1770+ ----------
17661771
1767- * fname*:
1772+ fname : str or file-like object
17681773 A string containing a path to a filename, or a Python
17691774 file-like object, or possibly some backend-dependent object
17701775 such as :class:`~matplotlib.backends.backend_pdf.PdfPages`.
@@ -1777,29 +1782,33 @@ def savefig(self, fname, **kwargs):
17771782 If *fname* is not a string, remember to specify *format* to
17781783 ensure that the correct backend is used.
17791784
1780- Keyword arguments:
1785+ Other Parameters
1786+ ----------------
17811787
1782- * dpi* : [ *None* | `` scalar > 0`` | 'figure']
1788+ dpi : [ *None* | scalar > 0 | 'figure']
17831789 The resolution in dots per inch. If *None* it will default to
17841790 the value ``savefig.dpi`` in the matplotlibrc file. If 'figure'
17851791 it will set the dpi to be the value of the figure.
17861792
1787- *facecolor*, *edgecolor*:
1788- the colors of the figure rectangle
1793+ facecolor : color spec or None, optional
1794+ the facecolor of the figure; if None, defaults to savefig.facecolor
1795+
1796+ edgecolor : color spec or None, optional
1797+ the edgecolor of the figure; if None, defaults to savefig.edgecolor
17891798
1790- * orientation*: [ 'landscape' | 'portrait' ]
1799+ orientation : { 'landscape', 'portrait'}
17911800 not supported on all backends; currently only on postscript output
17921801
1793- * papertype*:
1802+ papertype : str
17941803 One of 'letter', 'legal', 'executive', 'ledger', 'a0' through
17951804 'a10', 'b0' through 'b10'. Only supported for postscript
17961805 output.
17971806
1798- * format*:
1807+ format : str
17991808 One of the file extensions supported by the active
18001809 backend. Most backends support png, pdf, ps, eps and svg.
18011810
1802- * transparent*:
1811+ transparent : bool
18031812 If *True*, the axes patches will all be transparent; the
18041813 figure patch will also be transparent unless facecolor
18051814 and/or edgecolor are specified via kwargs.
@@ -1808,21 +1817,21 @@ def savefig(self, fname, **kwargs):
18081817 transparency of these patches will be restored to their
18091818 original values upon exit of this function.
18101819
1811- * frameon*:
1820+ frameon : bool
18121821 If *True*, the figure patch will be colored, if *False*, the
18131822 figure background will be transparent. If not provided, the
18141823 rcParam 'savefig.frameon' will be used.
18151824
1816- * bbox_inches*:
1825+ bbox_inches : str or `~matplotlib.transforms.Bbox`, optional
18171826 Bbox in inches. Only the given portion of the figure is
18181827 saved. If 'tight', try to figure out the tight bbox of
1819- the figure.
1828+ the figure. If None, use savefig.bbox
18201829
1821- * pad_inches*:
1830+ pad_inches : scalar, optional
18221831 Amount of padding around the figure when bbox_inches is
1823- 'tight'.
1832+ 'tight'. If None, use savefig.pad_inches
18241833
1825- * bbox_extra_artists*:
1834+ bbox_extra_artists : list of `~matplotlib.artist.Artist`, optional
18261835 A list of extra artists that will be considered when the
18271836 tight bbox is calculated.
18281837
@@ -2016,17 +2025,20 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
20162025 """
20172026 Adjust subplot parameters to give specified padding.
20182027
2019- Parameters:
2028+ Parameters
2029+ ----------
20202030
2021- pad : float
2031+ pad : float
20222032 padding between the figure edge and the edges of subplots,
20232033 as a fraction of the font-size.
2024- h_pad, w_pad : float
2034+
2035+ h_pad, w_pad : float, optional
20252036 padding (height/width) between edges of adjacent subplots.
20262037 Defaults to `pad_inches`.
2027- rect : if rect is given, it is interpreted as a rectangle
2028- (left, bottom, right, top) in the normalized figure
2029- coordinate that the whole subplots area (including
2038+
2039+ rect : tuple (left, bottom, right, top), optional
2040+ a rectangle (left, bottom, right, top) in the normalized
2041+ figure coordinate that the whole subplots area (including
20302042 labels) will fit into. Default is (0, 0, 1, 1).
20312043 """
20322044
0 commit comments