Answers for "line plot multiple axis plotly with title"

3

plotly line plot with title and axis title

import plotly.graph_objects as go

# Add data
month = ['January', 'February', 'March', 'April', 'May', 'June', 'July',
         'August', 'September', 'October', 'November', 'December']
         
high_2014 = [28.8, 28.5, 37.0, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9]

fig = go.Figure()
# Create and style traces
fig.add_trace(go.Scatter(x=month, y=high_2014, name='High 2014'))

# Edit the layout
fig.update_layout(title='<b>Title</b>',
                   xaxis_title='<b>x</b>',
                   yaxis_title='<b>y</b>')


fig.show()
Posted by: Guest on February-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language