8000 "%matplotlib notebook" Download is Noise After Interacting with Plot · Issue #17807 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
"%matplotlib notebook" Download is Noise After Interacting with Plot #17807
Closed
@TylerHorvath

Description

@TylerHorvath

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:
image

Download Plot after using "Pan" only
image

Download plot after using "Zoom to Rectangle" to zoom in on x from 0 to pi
image

Download plot after using "Pan" THEN "Zoom to Rectangle"
image

Download plot after using "Zoom to Rectangle" THEN"Pan"
image

Expected outcome
Not static, for example using "Zoom to Rectangle" to zoom in on x from 0 to pi
image

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!

< 484C div class="Box-sc-g0xbh4-0 ioNKhs">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0