Use matplotlib background colors when converting from matplotlib - #5285
Conversation
373d9e7 to
18abcb6
Compare
|
Hi @robertoffmoura , the default for |
18abcb6 to
2ac7771
Compare
|
@robertoffmoura given the age and last comment in this PR - should it be closed? |
2ac7771 to
644d12c
Compare
|
Hi @robertclaus, I updated the PR to set plot_bgcolor and paper_bgcolor based on fig.patch.get_facecolor() and props["axesbg"]. The below snippet prints Snippet: Here's also a screenshot of the matplotlib figure And the plotly converted figure before the change (unexpected light blue grey background) |
644d12c to
bc1e2a3
Compare
bc1e2a3 to
7c7b0ce
Compare
camdecoster
left a comment
There was a problem hiding this comment.
I left a couple of suggestions, but this looks pretty good overall. Could you please add a CHANGELOG entry and merge origin/main? That should fix the failing test.
7c7b0ce to
b865431
Compare



Code PR
plotly.graph_objects, my modifications concern the code generator and not the generated files.