Skip to content

Commit

Permalink
plot color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Oct 23, 2024
1 parent 7b18210 commit 0b62633
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions dacapo/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,21 +426,18 @@ def plot_runs(
criteria=run.validation_score_name
)
colors_val = itertools.cycle(plt.cm.tab20.colors)
for dataset, color_v in zip(run.validation_scores.datasets, colors_val):
for dataset in run.validation_scores.datasets:
dataset_data = validation_score_data.sel(datasets=dataset)
include_validation_figure = True
x = [score.iteration for score in run.validation_scores.scores]
cc = next(colors_val)
for i in range(dataset_data.data.shape[1]):
current_name = (
f"{i}_{dataset.name}_{name}_{run.validation_score_name}"
)
for i, cc in zip(range(dataset_data.data.shape[1]), colors_val):
current_name = f"{i}_{dataset.name}"
validation_ax.plot(
x,
dataset_data.data[:, i],
label=current_name,
color=cc,
alpha=0.5 + 0.2 * i,
# alpha=0.5 + 0.2 * i,
)

if include_loss_figure:
Expand Down

0 comments on commit 0b62633

Please sign in to comment.