Skip to content

fix: replace np.float_ with np.float64 for numpy 2.0 compatibility#629

Open
Jah-yee wants to merge 1 commit intonschloe:mainfrom
Jah-yee:main
Open

fix: replace np.float_ with np.float64 for numpy 2.0 compatibility#629
Jah-yee wants to merge 1 commit intonschloe:mainfrom
Jah-yee:main

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 2, 2026

Summary

Fixes Issue #621: Replace np.float_ with np.float64 for numpy 2.0

Problem

  • numpy 2.0 removed np.float_ alias
  • Use np.float64 instead for compatibility

Changes

  • src/tikzplotlib/legend.py: 12 instances of np.float -> np.float64

Testing

This PR has been tested locally.

Good day! Thank you for maintaining this project. I hope this fix helps. If there are any issues, please let me know.

Warmly,
Jah-yee

Issue nschloe#621: Replace np.float_ with np.float64 for np 2.0
- numpy 2.0 removed np.float_, use np.float64 instead

This PR has been tested locally.
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