python - 在 miniconda 中使用 ipython 时没有得到情节
问题描述
当我在 ipython 中使用 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>
这是我在运行代码时得到的输出:
解决方案
推荐阅读
- r - 任何使用 superlu 的 R 包都可以安装在 Windows 中
- r - 我在 RStudio 中的这个 ifelse, is.na, lag 函数做错了什么?未能返回以下正确的 0 和 1
- nginx - Ngnix 错误/翼龙错误?不知道如何修复
- blazor - Blazor EditForm 以禁用提交按钮开始
- graylog2 - 在 Graylog 中出现错误“我们在连接到在 http://127.0.0.1:9000/api/ 上运行的 Graylog 服务器时遇到问题。”?
- javascript - 使用 React/Redux 在公里和英里之间进行通用切换
- ios - 使用填充表运送 CoreData 应用程序
- python - AWS Lambda 调用 DynamoDB put_item 给出语法错误
- java - 在 Java 构建路径中找不到超类“javax.servlet.http.HttpServlet” - 通用修复不起作用
- go - 去构建,找不到路径的模块