Description
Bug report
Bug summary
After using the "%matplotlib notebook" magic command and interacting with the plot using "Pan" or "Zoom to Rectangle" the "Download Plot" button produces a image comprising of static. Before interaction it downloads the image as expected. I will note that in my browser the plot is actually subtle white and grey noise in place of the black as seen below
Code for reproduction
%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0,2*np.pi,50)
plt.plot(x,np.sin(x))
plt.show()
Actual outcome
Download Plot without interaction:
Download Plot after using "Pan" only
Download plot after using "Zoom to Rectangle" to zoom in on x from 0 to pi
Download plot after using "Pan" THEN "Zoom to Rectangle"
Download plot after using "Zoom to Rectangle" THEN"Pan"
Expected outcome
Not static, for example using "Zoom to Rectangle" to zoom in on x from 0 to pi
Matplotlib version
First System:
- Operating system: Linux Kernel 3.10.0-862.el7.x86_64
- Matplotlib version: 3.1.3
- Matplotlib backend (nbAgg):
- Python version: 3.7.6
- Jupyter version (if applicable): 6.0.3
- Browser : Firefox
- Other libraries:
Second System:
- Operating system:Windows 10 18363.900 machine
- Matplotlib version: 3.2.2
- Matplotlib backend (nbAgg):
- Python version: 3.7.4
- Jupyter version (if applicable): 6.0.3
- Browser: Firefox
- Other libraries:
To be honest I'm not incredibly sure how the Linux system was set up since I am mostly just using it remotely (both with X-forwarding and using remote kernels), but for the Windows system I install and update everything using Anaconda or conda commands in cmd.
I haven't been able to find anything to fix this issue, and I've tried changing the backend but I'm not familiar enough with those to mess around with them, hopefully theres some kind of solution directly within the code or through upgrading/downgrading some packages. Thanks!