@@ -1130,7 +1130,7 @@ def add_axes(self, *args, **kwargs):
1130
1130
a custom projection, see `~matplotlib.projections`. The default
1131
1131
None results in a 'rectilinear' projection.
1132
1132
1133
- polar : boolean, optional
1133
+ polar : bool, default: False
1134
1134
If True, equivalent to projection='polar'.
1135
1135
1136
1136
sharex, sharey : `~.axes.Axes`, optional
@@ -1280,7 +1280,7 @@ def add_subplot(self, *args, **kwargs):
1280
1280
name of a custom projection, see `~matplotlib.projections`. The
1281
1281
default None results in a 'rectilinear' projection.
1282
1282
1283
- polar : boolean, optional
1283
+ polar : bool, default: False
1284
1284
If True, equivalent to projection='polar'.
1285
1285
1286
1286
sharex, sharey : `~.axes.Axes`, optional
@@ -2068,7 +2068,7 @@ def savefig(self, fname, *, transparent=None, **kwargs):
2068
2068
transparent=False, bbox_inches=None, pad_inches=0.1,
2069
2069
frameon=None, metadata=None)
2070
2070
2071
- The output formats available depend on the backend being used.
2071
+ The available output formats depend on the backend being used.
2072
2072
2073
2073
Parameters
2074
2074
----------
@@ -2086,27 +2086,28 @@ def savefig(self, fname, *, transparent=None, **kwargs):
2086
2086
2087
2087
Other Parameters
2088
2088
----------------
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.
2092
2095
2093
- quality : [ *None* | 1 <= scalar <= 100 ]
2094
2096
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.
2110
2111
2111
2112
facecolor : color or None, optional
2112
2113
The facecolor of the figure; if *None*, defaults to
@@ -2331,11 +2332,9 @@ def waitforbuttonpress(self, timeout=-1):
2331
2332
"""
2332
2333
Blocking call to interact with the figure.
2333
2334
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*.
2339
2338
"""
2340
2339
blocking_input = BlockingKeyMouseInput (self )
2341
2340
return blocking_input (timeout = timeout )
@@ -2450,7 +2449,7 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
2450
2449
2451
2450
To exclude an artist on the axes from the bounding box calculation
2452
2451
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.
2454
2453
2455
2454
Parameters
2456
2455
----------
0 commit comments