Skip to content

Commit

Permalink
set sorted in over_time
Browse files Browse the repository at this point in the history
  • Loading branch information
StijnKas committed Jan 16, 2025
1 parent d4ee64a commit 73a1943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pdstools/adm/Plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def over_time(
)

grouping_columns = list(set(by.meta.root_names()))
df = df.with_columns(by)
df = df.with_columns(by).set_sorted("SnapshotTime")
if facet:
grouping_columns = [by_col, facet]
else:
Expand Down Expand Up @@ -367,7 +367,7 @@ def over_time(

title = "over all models" if facet is None else f"per {facet}"
fig = px.line(
final_df.to_pandas(use_pyarrow_extension_array=False),
final_df,
x="SnapshotTime",
y=metric,
color=by_col,
Expand Down

0 comments on commit 73a1943

Please sign in to comment.