Basically I'm in a situation where I want to lock down the starting point of the graph depending on the first graph that's plotted.
e.g. If i do something like this.
import matplotlib.pyplot as plt
plt.plot([7,8,9,10], [1,4,9,16], 'yo')
plt.plot([1,9,11,12], [1,4,9,16], 'ro')
plt.show()
I would like a way to restrict the x-axis to start from 7 so (1,1) from the second plot will be removed.
Is there a way to do this? I could keep track of it myself but just curious if there's something built in to handle this.
Thanks.