Skip to content

Fix #129 (caused by matplotlib 3.11 deprecating mpl.style.core) - #130

Open
razimantv wants to merge 1 commit into
catppuccin:mainfrom
razimantv:main
Open

Fix #129 (caused by matplotlib 3.11 deprecating mpl.style.core)#130
razimantv wants to merge 1 commit into
catppuccin:mainfrom
razimantv:main

Conversation

@razimantv

Copy link
Copy Markdown

Solves the problem by direct implementation: Read the files and update mpl.style.library directly:

def _register_styles() -> None:
    """Register the included stylesheets in the mpl style library."""
    for path in Path(CATPPUCCIN_STYLE_DIRECTORY).glob(f"*.mplstyle"):
        stylename = path.stem
        style = rc_params_from_file(path, use_default_template=False)
        mpl.style.library.setdefault(stylename, {}).update(style)

@umbrageodotus

Copy link
Copy Markdown

Please merge asap 😭

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.

2 participants