Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed as not planned
Description
I think it is confusing that the limits are normally set byxlim
and in subplots byset_xlim
.
Would it not be nice to use the same nameax.xlim(0,1)
for subplots ?
importnumpyasnpimportmatplotlib.pyplotaspltplt.figure(1)plt.xlim(0,1)plt.plot([1,2])fix,ax=plt.subplots()ax.set_xlim(0,1)## why not ax.xlim(0,1) ?ax.plot([1,2])