<ipython-input-7-6ebedab27258>:1: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure. fig.show() code example
Example: matplotlib is currently using agg
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")