Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/optimagic/visualization/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _line_plot_plotly(
legend_properties: dict[str, Any] | None,
) -> go.Figure:
if template is None:
template = "plotly"
template = "simple_white"

fig = go.Figure()

Expand All @@ -49,6 +49,7 @@ def _line_plot_plotly(
name=line.name,
line_color=line.color,
mode="lines",
showlegend=line.show_in_legend,
)
fig.add_trace(trace)

Expand Down Expand Up @@ -123,6 +124,8 @@ def line_plot(

Args:
lines: List of objects each containing data for a line in the plot.
The order of lines in the list determines the order in which they are
plotted, with later lines being rendered on top of earlier ones.
backend: The backend to use for plotting.
title: Title of the plot.
xlabel: Label for the x-axis.
Expand Down
Loading
Loading