D
D
Danil Samodurov2021-07-30 14:12:03
Python
Danil Samodurov, 2021-07-30 14:12:03

How to hide intermediate units of measurements along the axes in plotly?

Hello. Can anyone tell me how to remove intermediate labels on the logarithmic horizontal axis of a graph built in plotly using plotly.graph_objects , leaving only the main ones (see photo). The lines should remain. How to make 1,000,000 and 10,000,000 instead of 1M and 10M? The same goes for the vertical axis. I'm using the Scatter object.
6103de5b13314596759537.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Krostelev, 2021-07-30
@twistfire92

on the vertical axis in your case should help

fig.update_yaxes(tickvals=[500, 550, 600, 650, 700])

Same with horizontal.
In general, without seeing what you have now, it’s hard to say anything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question