Supported plots
The plots type supported by tikzplotly are presented in this page.
Scatter plots
The code has been constructed to export (almost all) the figures of the page Line Charts in Python of Plotly documentation.
Scatter plot Example
import plotly.express as px
import tikzplotly
df = px.data.gapminder().query("continent=='Oceania'")
fig = px.line(df, x="year", y="lifeExp", color='country')
tikzplotly.save("line.tex", fig)

Heat maps
The code has been constructed to export (almost all) the figures of the page Heatmaps in Python of Plotly documentation.
Heatmap Example
import plotly.express as px
import tikzplotly
fig = px.imshow([[1, 20, 30],
[20, 1, 60],
[30, 60, 1]])
tikzplotly.save("heatmap.tex", fig)
Note
- If possible, TikzPlotly try to save the heatmap as a png of the smallest size possible, namely 1 pixel for each value of the heatmap. But in some case, such export does not work. In this case, the image is saved in the original size of the Plotly figure.
Histograms
The examples of the page Histograms in Python of Plotly documentation are supported.
Histogram Example
Note
- There may be issues when many histograms are plotted on the same figure...