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
Please provide a minimal working example (MWE) that shows what isn't working as
expected. Needed is
the Python code,
import tikzplotlib
the output
File "/workspaces/jax_rl_tests/tikzplotlibdebug.py", line 12, in <module>
import tikzplotlib
File "/usr/local/lib/python3.10/dist-packages/tikzplotlib/__init__.py", line 5, in <module>
from ._save import Flavors, get_tikz_code, save
File "/usr/local/lib/python3.10/dist-packages/tikzplotlib/_save.py", line 11, in <module>
from . import _axes
File "/usr/local/lib/python3.10/dist-packages/tikzplotlib/_axes.py", line 3, in <module>
from matplotlib.backends.backend_pgf import (
ImportError: cannot import name 'common_texification' from 'matplotlib.backends.backend_pgf' (/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_pgf.py)
It seems tikzplotlib is using a deprecated API, which was made internal from matplotlib>3.7.
An easy workaround right now is to downgrade to matplotlib before 3.5.
Please provide a minimal working example (MWE) that shows what isn't working as
expected. Needed is
It seems tikzplotlib is using a deprecated API, which was made internal from matplotlib>3.7.
An easy workaround right now is to downgrade to matplotlib before 3.5.
To fix, it would probably possible to use the (internal)
_escape_tex
API.https://github.com/matplotlib/matplotlib/blob/336028f4d521a23d9ea2de88b1faf82eddfa5b52/lib/matplotlib/backends/backend_pgf.py#L101
The text was updated successfully, but these errors were encountered: