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 using a normal bar plot from matplotlib the string xticklabels are not converted, but instead the integer value. ```python import matplotlib.pyplot as plt plt.bar(["A", "B"], [1, 2]) print(tikzplotlib.get_tikz_code()) ```...

The order of entries for 2 column legends in a matplotlib plot is different from pgfplots. The first is top->bottom -> left ->right, while the second is top left ->...

Example: ```python import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax.bar([1, 2], [3, 4]) ax.bar([1, 2], [2, 5]) ax.legend(['data', 'more data']) import tikzplotlib tikzplotlib.save("bar_legend.tex") ``` TikZ...

Here is my python code: ```python import tikzplotlib import matplotlib.pyplot as plt xs = [0, 315.55, 601.28, 956.15, 1205.98, 1514.03, 1804.015] ys = [20, 12.6386, 8.71647, 3.90248, 1.76259, 0.637851, 0.622631]...

Relative axis coordinates in text objects in matplotlib via `transform=plt.gca().transAxes` are not taken over in the generated pgfplots figure. Python code for minimal example: ``` from matplotlib import pyplot as...

Converting a bar plot with error bars which includes nan data produces a UnboundLocalError in _path.py. With the following minimal example ``` import numpy as np from matplotlib import pyplot...

I'm finding with my figures that I cannot make the resulting tikz figure look the same as my original pyplot figure. Take the MWE provided by the creators, with a...

If subplots are generated in a different order (e.g., 2 before 1), then tikzplotlib incorrectly generates multiple groupplot environments, breaking the placement. ```py from matplotlib import pyplot as plt import...

This code does not work: ``` import matplotlib.pyplot as plt import tikzplotlib import numpy as np x, y, u, v = [np.random.normal(size=(20)) for _ in range(4)] plt.quiver(x, y, u, v,...

Hi! The save command ignores the plot properties as defined in Python, so figure size and also ticks. Here you find the Python code: ``` import numpy as np import...