Skip to content

Commit

Permalink
Finalize all plots?
Browse files Browse the repository at this point in the history
  • Loading branch information
robinholzi committed Sep 28, 2024
1 parent 7050320 commit d542deb
Show file tree
Hide file tree
Showing 26 changed files with 4,807 additions and 73 deletions.
2 changes: 1 addition & 1 deletion analytics/plotting/common/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def main_colors(light: bool = False) -> list[tuple[float, float, float]]:
colorblind_palette[-2],
colorblind_palette[1],
colorblind_palette[2],
colorblind_palette[3],
colorblind_palette[4],
colorblind_palette[5],
]


Expand Down
20 changes: 18 additions & 2 deletions analytics/plotting/common/tradeoff_scatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def plot_tradeoff_scatter(
height_factor: float = 1.0,
width_factor: float = 1.0,
target_ax: Axes | None = None,
manual_legend_title: bool = True,
legend_ncol: int = 1,
) -> Figure:
sns.set_theme(style="whitegrid")
init_plot()
Expand All @@ -46,7 +48,13 @@ def plot_tradeoff_scatter(
hue=hue,
style=style,
# style="pipeline_ref",
palette=[main_color(0), main_color(1), main_color(3)],
palette=[
main_color(0),
main_color(1),
main_color(3),
main_color(4),
main_color(5),
],
# palette={"drift": main_color(3), "yearly": main_color(0), "amount": main_color(1)},
s=300,
# legend=False,
Expand All @@ -56,10 +64,18 @@ def plot_tradeoff_scatter(
# ax.set(xlim=(-4, 85))

ax.legend(
title=hue,
fontsize="small",
title_fontsize="medium",
# title="Pipeline",
**(
{
"title": hue,
}
if manual_legend_title
else {}
),
# 2 columns
ncol=legend_ncol,
)

# Adjust x-axis tick labels
Expand Down
17 changes: 0 additions & 17 deletions analytics/plotting/rh_thesis/TODO.md

This file was deleted.

Loading

0 comments on commit d542deb

Please sign in to comment.