How do you change the size of figures drawn with Matplotlib?(如何更改使用 Matplotlib 绘制的图形的大小?)
问题描述
How do you change the size of figure drawn with Matplotlib?
figure
tells you the call signature:
from matplotlib.pyplot import figure
figure(figsize=(8, 6), dpi=80)
figure(figsize=(1,1))
would create an inch-by-inch image, which would be 80-by-80 pixels unless you also give a different dpi argument.
这篇关于如何更改使用 Matplotlib 绘制的图形的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!