![]() ![]() ![]() # add first bar trace at row = 1, col = 2įig.update_layout(plot_bgcolor='rgba(0,0,0,0)')įig. # add first scatter trace at row = 1, col = 1įig.add_trace(go.Scatter(x=df, y=df, line=dict(color='red'), name='B'), At the moment you cannot change the backround of a particular subplot. # add first bar trace at row = 1, col = 1įig.add_trace(go.Bar(x=df, y=df, 4 Answers Sorted by: 6 Unfortunately, it still does not seem that you can set different background colors for the different subplots directly: The background color is set in layout for the figure: plotbgcolor'rgb (245,245,240)'. ![]() And if you make sure to tweak a few other parameters as well like the zeroline and layer='below' you'll get a result thats pretty good:įrom plotly.subplots import make_subplots At the moment you cannot change theīUT you are free to place shapes anywhere you'd like on both subplots by referencing both x axes through xref=x and xref=x2 in fig.update_layout(shapes=dict()). 1 0 Geometry Dash Indie game Gaming 0 comments Best Add a Comment deleted 4 mo. I have tried ''Show Preview'' but there is just a black background. The background color is set in layout for the figure: How to change the background while on editor It's really hard to see what the objects really look like. Unfortunately, it still does not seem that you can set different background colors for the different subplots directly:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |