nschloe / tikzplotlib

:bar_chart: Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX.
MIT License
2.39k stars 212 forks source link

Tikzplotlib not compatible with newest version of Matplotlib anymore #622

Closed Fjakob closed 1 month ago

Fjakob commented 1 month ago

Hello,

after normally installing numpy, matplotlib, etc (without any specifications, so just the latest versions), it fails already to import the tikzplotlib module.

I.e.: import tikzplotlib after import matplotlib leads to the error:

Traceback (most recent call last): File "", line 1, in File "C:\Users\fjako\anaconda3\Lib\site-packages\tikzplotlib__init__.py", line 5, in from ._save import Flavors, get_tikz_code, save File "C:\Users\fjako\anaconda3\Lib\site-packages\tikzplotlib_save.py", line 11, in from . import _axes File "C:\Users\fjako\anaconda3\Lib\site-packages\tikzplotlib_axes.py", line 3, in from matplotlib.backends.backend_pgf import ( ImportError: cannot import name 'common_texification' from 'matplotlib.backends.backend_pgf' (C:\Users\fjako\anaconda3\Lib\site-packages\matplotlib\backends\backend_pgf.py)

It would be nice if the package can be made compatible with the state of the art. Thanks a lot!

nschloe commented 1 month ago

It would be nice if the package can be made compatible with the state of the art.

It'd be super nice! Will do when I have time.