You can pass just left
or right
to set_xlim
:
plt.gca().set_xlim(left=0)
For the y axis, use bottom
or top
:
plt.gca().set_ylim(bottom=0)
You can pass just left
or right
to set_xlim
:
plt.gca().set_xlim(left=0)
For the y axis, use bottom
or top
:
plt.gca().set_ylim(bottom=0)