项目作者: matplotlib

项目描述 :
Official Matplotlib cheat sheets
高级语言: Python
项目地址: git://github.com/matplotlib/cheatsheets.git
创建时间: 2020-05-05T15:50:03Z
项目社区:https://github.com/matplotlib/cheatsheets

开源协议:BSD 2-Clause "Simplified" License

下载


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:

  1. 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):

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