@@ -1288,26 +1288,24 @@ def apply_aspect(self, position=None):
1288
1288
def axis (self , * v , ** kwargs ):
1289
1289
"""Set axis properties.
1290
1290
1291
- If no positional or kwargs are given, returns the current
1292
- axes limits are returned with no side effects.
1291
+ Valid signatures::
1293
1292
1294
- If a positional argument is passed the keyword arguments are ignored.
1295
-
1296
- If no positional argument is passed, the keyword arguments are used.
1293
+ xmin, xmax, ymin, ymax = axis()
1294
+ xmin, xmax, ymin, ymax = axis(list_arg)
1295
+ xmin, xmax, ymin, ymax = axis(string_arg)
1296
+ xmin, xmax, ymin, ymax = axis(**kwargs)
1297
1297
1298
1298
Parameters
1299
1299
----------
1300
1300
v : list of float or {'on', 'off', 'equal', 'tight', 'scaled',\
1301
- 'normal', 'auto', 'image', 'square'}
1301
+ 'normal', 'auto', 'image', 'square'}
1302
1302
Optional positional argument
1303
1303
1304
- Value to set the axis settings to.
1305
- If a list it is interpreted as [xmin, xmax, ymin, ymax].
1306
- If a string
1304
+ Axis data limits set from a list; or a command relating to axes:
1307
1305
1308
- ========== ===============================================
1306
+ ========== ================================================
1309
1307
Value Description
1310
- ========== ===============================================
1308
+ ========== ================================================
1311
1309
'on' Toggle axis lines and labels on
1312
1310
'off' Toggle axis lines and labels off
1313
1311
'equal' Equal scaling by changing limits
@@ -1316,8 +1314,9 @@ def axis(self, *v, **kwargs):
1316
1314
'auto' Automatic scaling, fill rectangle with data
1317
1315
'normal' Same as 'auto'; deprecated
1318
1316
'image' 'scaled' with axis limits equal to data limits
1319
- 'square' Square plot; both axis have equal limit range
1320
- ========== ===============================================
1317
+ 'square' Square plot; similar to 'scaled', but initially\
1318
+ forcing xmax-xmin = ymax-ymin
1319
+ ========== ================================================
1321
1320
1322
1321
emit : bool, optional
1323
1322
Passed to set_{x,y}lim functions, if observers
0 commit comments