GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - matplotlib/cheatsheets: Official Matplotlib cheat sheets

BranchesTags
Open more actions menu

Latest commit

 

History

336 Commits
336 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
docs
docs
 
 
figures
figures
 
 
fonts
fonts
 
 
logos
logos
 
 
requirements
requirements
 
 
scripts
scripts
 
 
styles
styles
 
 
.bumpversion.cfg
.bumpversion.cfg
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
cheatsheets.tex
cheatsheets.tex
 
 
check-diffs.py
check-diffs.py
 
 
check-links.py
check-links.py
 
 
check-matplotlib-version.py
check-matplotlib-version.py
 
 
check-num-pages.sh
check-num-pages.sh
 
 
handout-beginner.tex
handout-beginner.tex
 
 
handout-intermediate.tex
handout-intermediate.tex
 
 
handout-tips.tex
handout-tips.tex
 
 

Repository files navigation

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:

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

matplotlib.org/cheatsheets/

Topics

cheatsheetmatplotlibpython

Resources

Readme
BSD-2-Clause license
Activity
Custom properties

Stars

7.8k stars

Watchers

132 watching

Forks

916 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.