Python:matplotlib绘图

1.Python:matplotlib绘图时指定图像大小,放大图像 matplotlib绘图时是默认的大小,有时候默认的大小会感觉图片里的内容都被压缩了,解决方法如下。 先是原始代码: 1 2 3 4 5 6 7 from matplotlib import pyplot as plt   plt.figure(figsize=(1,1)) #单位是英寸   x = [1,2,3] plt.plo
相关文章
相关标签/搜索