tikzplotlib
tikzplotlib copied to clipboard
:bar_chart: Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX.
Calling `tikzplotlib.save('test.tex',standlone=True)` result in UniCodeEncodeError raised. ```python import tikzplotlib tikzplotlib.save('test.tex', standalone=True) Traceback (most recent call last): File "", line 1, in File "...\lib\site-packages\tikzplotlib\_save.py", line 255, in save file_handle.write(code) File "...\lib\encodings\cp1252.py",...
When combining an image with `plt.imshow()` and lines with `plt.plot()`, the legend is off. Code to produce a axis with an imshow image as well as lineplots (only one marker...
This error seems to happen when there is overlapping points **and** a color sequence is specified. `ax.scatter([1,2,3], [1,2,3], c = [1,1,1])` and `ax.scatter([1,1,1], [1,1,1])` are fine, but not `ax.scatter([1,1,1], [1,1,1],...
Please provide a minimal working example (MWE) that shows what isn't working as expected. Needed is * the Python code, * the output TeX (Pgfplots), and * the expected TeX...
3D plots
Hi, trying to plot in 3D gives an error: ``` python import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.mplot3d import matplotlib2tikz as tikz pos = np.zeros((3,10)) pos[0] =...
I use python to make a TEX file. The python figure and the figure in the PDF generated by TexStudio are different. Why, and how to solve this? This python...
Hi, I executed the exact same example code given in the manual and rendered the picture in Latex. However, the outcome differs. The axis ticks are shown outside the plot...
Setting the separation between subplots in Python/Matplotlib is not respected by the generated pgfplots code. Minimal example: ``` from matplotlib import pyplot as plt from matplotlib2tikz import save as tikz_save...
I know this is a very niche problem, but I discovered when using `ax.fill_between` together with `ax.set_yscale("log")`, a problem occurs when filling from 0 to some other number (see example...
A matlab/matplotlib polar plot should be converted into a polaraxis object of pgfplots ``` python width, height = matplotlib.rcParams['figure.figsize'] size = min(width, height) # make a square figure fig =...