Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Graphic not shown in PyCharm

Using sage inside a Python program with PyCharm if I write:

q = sage.all.plot(lambda x: x*x, 1, 10)
q.show()

I get in Python console: "Graphics object consisting of 1 graphics primitive" and the program ends well, but the graphic is not shown. On the other hand if I write:

import matplotlib.pyplot as plt
plt.plot([i*i for i in range(10)])
plt.show()

Graphic is perfectly shown in Plots window inside PyCharm. So matplotlib plots are perfectly shown but sage plots are not.

¿How could I get sage plots using PyCharm?

Thank you.