[Matplotlib-users] How to center axes intersecting at (0,0)
sh77
saikari.hakala at laposte.net
Fri Nov 13 09:21:04 EST 2015
Hi,
I'm new to matplotlib. I would like to do something very simple. In the
figure created by the following code, I would like the axes to be centered
in the figure and intersecting at point (0,0):
import matplotlib.pyplot as plt
plt.plot([1,2,3,4], [1,-4,9,-16], 'ro')
plt.axis([-6, 6, -20, 20])
plt.title('Title')
plt.show()
Can you please give me the simplest lines of code to achieve this? (the
hints to solutions that I have seen over the internet are amazingly complex
for such a simple task)
Many thanks
saikari
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/How-to-center-axes-intersecting-at-0-0-tp46427.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
More information about the Matplotlib-users
mailing list