How do you change the size of figure drawn with matplotlib?
Please try a simple code as following:
from matplotlib import pyplot as plt plt.figure(figsize=(1,1)) x = [1,2,3] plt.plot(x, x) plt.show()
You need to set the figure size before you plot.