python - 下载的谷歌热图 png 不会加载到 Jupyter Notebook 中的自述文件中
问题描述
我正在为一个小组项目编写我的第一个自述文件,并且难以让 API Google 热图在自述文件中显示为图像。
对于所有其他图片,我使用以下代码将图像保存到文件夹:
plt.gcf()
plt.savefig("images/name_of_file.png")
对于热图,我通过单击图像的左上角下载。
在自述文件中,我显示图像的代码如下所示:
<img src="images/1_drinking_bin_correlation_matrix.png" width="700" height="400">
<img src="images/2_top_5_pie_chart.png" width="700" height="400">
<img src="images/3_part_one_heat_map.png" width="700" height="400">
<img src="images/4_continent_boxplot.png" width="700" height="400">
所有,图片显示正确,不包括热图 - 只出现一个空白图像。
有任何想法吗?谢谢!
解决方案
推荐阅读
- python - 我的模型似乎不起作用,因为准确度和损失为 0
- python - 如何对一组图像(.png 格式)执行二进制阈值处理并将它们写入另一个具有相同文件名(和相同 .png 扩展名)的文件夹中?
- docker - 带有 Docker 的 gcc 开发环境?
- c - 有什么方法可以在 C 中使用 strcmp 比较 2 个不同长度的字符串
- java - Oracle 12c 始终使用 100% CPU
- c# - 为什么我不能从 C# 中的 Powershell.Invoke() 方法返回所有 cimsession 函数
- ios - IOS上的渐进式Web应用程序添加到主页更新问题
- sql - REGEX 通过 SQL DB2 获取所有匹配的模式
- rest - Xamarin Forms Android & iOS 背景提取
- django - 使用 django-tailwind 包在 django 项目中以开发模式启动 npm 失败