-
Notifications
You must be signed in to change notification settings - Fork 102
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
Compatibility with latest MPL 3.8 (Dev) #433
Conversation
Hi, thanks for the PR! Would you mind undoing the changes from single to double quotes? It's a little hard to read your PR right now. Single quotes are the standard I've settled on (I mostly follow Unfortunately I've already started to work on matplotlib 3.7 compatibility, but haven't started a PR yet. Maybe before you commit much more work to this, could you wait a few days? I have not yet started matplotlib 3.8 testing so I'm sure your PR could help with 3.7-3.8 differences, but some changes could be redundant / there could be initial conflicts. I'd also be happy to add your changes to that PR if that's easier (you'll still be added to the contributors list). Also please monitor #413 re: tests. I'm planning to add a broad testing suite before the next release. It will include test image comparisons / run tests against an array of different matplotlib versions. |
Sounds good!I think I ran black on it indeed before pushing, the single quotes were not intended. The pull was from the latest release (master). I'm not behind my machine right now but will check it when I have the chance. The biggest issue was figuring out how the cmaps are registered under proplot. Mpl changed it from a dict to a class somewhere above 3.5. The other issue was concerning the tick formatter. Somehow the function The rest is pretty much the same. Unittests would be amazing for the future. Happy to hear they are on the way. Keep up the good work. Cheers! C |
I reset the commit @lukelbd. I did a local merge of the tests branch but it generates some errors using pytest (missing decorator definitions). I used the environment.yml listed in PR 413. Let me know if I can assist you in the mpl 3.7 or 3.8 merge. |
Nudging this, as I am having similar issues. @cvanelteren it looks like the breaks are due to matplotlib imports in the docs for similar version issues AttributeError: module 'matplotlib.cm' has no attribute '_gen_cmap_registry' |
@riley-brady I'll correct the doc test. The patch proposed is a bit of a monkey patch albeit functional. I believe @lukelbd is providing more profound changes. Would be willing to help to get this going, but this would require some coordination I think. |
Co-authored-by: Scott Staniewicz <[email protected]>
I have tested the branch with
|
This branch is not actively maintained by me any more. Luke is busy on updating proplot to be compatible with the latest mpl. |
I tracking this again on https://github.com/cvanelteren/proplot/tree/mpl3.8.3, and intend to push when I am more certain on the compatibility of the code base. As noted by @lukelbd there are currently not tests to check the internal validity. Since the gap between proplot and mpl is widening it would sadden me if we loose the work put into this package. |
Hi,
I really enjoy the interface of proplot! Unfotunately, proplot is not compatible with the latest mpl version. I have edited the source to make it compatible with mpl 3.8 (dev).
Issues were raised in #390.
I don't see any unittests in project other than
test_journal.py
. Let me know if this PR works for you.Sincerely,
C