The code
import numpy as np
import plotly.graph_objects as go
import tikzplotly
x = np.linspace(-np.pi, np.pi, 5000)
y = np.sin(x)
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y))
tikzplotly.save("fig.tex", fig)
produces a ti_k_z file of 5010 lines (192 Ko), which might take some time to be processed by LaTeX compiler.
Visually, we do not need to have all of these points present; 500 is enough to have a smooth figure.
The code
produces a ti_k_z file of 5010 lines (192 Ko), which might take some time to be processed by LaTeX compiler.
Visually, we do not need to have all of these points present; 500 is enough to have a smooth figure.