Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cheatsheets

> 编程语言
Open source

Official Matplotlib cheat sheets

7.7K stars0 likes1 views
WebsiteGitHub

About

Official Matplotlib cheat sheets

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:
  • fonts/roboto/* : See https://fonts.google.com/specimen/Roboto or https://github.com/googlefonts/roboto/tree/master/src/hinted
  • fonts/roboto-slab/* : See https://fonts.google.com/specimen/Roboto+Slab or https://github.com/googlefonts/robotoslab/tree/master/fonts/static
  • fonts/source-code-pro/* : See https://fonts.google.com/specimen/Source+Code+Pro or https://github.com/adobe-fonts/source-code-pro/tree/release/OTF
  • fonts/source-sans-pro/* : See https://fonts.google.com/specimen/Source+Sans+Pro or https://github.com/adobe-fonts/source-sans-pro/tree/release/OTF
  • fonts/source-serif-pro/* : See https://fonts.google.com/specimen/Source+Serif+Pro or https://github.com/adobe-fonts/source-serif-pro/tree/release/OTF
  • fonts/pacifico/* : See https://fonts.google.com/download?family=Pacifico

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

bash
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
<?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

Issues· 16 open

View all issuesOpen on GitHub
  • #143

    Move image diff check to standalone GH actions workflow

    Updated Jan 30, 2024
  • #131

    Brazilian Portuguese translation

    Updated May 24, 2023
  • #119

    Branch protection and merge rules?

    Updated Nov 28, 2022
  • #113

    Clarify when to use None / np.nan to segement data

    Updated Sep 21, 2022
  • #111

    Replace `step` with `stairs`?

    cheatsheetUpdated May 12, 2022
  • #109

    'right' and 'top' in plt.subplots_adjust() are not directly padding size

    cheatsheetUpdated May 7, 2022
  • #81

    prune the number of image interpolations and replace with new material

    Updated Nov 9, 2021
  • #65

    Variable names should generally be lowercase

    Updated Jul 26, 2021
  • #55

    No pcolormesh referenced

    Updated Mar 19, 2021
  • #37

    Spanish translation

    Updated Jul 23, 2020

> Tags

Pythoncheatsheetmatplotlibpython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言