Hi
i have a data like this:
x: [0, 1, 3, 6, 9]
y: [16000,19000,17000,18000,19000]
how can i set a text for first and last tick?
like: ‘first’, 1, 3, 6, ‘last’
Hi @itsmohammadbahrami, welcome to the forum! Yes, you can set custom tick text using the ticktext
parameter of xaxis
, see for example https://plot.ly/python/axes/#enumerated-ticks-with-tickvals-and-ticktext and https://plot.ly/python/tick-formatting/#tickmode--array.
can i set only first and last x axis text?
like this: [‘first’,‘last’]
not this: [‘first’, 1, 3, 6, ‘last’]