| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| self.canvas.remove_rubberband() | ||
|
|
||
| def save_figure(self, *args): | ||
| directory = os.path.expanduser(mpl.rcParams['savefig.directory']) |
There was a problem hiding this comment.
Is it possible to add a smoke test for this in the tests?
Sorry, something went wrong.
There was a problem hiding this comment.
Unfortunately I think this is another PR that would be quite hard to add a test for because it is using the GUI :( I did a global search and didn't see any of the other backends testing this either...
Sorry, something went wrong.
There was a problem hiding this comment.
I take that back, I just pushed up a test to hijack the GUI function and return a well-defined string instead. I think that should get codecov for the Python branches at least... Still not testing the Objective-C updates, but better than nothing?
Sorry, something went wrong.
This adds the rcParams savefig.directory option into the macosx backend for the savefig dialog window.
|
Ping for a review from any mac users that want to test this out. |
Sorry, something went wrong.
|
@dstansby / mac users, reminder for another review on this one as well.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
This adds the rcParams savefig.directory option into the macosx
backend for the savefig dialog window.
Additionally cleans up some of the UTF8 string allocations in this code block.
Closes #21710
PR Checklist
Tests and Styling
Documentation