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

compatibility issue with Matplotlib-3.4.1 #4877

Closed
stonebig opened this issue Apr 3, 2021 · 8 comments
Closed

compatibility issue with Matplotlib-3.4.1 #4877

stonebig opened this issue Apr 3, 2021 · 8 comments

Comments

@stonebig
Copy link
Contributor

stonebig commented Apr 3, 2021

hello,

I use Matplotlib-3.4.1 + Holoviews-1.14.2, and I have this unexpected error. Why this could not more work ? (nothing supposed to have changed on Holoviews or Matplotlib)

Any suggestion how I could track this down ?

validate_capstyle
image

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

.. hum this is tricky to me
image

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

validate_capstyle, validate_fontsize, validate_joinstyle seems not to exist anymore ?

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

validate_capstyle was in Matplotlib-3.3.0 https://matplotlib.org/3.3.0/_modules/matplotlib/rcsetup.html

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

this is gone, but I don't know how to rewrite it so

@stonebig stonebig changed the title wired issue I don't understand on "validate_capstyle" compatibility issue with Matplotlib-3.4.1 Apr 3, 2021
@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

image

@stonebig
Copy link
Contributor Author

stonebig commented Apr 3, 2021

so the patch may be this: #4878

from matplotlib.rcsetup import (
    validate_fontsize, validate_fonttype, validate_hatch)

try:  # starting Matplotlib 3.4.0
    from matplotlib._enums import CapStyle as validate_capstyle
    from matplotlib._enums import JoinStyle as validate_joinstyle
except:  # before Matplotlib 3.4.0
    from matplotlib.rcsetup import (
    validate_capstyle, validate_joinstyle)

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants