Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() code example
Example: matplotlib is currently using agg
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")