Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plotly go axis labels

import plotly.graph_objects as go

fig = go.Figure(go.Scatter(
    y = [4, 1, 3],
    x = ["December", "January", "February"]))

# set x axis label
fig.update_xaxes( 
        title_text = "Month", # label
        title_font = {"size": 20},
        title_standoff = 25)

# set y axis label
fig.update_yaxes(
        title_text = "Temperature", # label
        title_standoff = 25)

fig.show()
Source by plotly.com #
 
PREVIOUS NEXT
Tagged: #plotly #axis #labels
ADD COMMENT
Topic
Name
7+8 =