I am using Dash+Plotly+Python and I am struggling to hide the axis labels. I have tried a lot of variations but with no luck.
Code snippets are below :
app.layout = html.Div([ dcc.Graph(
id = ‘scatter1’,
figure = {‘data’ : [
go.Scatter(
x = data_cleaned.service_route_path,
y = data_cleaned.mean_time_spent,
mode = “markers”,
name = “Mean Duration”,
marker = dict(color = ‘rgba(0, 255, 200, 0.8)’)#,
#text = data_cleaned.mean_time_spent
)
…
‘layout’ : {
‘title’ : ‘Mean Vs Median Time Spent’,
#‘autosize’: ‘false’,
#‘width’:‘1200’,
#‘height’:‘400’,
#‘showlegend’:‘False’,
#‘margin’:{
# ‘l’:‘80’,
# ‘r’:‘50’,
# ‘t’:‘110’,
# ‘b’:‘100’
#},
‘xaxis’:{ ‘showgrid’:‘False’,
‘zeroline’:‘False’,
‘showline’:‘False’,
‘visible’:‘False’,
‘showticklabels’:‘False’
#‘tickangle’ : ‘45’
# ‘tickfont’: {
# ‘family’: ‘Old Standard TT, serif’,
# ‘size’: ‘10’,
# ‘color’: ‘black’
# }
},
'yaxis':{'type':'log',
'showgrid':'False',
'zeroline':'False',
'showline':'False',
'ticks':'',
'showticklabels':'False'}