tikzplotlib icon indicating copy to clipboard operation
tikzplotlib copied to clipboard

:bar_chart: Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX.

Results 138 tikzplotlib issues
Sort by recently updated
recently updated
newest added
trafficstars

When exporting this simple plot: ```python import matplotlib.pyplot as plt plt.ylim([0.635, 0.665]) plt.grid() ``` the label on the y axis in the result are labeled to 2-digit precision. I'd expect...

Besides `linear` and `log`, matplotlib offers the `symlog` axis scaling (see [docs](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xscale)) which comes in handy for plotting negative and positive data in one plot. The following code shows a...

The parameter `loc` to matplotlib's `legend` is commonly a string or index referring to a predefined location, but it can also be a 2-tuple of float axis coordinates. Trying to...

I have the following structure: ``` ├── images │   ├── plot-000.png │   └── plot.tex ├── main.tex ├── Makefile └── plot.py ``` `main.tex`: ```tex \documentclass{article} %\usepackage[luatex]{graphicx} %\graphicspath{{images/}} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \pgfplotsset{compat=1.16}...

Python code: ```python import numpy as np import matplotlib.pyplot as plt import tikzplotlib x = np.linspace(0.0, 1.0, 50) y = np.linspace(0.0, 1.0, 50) x_2d, y_2d = np.meshgrid(x, y) z =...

This fixes an AttributeError when a user calls `plt.legend()` and then saves a figure with `tikzplotlib.save`. Since `obj` in the relevant line is of type `matplotlib.legend.Legend()`, the attribute is `ncols`...

`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. ```

Scatter plot fails for a single point. A work-around is to pass list with the same point twice, but it looks like there's an error with one-element arrays: Code that...

Hello all, I am trying to convert my matplotlib/ seaborn violin plots to tex using tikzplotlib. Its working without showing any error. However, after importing it into overleaf its giving...

Error appears when using plotstyle Classic. Could be with others as well, but I didn't check all possible entries. ``` import torch import torch.nn.functional as F import numpy as np...