Displaying certain value


#1

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?


#2

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]
fig

Hope that helps!
-Jon


#3

It really helped thanks Mr.Jon