@@ -1130,7 +1130,7 @@ def add_axes(self, *args, **kwargs):
11301130 a custom projection, see `~matplotlib.projections`. The default
11311131 None results in a 'rectilinear' projection.
11321132
1133- polar : boolean, optional
1133+ polar : bool, default: False
11341134 If True, equivalent to projection='polar'.
11351135
11361136 sharex, sharey : `~.axes.Axes`, optional
@@ -1280,7 +1280,7 @@ def add_subplot(self, *args, **kwargs):
12801280 name of a custom projection, see `~matplotlib.projections`. The
12811281 default None results in a 'rectilinear' projection.
12821282
1283- polar : boolean, optional
1283+ polar : bool, default: False
12841284 If True, equivalent to projection='polar'.
12851285
12861286 sharex, sharey : `~.axes.Axes`, optional
@@ -2068,7 +2068,7 @@ def savefig(self, fname, *, transparent=None, **kwargs):
20682068 transparent=False, bbox_inches=None, pad_inches=0.1,
20692069 frameon=None, metadata=None)
20702070
2071- The output formats available depend on the backend being used.
2071+ The available output formats depend on the backend being used.
20722072
20732073 Parameters
20742074 ----------
@@ -2086,27 +2086,28 @@ def savefig(self, fname, *, transparent=None, **kwargs):
20862086
20872087 Other Parameters
20882088 ----------------
2089- dpi : [ *None* | scalar > 0 | 'figure' ]
2090- The resolution in dots per inch. If *None*, defaults to
2091- :rc:`savefig.dpi`. If 'figure', uses the figure's dpi value.
2089+ dpi : float or 'figure', default: :rc:`savefig.dpi`
2090+ The resolution in dots per inch. If 'figure', use the figure's
2091+ dpi value.
2092+
2093+ quality : int, default: :rc:`savefig.jpeg_quality`
2094+ Applicable only if *format* is 'jpg' or 'jpeg', ignored otherwise.
20922095
2093- quality : [ *None* | 1 <= scalar <= 100 ]
20942096 The image quality, on a scale from 1 (worst) to 95 (best).
2095- Applicable only if *format* is jpg or jpeg, ignored otherwise.
2096- If *None*, defaults to :rc:`savefig.jpeg_quality`.
2097- Values above 95 should be avoided; 100 completely disables the
2098- JPEG quantization stage.
2099-
2100- optimize : bool
2101- If *True*, indicates that the JPEG encoder should make an extra
2102- pass over the image in order to select optimal encoder settings.
2103- Applicable only if *format* is jpg or jpeg, ignored otherwise.
2104- Is *False* by default.
2105-
2106- progressive : bool
2107- If *True*, indicates that this image should be stored as a
2108- progressive JPEG file. Applicable only if *format* is jpg or
2109- jpeg, ignored otherwise. Is *False* by default.
2097+ Values above 95 should be avoided; 100 disables portions of
2098+ the JPEG compression algorithm, and results in large files
2099+ with hardly any gain in image quality.
2100+
2101+ optimize : bool, default: False
2102+ Applicable only if *format* is 'jpg' or 'jpeg', ignored otherwise.
2103+
2104+ Whether the encoder should make an extra pass over the image
2105+ in order to select optimal encoder settings.
2106+
2107+ progressive : bool, default: False
2108+ Applicable only if *format* is 'jpg' or 'jpeg', ignored otherwise.
2109+
2110+ Whether the image should be stored as a progressive JPEG file.
21102111
21112112 facecolor : color or None, optional
21122113 The facecolor of the figure; if *None*, defaults to
@@ -2331,11 +2332,9 @@ def waitforbuttonpress(self, timeout=-1):
23312332 """
23322333 Blocking call to interact with the figure.
23332334
2334- This will return True is a key was pressed, False if a mouse
2335- button was pressed and None if *timeout* was reached without
2336- either being pressed.
2337-
2338- If *timeout* is negative, does not timeout.
2335+ Wait for user input and return True if a key was pressed, False if a
2336+ mouse button was pressed and None if no input was given within
2337+ *timeout* seconds. Negative values deactivate *timeout*.
23392338 """
23402339 blocking_input = BlockingKeyMouseInput (self )
23412340 return blocking_input (timeout = timeout )
@@ -2450,7 +2449,7 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
24502449
24512450 To exclude an artist on the axes from the bounding box calculation
24522451 that determines the subplot parameters (i.e. legend, or annotation),
2453- then set `a.set_in_layout(False)` for that artist.
2452+ set `a.set_in_layout(False)` for that artist.
24542453
24552454 Parameters
24562455 ----------
0 commit comments