xlimit python code example
Example 1: xlim python
plt.xlim([a,b])
Example 2: get xlim python
ax=plt.subplot(111)
ylims=ax.get_ylim()
xlims=ax.get_xlim()
plt.xlim([a,b])
ax=plt.subplot(111)
ylims=ax.get_ylim()
xlims=ax.get_xlim()