We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89c88e7 commit a2d0d18Copy full SHA for a2d0d18
lib/matplotlib/backends/web_backend/mpl.js
@@ -480,9 +480,7 @@ mpl.figure.prototype.key_event = function(event, name) {
480
481
mpl.figure.prototype.toolbar_button_onclick = function(name) {
482
if (name == 'download') {
483
- var format_dropdown = this.format_dropdown;
484
- var format = format_dropdown.options[format_dropdown.selectedIndex].value;
485
- this.ondownload(this, format);
+ this.handle_save(this, null);
486
} else {
487
this.send_message("toolbar_button", {name: name});
488
}
0 commit comments