How to replace plotted figure with another figure?

Hi everybody,

Imagine I have plotted a figure (For example fig1) with it’s own values and properties. Then I have generated a new figure (for example fig2) with completely different values and properties. How can I replace the fig1 plot (That is shown on the screen) with fig2???

import plotly.graph_objects as go

fig1=go.Figure(go.scatter(...))
fig1.show()

fig2=go.Figure(go.bar(...))

# How fig1 (That has shown in the above) replace with fig2 ???