You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
Reacted by Hannes, lukashof, Reuben Gardos Reid, Carlos José Díaz Baso, Martijn P. A. Starmans, Anna Beckers, Ricardo Herrmann, Ouedraogo W. A. Hakim, Klaus-Rudolf Kladny, Yuanliang Xue 薛远亮 and 2 more
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.
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.
Activity
francois-durand commentedon Sep 21, 2023
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 commentedon Sep 21, 2023
common_texificationbasically has been a public wrapper around the private_tex_escapemethod 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 commentedon Sep 22, 2023
Thanks for the answer! For the moment, I just configure my CI to run with matplotlib 3.7 and it works fine.
replacing deprecated mpl function common_texification with _tex_escap…
Sbozzolo commentedon Oct 26, 2023
Is there any plan to address this?
FriedrichFroebel commentedon Nov 1, 2023
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.
Require matplotlib < 3.8 for `pgf.common_texification`
fix nschloe#559 for `matplotlib >= 3.6`
fix nschloe#559 for `matplotlib >= 3.6`
Require matplotlib < 3.8 for `pgf.common_texification`
Inline definition of _common_texification
Codesbyusman commentedon Sep 15, 2024
Is there any solution, or need to downgrade matplotlib? :(
python3Packages.tikzplotlib: drop