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

matplotlib 3.6 deprecates pgf.common_texification #559

Open
Sbozzolo opened this issue Oct 11, 2022 · 5 comments · May be fixed by #602 or #603
Open

matplotlib 3.6 deprecates pgf.common_texification #559

Sbozzolo opened this issue Oct 11, 2022 · 5 comments · May be fixed by #602 or #603

Comments

@Sbozzolo
Copy link

tikzplotlib with matplotlib >= 3.6 emits a deprecation warning:

tikzplotlib/_axes.py:12: MatplotlibDeprecationWarning: The common_texification function was deprecated in Matplotlib 3.6 and will be removed two minor releases later.
@francois-durand
Copy link

Hi,
This issue becomes critical because common_texification has been suppressed from matplotlib 3.8. Hence sadly, packages that use tikzplotlib now fail their tests because even just importing tikzplotlib leads to an error, unless if we specify that matplotlib should be <=3.7. :'-(
Thanks for the awesome job on tikzplotlib, by the way!

@FriedrichFroebel
Copy link

common_texification basically has been a public wrapper around the private _tex_escape method during the deprecation phase (see matplotlib/matplotlib@336028f#diff-3ceb75d68efae3eba151a1bb856b1ea8467d64abcb0dc725ed3fa2e441e16fcaR96-R126 and https://github.com/matplotlib/matplotlib/blob/a302267d7f0ec4ab05973b984f7b56db21bf524c/lib/matplotlib/backends/backend_pgf.py#L100-L125). I do not know how matplotlib/matplotlib@1936c94 influences tikzplotlib as well.

While there is no solution (which I do not expect in the near future, but evaluating a possible PR should always be possible to support others which face a similar issue), you might want to try monkey-patching the corresponding method with either the old or the new implementation.

@francois-durand
Copy link

Thanks for the answer! For the moment, I just configure my CI to run with matplotlib 3.7 and it works fine.

lukashof added a commit to lukashof/tikzplotlib that referenced this issue Oct 6, 2023
…e to hopefully fix `matplotlib 3.6` deprecates `pgf.common_texification` nschloe#559
@Sbozzolo
Copy link
Author

Is there any plan to address this?

@FriedrichFroebel
Copy link

See my previous comment: You might submit a corresponding PR or decide to monkey-patch this for now. Please note that development is more or less stalled at the moment unfortunately, although there have been some notes about possible changes in the future.

JasonGross added a commit to JasonGross/tikzplotlib that referenced this issue Feb 28, 2024
lukashof added a commit to lukashof/tikzplotlib that referenced this issue Apr 3, 2024
@lukashof lukashof linked a pull request Apr 3, 2024 that will close this issue
JasonGross pushed a commit to JasonGross/tikzplotlib that referenced this issue Apr 3, 2024
JasonGross added a commit to JasonGross/tikzplotlib that referenced this issue Apr 3, 2024
JasonGross added a commit to JasonGross/tikzplotlib that referenced this issue Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants