更改matplotlib图,渲染回jupyter笔记本中的默认值
我运行%config inlineBackend.figure_format ='entina'
在jupyter笔记本中,以更改笔记本渲染matplotlib的方式。
如何在不重新启动内核的情况下扭转?
我之所以问,是因为有些数字在%config InlineBackend.figure_format ='entina'
中看起来更好,而在默认设置中有些看起来更好。只是好奇您如何在笔记本上的两者之间切换。
I ran %config InlineBackend.figure_format = 'retina'
in a jupyter notebook to change the way the notebook renders matplotlib figures.
How do I reverse that without restarting the kernel?
I'm asking because some figures look better with %config InlineBackend.figure_format = 'retina'
and some look better with the default settings. Just curious how can you switch between the two across the notebook.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对我有用:
我发现您可以将格式设置为:
'png'
'entina'
'jpeg'jpeg'
'svg'
'pdf
每个都有一些优点和缺点。
This worked for me:
I found you can set the format to:
'png'
'retina'
'jpeg'
'svg'
'pdf
Where each has some pros and cons.