Using sphinx-gallery, it is possible to get interactive plotly plots in the doc like they do in their presentation. In plotly, we can use tex expressions in legends with for