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

This fixes #580, which has been broken since the *matplotlib* change in https://github.com/matplotlib/matplotlib/pull/21050/commits/9c0fa9ed83a825eb34ae8d44ba1b4123145f8422 for version 3.6.0. This PR is similar to #571, but has two differences: * It keeps the...

I was unable to save the plot as a TikZ file after upgrading to latest version of matplotlib. It was giving an error of `AttributeError: 'Line2D' object has no attribute...

The following code throws `NotImplementedError: There is data outside of the box. Don't know how to handle during cleaning. Please check if x/ylim is to tight`: ```python import matplotlib.pyplot as...

I'm no expert in any of this but I've tried the fix suggested in #557, seems to work in some test cases I've tried. Maybe just an overlooked detail? (Apparently...

``` sns.lineplot(data = c_t_pop30, x="year", y="dif_growth") plt.axvline(1949) plt.axvline(1990) tikzplotlib.save(r"/Users/a/Library/Mobile Documents/com~apple~CloudDocs/Courses/Economics/problem_set/manuscript/src/figs/fig4c_alone.tex") ``` Python shows the values for both axes, as expected ![output](https://github.com/nschloe/tikzplotlib/assets/78081516/75a28ee2-7225-4e8a-89d5-0b0b4ca1c895) Actual output in latex Here is the latex code...

According to https://github.com/nschloe/tikzplotlib/blob/450712b4014799ec5f151f234df84335c90f4b9d/src/tikzplotlib/_axes.py#L453-L454 the type of `extra_groupstyle_parameters` should be `list[str]`, but in https://github.com/nschloe/tikzplotlib/blob/450712b4014799ec5f151f234df84335c90f4b9d/src/tikzplotlib/_save.py#L33 it is `dict`.

Streamplots with multicoloured lines arent properly coloured when the tikzplot is created. I solved the issue by adding the following snippet to `_line2d.draw_linecollection` (has to be before ` edgecolors =...

I don't manage to avoid the scientific notation nor the thousand separators in the axises. Seems like tikzplotlib forces some settings that overwrite the global settings in the latex preamble....

When attempting to use Legends, the following error is presented. > AttributeError: 'Legend' object has no attribute '_ncol'. Did you mean: '_ncols'? I quick search of the [matplotlib docs](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html) showed...