Skip to content

Commit

Permalink
drop add_traces
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcovdBoom committed Jan 25, 2024
1 parent 1999447 commit 7610047
Show file tree
Hide file tree
Showing 4 changed files with 802 additions and 795 deletions.
11 changes: 3 additions & 8 deletions atom/plots/baseplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def _draw_line(
child: str | None = None,
legend: Legend | dict[str, Any] | None = None,
**kwargs,
) -> go.Scatter:
"""Draw a line.
):
"""Draw a line on the current figure.
Unify the style to draw a line, where parent and child
(e.g., model - data set or column - distribution) keep the
Expand All @@ -414,13 +414,8 @@ def _draw_line(
**kwargs
Additional keyword arguments for the trace.
Returns
-------
go.Scatter
New trace to add to figure.
"""
return go.Scatter(
Baseplot._fig.figure.add_scatter(
line=kwargs.pop(
"line", {
"width": self.line_width,
Expand Down
Loading

0 comments on commit 7610047

Please sign in to comment.