Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upblitting doesn't work - would be useful to speed up graph draw for faster realtime-graphs #228
Comments
|
The issue seems to be related to send_binary method of Canvas class in ipympl. It does not send any blob's back when blitting and plt.ioff(), but does when drawing (it then sends the full graph). However, when blitting, and setting plt.ion(), it does send back something, but it is just the graph line on transparent background. The graph line looks somewhat broken (not solid): I also noticed that as soon as I resize the graph, the line suddenly becomes solid (assuming it resends the full graph): |
|
I'd try using |


I have the following code in jupyterlab. This allows me to move a slider and update a graph in realtime. However the framerate is quite low (1fps) if I call fig.canvas.draw(). I therefore tried blitting, however it does not seem to affect the graph. Is this supposed to work with ipympl?
Many thanks for your help.
Environment:
Jupyterlab==1.2.6
ipympl==0.5.6
jupyter labextension list:
@ibqn/jupyterlab-codecellbtn v0.1.3 enabled ok
@jupyter-widgets/jupyterlab-manager v1.1.0 enabled ok
@jupyterlab/google-drive v1.0.0 enabled ok
@jupyterlab/toc v1.0.1 enabled ok
jupyter-matplotlib v0.7.2 enabled ok
jupyterlab-plotly v1.5.2 enabled ok
plotlywidget v1.5.2 enabled ok