Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45e1ca9 + 7f8e54a commit f374becCopy full SHA for f374bec
1 file changed
lib/matplotlib/backends/web_backend/js/nbagg_mpl.js
@@ -33,7 +33,7 @@ mpl.mpl_figure_comm = function (comm, msg) {
33
var ws_proxy = comm_websocket_adapter(comm);
34
35
function ondownload(figure, _format) {
36
- window.open(figure.imageObj.src);
+ window.open(figure.canvas.toDataURL());
37
}
38
39
var fig = new mpl.figure(id, ws_proxy, ondownload, element.get(0));
0 commit comments