-
Notifications
You must be signed in to change notification settings - Fork 224
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
Figure.savefig: Clarify that 'transparent' also works for the PNG file associated with the KML format #3579
Conversation
…e associated with the KML format
d0a0cfb
to
94f9f14
Compare
raise GMTInvalidInput(msg) | ||
fmt = fmt.upper() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to something like "png": "G" if transparent is True else "g"
at line #210.
raise GMTInvalidInput(msg) | ||
fmt = fmt.upper() | ||
|
||
if transparent and ext not in {"kml", "png"}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of checking fmt != "g"
, here we explicitly check if ext not in {"kml", "png"}
…e associated with the KML format (#3579)
…e associated with the KML format (#3579)
…e associated with the KML format (#3579)
…e associated with the KML format (#3579)
Changes
transparent
works for.kml
format and add a test for it