-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scatter plot extremely slow on Windows with 1.12<scipy<1.15 #475
Comments
I now tested different versions of scipy, and the problems start from version 1.13.0. The previous scipy version 1.12.0 (with NumPy 1.26.4) works fine. |
The problem is this line: modelskill/modelskill/plotting/_scatter.py Line 659 in dd4122b
And the call to https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html -- The problem can be partly alleviated by using fewer number of bins:
Or to not show the points with show_points=False or show fewer points show_points=1000. |
Is this problem specific to Windows? |
As far as I know. I don't have the same problem in WSL. I don't know why |
Great news - seems to be resolved with the most recent version of |
At least two known installations of modelskill on Windows have extremely slow scatter plots (+1min) if
show_density=True
(which is the default). Ifshow_density=False
then speed is good (<1s) same ifbins
is set to a low number.Python 3.13.0
matplotlib==3.9.2
mikecore==0.2.2
mikeio==2.1.2
modelskill==1.0.0
numpy==2.1.3
pandas==2.2.3
scipy==1.14.1
xarray==2024.10.0
ipykernel==6.29.5
The text was updated successfully, but these errors were encountered: