I have two gauge plots in my script and want to visualize them, side by side.
import plotly.graph_objects as go
fig1 = go.Figure(go.Indicator(mode="gauge+number", value=400, domain={'x': [0, 1], 'y': [0, 1]}, title={'text': "Speed 1"}))
fig2 = go.Figure(go.Indicator(mode="gauge+number", value=250, domain={'x': [0, 1], 'y': [0, 1]}, title={'text': "Speed 2"}))
How can show fig1
and fig2
side by side?
You're on the right track using the
domain
attribute, but your exact specifications are off. With the rest of the setup in the complete code below, the following specifications produces the associated plot:Domain specs
Plot
Complete code