Displaying a numpy plot
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(6, 3))
plt.plot(x, y)
plt.show()
Why doesn't plt.show()
display my plot? plt.savefig('myplot.png')
works, however.
thanks
This is because the hooks are not there; however, they should be in the IPython notebook (?)
Are you using SageMath on your computer (if so: command-line or notebook?) or online at cloud.sagemath.com, or other?
I'm using Sage with KDE Cantor on Linux.