Skip to content

matplotlib/cheatsheets

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 22, 2021 17:47
November 17, 2021 21:46
December 7, 2021 18:06
December 15, 2021 14:18
February 23, 2022 15:51
November 22, 2021 17:34
November 11, 2021 15:00
November 22, 2021 17:34
June 25, 2020 18:08
December 7, 2021 18:06
October 23, 2021 23:42
fix
December 15, 2021 16:07
December 13, 2021 09:01

Cheatsheets for Matplotlib users

Cheatsheets

Cheatsheet (download pdf)

Handouts

Beginner handout (download pdf) Intermediate handout (download pdf) Tips handout (download pdf)

For contributors to the cheatsheets

How to compile

  1. You need to create a fonts repository with:

On Linux, with make installed, the fonts can be set up with the following command:

make -C fonts

The fonts can be made discoverable by matplotlib (through fontconfig) by creating the following in $HOME/.config/fontconfig/fonts.conf (see here):

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/path/to/cheatsheets/fonts/</dir>
...
</fontconfig>
  1. You need to generate all the figures:
$ cd scripts
$ for script in *.py; do python $script; done
$ cd ..
  1. Compile the sheet
$ xelatex cheatsheets.tex
$ xelatex cheatsheets.tex