Displaying certain value

I want to hide y axis grid and tick values and then display only certain values. I can hide tick values but how can i display only certain values on y axis?

Hi @gridiron9999,

You can manually override where grid/tick values appear using the tickvals property. For example:

import plotly.graph_objs as go
fig = go.FigureWidget()
fig.layout.yaxis.tickvals = [1.1, 3.5]

Hope that helps!

It really helped thanks Mr.Jon

1 Like