I have some plotly
plots that I like and just need one final piece before I can present them: a border around the entire figure. I have gotten this to work in matplotlib.pyplot
via fig.patch.set_linewidth
and fig.patch.set_edgecolor
, but I have not been successful in plotly
.
Is there not just a simple function to add a border around my whole plotly
figure like there is in matplotlib
?
From the code below, I have this.
import plotly.graph_objects as go
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [1, 3, 2, 4, 3, 5, 4, 6, 5, 6]
fig = go.Figure(data=go.Scatter(x = x, y = y))
fig.show()
What I want it to create something more like this, with a border (not necessarily green) around the very edge of the entire plot.
(I made that border in Paint but cannot do that for every graph I have produced.)
These plots might have to display in Jupyter Notebooks, not just in saved image files.