File tree Expand file tree Collapse file tree 4 files changed +25
-27
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +25
-27
lines changed
Original file line number Diff line number Diff line change @@ -538,9 +538,9 @@ def set_snap(self, snap):
538
538
539
539
Parameters
540
540
----------
541
- snap : Optional[ bool]
541
+ snap : bool or None
542
542
..
543
- ACCEPTS: Optional[ bool]
543
+ ACCEPTS: bool or None
544
544
"""
545
545
self ._snap = snap
546
546
self .stale = True
@@ -783,13 +783,13 @@ def set_rasterized(self, rasterized):
783
783
"""
784
784
Force rasterized (bitmap) drawing in vector backend output.
785
785
786
- Defaults to None, which implies the backend's default behavior
786
+ Defaults to None, which implies the backend's default behavior.
787
787
788
788
Parameters
789
789
----------
790
- rasterized : Optional[ bool]
790
+ rasterized : bool or None
791
791
..
792
- ACCEPTS: [True | False | None]
792
+ ACCEPTS: bool or None
793
793
"""
794
794
if rasterized and not hasattr (self .draw , "_supports_rasterization" ):
795
795
warnings .warn ("Rasterization of '%s' will be ignored" % self )
Original file line number Diff line number Diff line change @@ -2203,23 +2203,20 @@ def margins(self, *args, **kw):
2203
2203
2204
2204
def set_rasterization_zorder (self , z ):
2205
2205
"""
2206
- Set zorder value below which artists will be rasterized. Set to
2207
- ``None`` to disable rasterizing of artists below a particular zorder.
2208
-
2209
- ..
2210
- ACCEPTS: Optional[float]
2211
-
2212
2206
Parameters
2213
2207
----------
2214
- z : Optional[float]
2208
+ z : float or None
2209
+ zorder below which artists are rasterized. ``None`` means that
2210
+ artists do not get rasterized based on zorder.
2211
+
2212
+ ..
2213
+ ACCEPTS: float or None
2215
2214
"""
2216
2215
self ._rasterization_zorder = z
2217
2216
self .stale = True
2218
2217
2219
2218
def get_rasterization_zorder (self ):
2220
- """
2221
- Get zorder value below which artists will be rasterized
2222
- """
2219
+ """Return the zorder value below which artists will be rasterized."""
2223
2220
return self ._rasterization_zorder
2224
2221
2225
2222
def autoscale (self , enable = True , axis = 'both' , tight = None ):
Original file line number Diff line number Diff line change @@ -373,13 +373,13 @@ def contains(self, mouseevent):
373
373
374
374
def set_urls (self , urls ):
375
375
"""
376
- ..
377
- ACCEPTS: Optional[Iterable[str]]
376
+ Parameters
377
+ ----------
378
+ urls : List[str] or None
379
+ ..
380
+ ACCEPTS: List[str] or None
378
381
"""
379
- if urls is None :
380
- self ._urls = [None , ]
381
- else :
382
- self ._urls = urls
382
+ self ._urls = urls if urls is not None else [None ]
383
383
self .stale = True
384
384
385
385
def get_urls (self ):
Original file line number Diff line number Diff line change @@ -1219,13 +1219,14 @@ def set_font_properties(self, fp):
1219
1219
1220
1220
def set_usetex (self , usetex ):
1221
1221
"""
1222
- Set whether to render using TeX.
1223
-
1224
- If ``None`` is given, the option will be reset to use the value of
1225
- ``rcParams['text.usetex']``.
1222
+ Parameters
1223
+ ----------
1224
+ usetex : bool or None
1225
+ Whether to render using TeX, ``None`` means to use the
1226
+ ``rcParams['text.usetex']``.
1226
1227
1227
- ..
1228
- ACCEPTS: Optional[ bool]
1228
+ ..
1229
+ ACCEPTS: bool or None
1229
1230
"""
1230
1231
if usetex is None :
1231
1232
self ._usetex = rcParams ['text.usetex' ]
You can’t perform that action at this time.
0 commit comments