nschloe / tikzplotlib

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error nested axes pgfplots

jellinge opened this issue · comments

Dear all,

I am trying to convert the following Python plot to Tikz:
example

Without the detail (created by using ax.inset_axes(...)), everything works perfectly fine. However, with it I cannot compile my document anymore because of a pgfplots error:

Package pgfplots Error: Sorry, nested axis environments are not supported. Please move the inner axis environment below \end{axis} and use alignment options (for example named node
s, see manual) to place it at the desired position.

The export works just fine: example.zip

Is there a way to fix or circumvent this?

Best
Joe