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?
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!
It really helped thanks Mr.Jon