Open kvanderwijst opened 3 years ago
I ran into the same problem. But it only occurs for the x axis. Not the y axis.
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 https://github.com/plotly/plotly.js/pull/6428 but its origin is clearly much before that.
Thanks for checking in on this @alexcjohnson. Let me know if you need any more information to reproduce.
I ran into the this problem even without setting title standoff
Is there any way to prevent this (e.g. with an older plotly version)?
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)"))
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.
Very strange indeed.
produces: