-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
savefig.transparent has no effect when saving from UI #9080
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
Comments
Didn't we just have an issue go by about figure background transparency?
…On Wed, Aug 23, 2017 at 1:00 PM, Antony Lee ***@***.***> wrote:
Bug report
*Bug summary*
The savefig.transparent rcparam does not affect figures saved from the GUI.
*Code for reproduction*
from pylab import *
rcParams["savefig.transparent"] = True
plot()
show()
then click on the save button to save a figure.
*Actual outcome*
The figure has opaque background.
*Expected outcome*
The figure should have transparent background, just as it has when calling
savefig().
*Matplotlib version*
- Operating System:
- Matplotlib Version: 2.0.2 but apparently dates back to at least
1.5.0.
- Python Version:
- Jupyter Version (if applicable):
- Other Libraries:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9080>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-ISLV9NujWvsYiqZ0-qMo-8rT905ks5sbFqxgaJpZM4PATli>
.
|
I think this is different: I am specifically talking about a difference in behavior between interactive save and savefig. |
I suspect this has been here much longer and is related to the some what convoluted method that |
There was a related pull request here: #6197 for |
Looks like the following chunk from Figure.savefig
should be moved to print_figure (which savefig ultimately calls, so there's no need to keep it in both places). |
Sounds reasonable. The restore code would also have to move. |
I think the correct strategy is
|
Closed by #9124. |
Bug report
Bug summary
The savefig.transparent rcparam does not affect figures saved from the GUI.
Code for reproduction
then click on the save button to save a figure.
Actual outcome
The figure has opaque background.
Expected outcome
The figure should have transparent background, just as it has when calling savefig().
Matplotlib version
The text was updated successfully, but these errors were encountered: