Skip to content
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

Update matplotlib.py to use .get_next_color #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mtryan83
Copy link

@mtryan83 mtryan83 commented Nov 8, 2024

At some point between matplotlib 3.7 and 3.9, ax._get_lines.prop_cycler was removed. The recommended replacement (per https://stackoverflow.com/a/78938755) is to use ax._get_lines.get_next_color(). Implemented with a try/except to hopefully support both.

This addresses Issue #14


📚 Documentation preview 📚: https://hapsira--15.org.readthedocs.build/en/15/

At some point between matplotlib 2.1 and 3.9, ax._get_lines.prop_cycler was removed. The recommended replacement (per https://stackoverflow.com/a/78938755) is to use ax._get_lines.get_next_color(). Implemented with a try/except to hopefully support both.
@mtryan83 mtryan83 marked this pull request as ready for review November 8, 2024 22:34
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