@@ -1310,20 +1310,21 @@ def xlim(*args, **kwargs):
13101310
13111311 Call signatures::
13121312
1313- xmin, xmax = xlim() # return the current xlim
1314- xlim((xmin, xmax )) # set the xlim to xmin, xmax
1315- xlim(xmin, xmax ) # set the xlim to xmin, xmax
1313+ left, right = xlim() # return the current xlim
1314+ xlim((left, right )) # set the xlim to left, right
1315+ xlim(left, right ) # set the xlim to left, right
13161316
1317- If you do not specify args, you can pass *xmin* or *xmax* as kwargs, i.e.::
1317+ If you do not specify args, you can pass *left* or *right* as kwargs,
1318+ i.e.::
13181319
1319- xlim(xmax =3) # adjust the max leaving min unchanged
1320- xlim(xmin =1) # adjust the min leaving max unchanged
1320+ xlim(right =3) # adjust the right leaving left unchanged
1321+ xlim(left =1) # adjust the left leaving right unchanged
13211322
13221323 Setting limits turns autoscaling off for the x-axis.
13231324
13241325 Returns
13251326 -------
1326- xmin, xmax
1327+ left, right
13271328 A tuple of the new x-axis limits.
13281329
13291330 Notes
@@ -1346,21 +1347,21 @@ def ylim(*args, **kwargs):
13461347
13471348 Call signatures::
13481349
1349- ymin, ymax = ylim() # return the current ylim
1350- ylim((ymin, ymax )) # set the ylim to ymin, ymax
1351- ylim(ymin, ymax ) # set the ylim to ymin, ymax
1350+ bottom, top = ylim() # return the current ylim
1351+ ylim((bottom, top )) # set the ylim to bottom, top
1352+ ylim(bottom, top ) # set the ylim to bottom, top
13521353
1353- If you do not specify args, you can alternatively pass *ymin * or *ymax* as
1354- kwargs, i.e.::
1354+ If you do not specify args, you can alternatively pass *bottom * or
1355+ *top* as kwargs, i.e.::
13551356
1356- ylim(ymax =3) # adjust the max leaving min unchanged
1357- ylim(ymin =1) # adjust the min leaving max unchanged
1357+ ylim(top =3) # adjust the top leaving bottom unchanged
1358+ ylim(bottom =1) # adjust the top leaving bottom unchanged
13581359
13591360 Setting limits turns autoscaling off for the y-axis.
13601361
13611362 Returns
13621363 -------
1363- ymin, ymax
1364+ bottom, top
13641365 A tuple of the new y-axis limits.
13651366
13661367 Notes
0 commit comments