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

2
votes
1answer
141 views

Matplotlib's PGF vs Matplotlib2Tikz

I want to generate some plots to be integrated into a LaTeX document compiled with pdflatex. I also want the plot font (legend, title ...) to follow the settings of the LaTeX document. My search so ...
6
votes
1answer
221 views

Arrow-shaped text boxes (for use in ipe vector graphics editor)?

Ipe vector graphics editor I am currently evaluating the ipe vector graphics editor. A very attractive feature is that one can use LaTeX-commands inside its text objects as long as these are legal ...
4
votes
1answer
592 views

How can I import and scale matplotlib plots, keeping fonts the correct size?

I'm working on several pieces of coursework involving lots of plots generated with matplotlib in python scripts. Currently I'm doing this with an iterative process where I set a plot size in the ...
0
votes
0answers
277 views

How to import SVG or EPS files with LaTeX legends on Inkscape?

I usually plot my functions using Matlab or Python (matplotlib) and set labels with LaTeX. Occasionally, the plots have some rendering problem and I edit their SVG or EPS files using Inkscape. The ...
5
votes
0answers
2k views

How to incorporate and scale matplotlib plots in latex using the PGF backend?

I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily. Example python code: #!/usr/bin/env python ...
3
votes
0answers
38 views

Matching cmyk colors in plot to LaTeX [duplicate]

I'm plotting something using the Python package matplotlib and I'm using the matplotlib.cm.rainbow colormap. I need to match the same colors in my LaTeX document, but I'm having a difficult time ...
5
votes
1answer
390 views

How to match cmyk colors between matplotlib and LaTeX

I'm plotting something using matplotlib and I'm using the matplotlib.cm.rainbow colormap. I need to match the same colors in my LaTeX document, but I'm having a difficult time making the colors match ...
3
votes
1answer
384 views

Matplotlib PGF images in subdirectory

I have a two-dimensional image plotted by Matplotlib using the PGF backend. It is stored in the figures subdirectory (since I have a lot of images and don't want to clutter up the main folder). As an ...
3
votes
1answer
658 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' ...
3
votes
0answers
458 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 ...
-1
votes
1answer
4k 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 ...
4
votes
0answers
51 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 - ...
1
vote
2answers
367 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 ...
2
votes
1answer
419 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, ...
3
votes
1answer
1k 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 ...
3
votes
1answer
2k 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']}) ...
4
votes
2answers
4k 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. ...
5
votes
1answer
917 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 ...
9
votes
2answers
1k 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 -- ...