-
Notifications
You must be signed in to change notification settings - Fork 80
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
Monkeypatching matplotlib #1153
Comments
Rather than monkey-patching matplotlib, it feels like a better answer would be to use NumPy overrides.
We probably should be falling back in that case. |
We have that today, it doesn't seem to work for this case, so matplotlib is probably doing something different than just
E.g. it's explicitly calling |
I looked at the matplotlib code some more and its difficult to follow, but I think there are calls to np.asarray before it gets to the np.histogram within plt.hist(). |
I don't know for sure if Also, something that wasn't mentioned yet, we do have an |
You can't return a cunumeric array from |
There is a lot of user code out there that uses matplotlib convenience functions which wrap numpy. It would be nice if we could monkeypatch matplotlib to use cunumeric.
Here is an example:
Here is the error I see when I do that:
I know cunumeric does not support object arrays, but would it be possible to fall back to numpy in that case?
The text was updated successfully, but these errors were encountered: