Matplotlib - change automatic axis range - Stack Overflow
https://stackoverflow.com/questions/34884396/matplotlib-change-automatic-axis-range
WebJan 19, 2016 · 3 Answers Sorted by: 12 First off, let's set up a simple example: import matplotlib.pyplot as plt fig, ax = plt.subplots () ax.plot ( [-29, 31], [-29, 31]) plt.show () If you'd like to know the data range for manually specifying things as you mentioned, you can use: ax.xaxis.get_data_interval () ax.yaxis.get_data_interval ()
DA: 43 PA: 82 MOZ Rank: 33