Jupyter Notebook中的输出图形大小 [英] Output figure size in Jupyter Notebook
本文介绍了Jupyter Notebook中的输出图形大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚将Jupyter版本升级到4.2.1,似乎对于相同的figsize
,内联数据已经变得更大了.
I just upgraded my Jupyter version to 4.2.1 and it seems as though inline figures have gotten a lot larger for the same figsize
.
我在想这个吗?
我可以在不更改figsize
的情况下进行更改吗?
Can I change that without changing the figsize
?
推荐答案
您可以使用如下所示的顶级matplotlib
设置:
You can use top-level matplotlib
settings like this:
import matplotlib as mpl
mpl.rcParams['figure.figsize'] = (10,10)
这会将默认图形尺寸更改为10x10.有关此文档的更多信息: http://matplotlib.org/users/customizing.html
This will change default figure size to 10x10. More on that in the documentation: http://matplotlib.org/users/customizing.html
这篇关于Jupyter Notebook中的输出图形大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文