Make a figure 4 inches by 3 at 150 dpi, and return its pixel size as a list of…

Matplotlib · from Showing and saving

plt.showfig.savefigbbox_inchesdpiplt.closematplotlib.use

Putting the kettle on…

Starting up…

Exercise 1

Make a figure 4 inches by 3 at 150 dpi, and return its pixel size as a list of two ints, [width, height].

your answer
stuck? the lesson behind it
Showing and saving
Backends, the blank-file trap, and getting a file worth sending