首页 > 解决方案 > 下载的谷歌热图 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">

所有,图片显示正确,不包括热图 - 只出现一个空白图像。

有任何想法吗?谢谢!

标签: pythonimagereadme

解决方案


推荐阅读