Matplotlib is a 2D plotting library for Python, built on NumPy and often used interactively with IPython. Its "pylab" interface is similar to the plotting functions of MATLABĀ®.

learn more… | top users | synonyms

7
votes
2answers
740 views

Set fonts in matplotlib graphs equal to tex document

I am writing my PhD in LaTeX and I am generating all my graphical content in Python with the matplotlib package. For my TeX document, I am using a math-supported font -- e.g. Kurier Light Condensed -- ...
4
votes
2answers
851 views

Good quality images in pdflatex

Generally I include images in my latex document by the command \includegraphics[scale=0.5]{image.png} However, after doing pdflatex the image quality is always very poor in the resulting pdf file. ...
4
votes
1answer
667 views

concrete font for text in matplotlib

I have matplotlib figures with labels, which are included as PDF in LaTeX document. I would like label text match with the font of the text, which is concrete (via \usepackage{concrete}). I can ...
4
votes
0answers
50 views

Vector image (pdf) in TikZ node alters appearance [duplicate]

Possible Duplicate: Tikz changes included graphics I include my pdf vector plots (created with matplotlib) in nodes belonging to a TikZ matrix for positioning (e.g. see TikZ: Image Matrix - ...
3
votes
1answer
529 views

Subscript size different in LaTeX and Matplotlib

I'm using matplotlib to prepare figures for a LaTeX document. I use TeX-mode in matplotlib. But subscript and superscipt in math mode gets a different size than in my LaTeX document. Rendered with ...
2
votes
1answer
137 views

How can I integrate matplotlib plots with pgfplots?

The python plotting library matplotlib will by default add margins to any plot that it generates. They can be reduced to a certain degree through some options of savefig(), namely bbox_inches='tight' ...
2
votes
1answer
608 views

Which font am I using

I am creating many figures for my LaTeX document using matplotlib with 'text.usetex': True. My full preamble looks like this: rc('font', **{'family':'serif', 'serif':['Computer Modern Roman']}) ...
2
votes
0answers
157 views

Externalize pgfpicture [closed]

When I do \tikzexternalize \tikzsetfigurename{foo} \begin{tikzpicture} ... \end{tikzpicture} and compile my LaTeX file with pdflatex --shell-escape, a file foo0.pdf is created the first time and ...
2
votes
1answer
227 views

Trying to import a tikz figure generated by matplotlib2tikz, getting dimension too large for y-axis [closed]

I'm trying to use a graph exported by matplotlib2tikz, with the following code in it: \begin{tikzpicture} \begin{axis}[ ylabel={CF [\%]}, xmin=0.5, xmax=7.5, ymin=0.096, ymax=0.144, axis on top, ...
1
vote
2answers
240 views

Generate plot with embedded tools useable externally

I use a both latex and M$ Word for my technical reports, depending on the person I have to deliver it. To generate my plot, I love using the tikz2pdf script given by Hans Meine but as far as it ...
-1
votes
1answer
499 views

Using Latex in Matplotlib plot title/axis label [closed]

Sorry if this is a repost; I'm sure this question gets asked often but I couldn't find exactly what I was after in the search. I'm trying to write a scientific plotting program in matplotlib (using ...