Skip to content

Wrap ix/iy in np.atleast_1d before set_data so Matplotlib ≥3.8 - #360

Merged
NikoOinonen merged 1 commit into
Probe-Particle:mainfrom
Ex-libris:fix-df-slice-scalar
Sep 24, 2025
Merged

Wrap ix/iy in np.atleast_1d before set_data so Matplotlib ≥3.8#360
NikoOinonen merged 1 commit into
Probe-Particle:mainfrom
Ex-libris:fix-df-slice-scalar

Conversation

@Ex-libris

@Ex-libris Ex-libris commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Wrap ix/iy in np.atleast_1d before set_data so Matplotlib ≥3.8 can accept scalars as sequences. Prevents "RuntimeError: x must be a sequence".

Previously, the error appeared after creating a df point on the window and then modifying any parameter in the GUI when using Matplotlib ≥3.8.

accepts scalars as sequences. Prevents "RuntimeError: x must be a sequence".

Previously, the error appeared after creating a point and then
modifying any parameter in the GUI

@NikoOinonen NikoOinonen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@NikoOinonen
NikoOinonen merged commit 84a76e5 into Probe-Particle:main Sep 24, 2025
8 checks passed
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.

2 participants