Skip to content

Conversation

@bfonta
Copy link
Contributor

@bfonta bfonta commented Dec 5, 2025

Issue

Curves associated to duplicated labels are not plotted correctly. This originates from an overwrite done by the datasets[label] = grouped statement. To fix the issue:

Fix

  • If the user passes the labels, a simple check on their uniqueness is enough;
  • If the user does not pass the labels, a new make_unique_label function ensures new labels become unique. Duplication happens when the name of at least two csv files is identical.

I took this chance to restructure the code with the if __name__ == '__main__': construct.

Validation

Tested with python3 plot.py <scan1> <scan2> ... and python3 plot.py <scan1> <scan2> ... --labels 1 2 ....


Thanks to @hamani115 for pointing the bug out to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant