how can I label these multi variables (temperatue and humidity) in nested graph using go function?

Viewed 25
import plotly.express as px
import plotly.graph_objects as go

fig1 = px.scatter(left_temp_hum_04, x='created_at', y='temp_value',color_discrete_sequence=['green'])
fig2 = px.scatter(left_temp_hum_04, x='created_at', y='humidity_value')
Layout=go.Layout(title='temperature and humidity of left-wing room for month April',
                 xaxis={'title':'time span of one month'},
                 yaxis={'title':'temperature and humidity'})

fig = go.Figure(data = fig1.data + fig2.data,layout=Layout,labels={'created_at':'time','tempe_value':'temperature','humidity_value':'humidity'})
fig.show()
0 Answers
Related