Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0db1a9c

Browse files
committed
Update mpl.js
We are generating 'ReferenceError: figure is not defined' when we try to download a figure into a particular image type.
1 parent 2bab043 commit 0db1a9c

File tree

1 file changed

+1
-1
lines changed
  • lib/matplotlib/backends/web_backend

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/web_backend/mpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ mpl.figure.prototype.toolbar_button_onclick = function(name) {
396396
if (name == 'download') {
397397
var format_dropdown = this.format_dropdown;
398398
var format = format_dropdown.options[format_dropdown.selectedIndex].value;
399-
this.ondownload(figure, format);
399+
this.ondownload(this, format);
400400
} else {
401401
this.send_message("toolbar_button", {name: name});
402402
}

0 commit comments

Comments
 (0)