Is it possible to add a colored edge to the figure, not just around the plot?

I managed to achieve this plot:

Black_Line

by using the following command :

fig.update_xaxes(showline=True, linewidth=1, linecolor=‘black’, mirror=True)
fig.update_yaxes(showline=True, linewidth=1, linecolor=‘black’, mirror=True)

But I would like the black line to be around the entire figure, not just around the plot. Is this possible?