New answers tagged


The simplest way that worked for me was to save the figure in .svg format in matplotlib. This preserves the LaTeX math symbols rendered by matplotlib when you open in Inkscape


Add \pgfplotsset{compat=newest} to the preamble. \documentclass[tikz,margin=.5cm]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage[T1]{fontenc} \usepackage{siunitx} \usetikzlibrary{arrows,calc} \pgfplotsset{compat=newest} %<<<<<<< \begin{document} \begin{tikzpicture} \begin{axis}[% width=3.767in, ...


Discovered the answer, related to Paul Gessler's comment. There's a wonderful style file called mcode.sty that uses the listings package but seems to deal with some of it's shortcomings.

Top 50 recent answers are included