I'm running Ubuntu 14.04 (server edition) on my home server and I have Python 2.7.6 installed with matplotlib 1.3.1 using TkAgg as the backend. I'm connecting to it via ssh -Y.
The problem I'm having is that creation of the plot object is very slow. So for example:
import matplotlib.pyplot as plt
x=[0,1,2,3,4]
y=[0,1,4,9,16]
plt.plot(x,y)
This code takes about 10 seconds to run when it should take a fraction of a second. Notice that it isn't even showing the plot, if I add plt.show()
it makes no significant difference in time. Running the code in the python interpreter or from a file also makes no difference. The plot does get displayed on my local screen just fine once I wait long enough. Also plotting 5 points or 50 points doesn't seem to make any difference.
Any ideas?