New answers tagged

0

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


5

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, ...


0

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. http://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package



Top 50 recent answers are included