Skip to content

tikzplotlib with matplotlib 3.8.* not working #596

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

Closed
annabeckers opened this issue Feb 22, 2024 · 2 comments
Closed

tikzplotlib with matplotlib 3.8.* not working #596

annabeckers opened this issue Feb 22, 2024 · 2 comments

Comments

@annabeckers
Copy link

When using matplotlib 3.8.* tikzplotlib is throwing an error when its getting imported.

common_texification got removed with matplotlib 3.8.0 and can therefore not be found: https://fossies.org/linux/matplotlib/doc/api/prev_api_changes/api_changes_3.8.0/removals.rst

Minimum (non)-working example:

from matplotlib import pyplot as plt
import tikzplotlib

Error:
Traceback (most recent call last):
File "/home/random/Bachelor/project/analyze.py", line 5, in
from src.analyzer import Analyzer
File "/home/random/Bachelor/project/src/analyzer.py", line 20, in
import tikzplotlib
File "/home/random/Bachelor/project/.venv/lib/python3.10/site-packages/tikzplotlib/init.py", line 5, in
from ._save import Flavors, get_tikz_code, save
File "/home/random/Bachelor/project/.venv/lib/python3.10/site-packages/tikzplotlib/_save.py", line 11, in
from . import _axes
File "/home/random/Bachelor/project/.venv/lib/python3.10/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' (/home/random/Bachelor/project/.venv/lib/python3.10/site-packages/matplotlib/backends/backend_pgf.py)

@annabeckers
Copy link
Author

annabeckers commented Feb 22, 2024

The search function would not show the other issue pertaining to this problem: #559

@FriedrichFroebel
Copy link

Duplicate of #559.

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

No branches or pull requests

2 participants