✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Accessing information whether the text of a given trace is hidden or not

So as you can see I have configured my plot with ‘textposition=inside’ and uniformtext_mode=‘hide’.
Thus if the text inside a trace is getting too small, it will get hidden.


My goal is to have a function that detects whether a text of the given fig.trace is hidden or not and generates an annotioation.

So my thinking is, that somewhere there must be a low-level attribute that controls ‘hide’ with True or False but after inspecting
.full_figure_for_development() i have not found such thing.

Is there any other way I have not yet thought about, in order to access that information?

Any hint would be greatly appreciated. I’m still fairly new to python plotly.