簡體   English   中英

在jupyter notebook中使用matplotlib的“下載圖”function時圖像失真

[英]Distorted images when using the "download plot" function of matplotlib in jupyter notebook

當我使用下面的代碼在 jupyter 中繪制圖形時,我可以按“下載圖”並獲得預期的 png。 但是,當我在下載 plot 之前使用“平移”或“縮放”時,會出現一些失真甚至空白的圖像,如下圖所示。

我正在使用 Firefox 84.0、Jupyter 6.03 和 Python 3.8.3。

有誰知道如何解決這個問題?

編輯:我重新安裝了 Anaconda,它將 Jupyter 更新到 6.1.4。 現在一切正常。

import matplotlib.pyplot as plt
%matplotlib notebook

x = [1,2,3,4,5,6]
y = [4,2,7,15,17,11]

fig, ax = plt.subplots()
ax.plot(x,y)

扭曲的圖像:圖像失真

我重新安裝了 Anaconda,它將 Jupyter 更新到 6.1.4。 現在一切正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM