You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Showticklabels=false and title_standoff not None moves xaxis-title to top #6552
Running into this as well. I don't think the title_standoff is required to replicate this however, just the showticklabels=False already does the trick here.
Moved to the plotly.js repo, which is where the fix will need to be. My guess is the fact that it now reproduces without explicit standoff is due to #6428 but its origin is clearly much before that.
W/A that work for me was to set the color of the ticktext to transparent. fig.update_xaxes(tickfont=dict(color="rgba(0,0,0,0)"))
One can additionally set a size to shrink the invisible ticks: tickfont=dict(color="rgba(0,0,0,0)", size=1).
This still moves the title down a bit compared to before, which can possibly be counteracted with standoff if that's not already set to zero.
Reacted by David Shem-Tov, Sam Hatfield, OmG and Jose Nimo
Activity
DrJohnWagner commentedon Jan 22, 2022
I ran into the same problem. But it only occurs for the x axis. Not the y axis.
nnansters commentedon Apr 3, 2023
Running into this as well. I don't think the
title_standoffis required to replicate this however, just theshowticklabels=Falsealready does the trick here.alexcjohnson commentedon Apr 5, 2023
Moved to the plotly.js repo, which is where the fix will need to be. My guess is the fact that it now reproduces without explicit
standoffis due to #6428 but its origin is clearly much before that.nnansters commentedon Apr 5, 2023
Thanks for checking in on this @alexcjohnson. Let me know if you need any more information to reproduce.
divyamadhav commentedon Jun 1, 2023
I ran into the this problem even without setting title standoff
nicolocarissimi commentedon Jun 5, 2023
Is there any way to prevent this (e.g. with an older plotly version)?
d-s-t commentedon Jul 28, 2023
W/A that work for me was to set the color of the
ticktextto transparent.fig.update_xaxes(tickfont=dict(color="rgba(0,0,0,0)"))mjstahlberg commentedon Jan 14, 2024
One can additionally set a size to shrink the invisible ticks:
tickfont=dict(color="rgba(0,0,0,0)", size=1).This still moves the title down a bit compared to before, which can possibly be counteracted with
standoffif that's not already set to zero.