python - Jupyter笔记本中的Seaborn图表忽略了figsize参数
问题描述
出于某种原因,图表大小保持不变,尽管我更改了 figsize 参数。非常感谢您的帮助:)
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
dt = pd.DataFrame({'col':[26,0,23,7,23,23,22,23,19,22,1,1,11,11,23,14,23,21,11,23,10,11,13,28,18,25,23,28,18,23,18,18,
23,18,23,24,11,28,23,23,23,23,19,23,23,23,23,22,14]})
plt.figure(figsize=(15,6))
sns.displot(dt['col'], kde=True)
plt.show()
解决方案
推荐阅读
- c# - 为什么我以随机频率收到此“GDI+ 中发生一般错误。在 System.Drawing.Image.Save”?
- php - PHP - RethinkDB eachPOS 时间在时钟前进后延迟 1 小时
- c# - 保存按钮不会在第一次单击 Blazor Web 程序集编辑表单中触发事件
- if-statement - 列出 Haskell 中的理解和递归 if 语句
- reactjs - Switch case 不等待 React 中的 API 调用返回
- c++ - 警告:来自库的未经检查的返回值 (CHECKED_RETURN)
- database - 我可以将用户名和密码存储在文件中而不是数据库表中吗?
- javascript - 在被忽略的循环中标识“null”的 IF 语句
- c - 分配给类型“fpos_t”时由于类型不兼容导致的 fpost_t 错误
- python - 如何使用 open 在 python 中过滤数据文件并创建新文件?