ionvision / cheatsheets

Official Matplotlib cheat sheets

Home Page:https://matplotlib.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cheatsheets

Handouts

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

About

Official Matplotlib cheat sheets

https://matplotlib.org/

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 58.2%Language:TeX 39.4%Language:Makefile 2.4%