【问题标题】:BoxPlot figure is not showing( just getting <AxesSubplot:>)BoxPlot 图没有显示(只是得到 <AxesSubplot:>)
【发布时间】:2022-01-05 14:46:13
【问题描述】:

我已经有 Tkinter(有人说要安装 tkinter)

使用的代码:

进口是:

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()

如果你想查看数据集,那么它是:

df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/diabetes.csv")

用于在 jupyter notebook 中绘制箱线图的代码

fig, ax = plt.subplots(figsize = (20,20))
sns.boxplot(data = df,ax = ax)

)

【问题讨论】:

    标签: matplotlib jupyter-notebook jupyter boxplot subplot


    【解决方案1】:

    我应该在我的导入中添加

    %matplotlib inline
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-19
      • 1970-01-01
      • 2016-08-22
      • 1970-01-01
      • 2019-12-30
      • 2022-07-29
      • 1970-01-01
      相关资源
      最近更新 更多