Skip to content

2.1.0: Cannot save figures in GTK backend #9407

Closed

Description

@ahaldane

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

Activity

  1. added a commit that references this issue on Oct 15, 2017
    ecc1f94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions