在 miniconda 中使用 ipython 时没有得到情节
not getting plot while using ipython in miniconda
我在 ipython.here 中使用 matplotlib 时没有得到任何图是代码:
%matplotlib inline
import matplotlib.pyplot as plt
sns.set() # use Seaborn styles
births.pivot_table('births', index='year', columns='gender', aggfunc='sum').plot()
plt.ylabel('total births per year');
我得到的输出为:
<Figure size 432x288 with 1 Axes>
这是我在 运行 代码时得到的输出:
当我在code.Some开头使用 %matplotlib 时,我得到了答案。
我在 ipython.here 中使用 matplotlib 时没有得到任何图是代码:
%matplotlib inline
import matplotlib.pyplot as plt
sns.set() # use Seaborn styles
births.pivot_table('births', index='year', columns='gender', aggfunc='sum').plot()
plt.ylabel('total births per year');
我得到的输出为:
<Figure size 432x288 with 1 Axes>
这是我在 运行 代码时得到的输出:
当我在code.Some开头使用 %matplotlib 时,我得到了答案。