-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Log scale and tickmode #2885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report @WG- Oddly enough it works if you don't tell it to use But you're of course correct that this isn't the intended behavior! |
(see also #903, which would be the better solution once we et around to implementing it) |
Thanks @alexcjohnson for the workarround, and indeed #903 would indeed be a better solution. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
I wanted to create a bode plot using plotly.js (Awesome framework btw guys, thumbs up for that). Now I stumbled upon some problems. The main problem is, is that
tickmode: 'array'
does not work when the axis type of the plot istype: 'log'
. As such, you cannot usetickvals
andticktext
.In my current plot the x-axis of the plot (log-scale) the labels are formatted as: 10, 20, 50, 100, 200, 500, 1000, this is chosen by Plotly. However, I only want the labels 1, 100 and 1000. This I can easily establish, via
tickmode: 'linear'
for instance. However, doing this will remove all the tick lines for 20, 50, 200 and 500. So I tried forcing the tick lines via settingtickmode: 'array'
and as followstickvals: [10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900,1000]
andticktext: ['10','','','','','','','','','','100','','','','','','','','','','1000']
So what I want to end up with, are only the labels + ticklines of multiple of 10 and the ticklines of 20,30,40...,100,200,300,...,1000 et cetera.

Codepen example: https://codepen.io/anon/pen/EpdqzQ
The text was updated successfully, but these errors were encountered: