[BugFix] Make paper_bgcolor
transparent in PyWry backend
#6385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why?:
Follow-up to this PR: [BugFix] Set Chart Style Before Output #6367
For display in PyWry, the dark/light toggle button on the mode bar requires a transparent background to work.
What? (1-3 sentences or a bullet point list):
The process in [BugFix] Set Chart Style Before Output #6367 sets the value so that it displays in a web browser or Jupyter environment. However, for display in PyWry, we need to make it transparent to avoid incompatibilities with the light/dark toggle button on the mode bar.
This updates the
json_data
immediately before output so that the Figure object itself is not modified on display and the Jupyter/browser view is preserved.Impact (1-2 sentences or a bullet point list):
Testing Done:
res.chart.fig
res.charting.toggle_chart_style()
and then display both ways again.