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

Skip to content

2.1.0: Cannot save figures in GTK backend #9407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ahaldane opened this issue Oct 15, 2017 · 0 comments · Fixed by #9410
Closed

2.1.0: Cannot save figures in GTK backend #9407

ahaldane opened this issue Oct 15, 2017 · 0 comments · Fixed by #9410

Comments

@ahaldane
Copy link
Contributor

Bug report

Bug summary

When using the GTK backend, when I try to save the figure to a file using the GUI I get an error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py", line 715, in save_figure
    if startpath != "":
NameError: global name 'startpath' is not defined

It looks like this bug was introduced in #9124 - perhaps you forgot to rename startpath to fname in line backend_gtk.py line 715?

Matplotlib version

  • Operating system: arch linux
  • Matplotlib version: 2.1.0
  • Matplotlib backend: GTKAgg
  • Python version: 2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant