Skip to content

fix #559 for matplotlib >= 3.6 #602

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lukashof
Copy link

@lukashof lukashof commented Apr 3, 2024

This replaces the _common_texification deprecated by Matplotlib 3.6 with _tex_escape. I also changed the name in tikzplotlib accordingly.

This should fix #559.

@JasonGross
Copy link

JasonGross commented Apr 3, 2024

Hm, this is good, but in light of matplotlib/matplotlib@1936c94 maybe we should just inline the old definition (so that we don't emit things like \mathdefault)?

@lukashof
Copy link
Author

lukashof commented Apr 4, 2024

I tried to keep the change minimal. Getting rid of the Matplotlib function might be a good idea, but I think it's something the maintainer needs to be interested in so it actually gets merged. I also lack some knowledge for this.

I rarely use tikzplotlib at the moment and created this fix when I needed it last year. But as a sporadic user and seeing that the repo isn't maintained, I'm not interested in pursuing this much further.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

matplotlib 3.6 deprecates pgf.common_texification
2 participants