Tag Info

New answers tagged

0

You can easily export your matplotlib figures to LaTeX. Just save the figure with the extension pgf as in the following example. #!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt x = np.linspace(-5,5,100) plt.plot(x, np.exp(-x**2), 'o-') plt.plot(x, 1/(1 + x**2), 'o-') plt.savefig('sample.pgf') Afterwards you can import the ...



Top 50 recent answers are included