Skip to content

Compatibility with matplotlib and numpy#77

Open
ParfenovS wants to merge 4 commits intojdhenshaw:masterfrom
ParfenovS:master
Open

Compatibility with matplotlib and numpy#77
ParfenovS wants to merge 4 commits intojdhenshaw:masterfrom
ParfenovS:master

Conversation

@ParfenovS
Copy link
Copy Markdown

Minor fixes for the compatibility with new versions of matplotlib and numpy. The fixes do not change code behavior with older matplotlib and numpy versions.

The scalars representation has changed in numpy 2.0:

https://numpy.org/doc/stable/release/2.0.0-notes.html#representation-of-numpy-scalars-changed

The change breaks the workflow with .config files and affects the visual numbers representation in GUI.

This is a quick fix to get an old behavior.
legendHandles attribute has been renamed to legend_handles in matplotlib:

matplotlib/matplotlib#20639

This commit adds a workaround that handles both the new and old attribute name.
legendHandles attribute has been renamed to legend_handles in matplotlib:

matplotlib/matplotlib#20639

This commit adds a workaround that handles both the new and old attribute name.
The circles attribute of matplotlib radiobutton widget has been removed (see e.g. https://matplotlib.org/3.8.4/api/widgets_api.html ).
This commit disables a call to circles attribute if it is missing. The radiobuttons look fine without adjusting their size.
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