Show Menu
Cheatography

matplotlib.pyplot Cheat Sheet (DRAFT) by

A cheat sheet for matplotlib

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Markers

'.'
point marker
','
pixel marker
'o'
circle marker
'v'
triang­le_down marker
'^'
triang­le_up marker
'<'
triang­le_left marker
'>'
triang­le_­right marker
'1'
tri_down marker
'2'
tri_up marker
'3'
tri_left marker
'4'
tri_right marker
'8'
octagon marker
's'
square marker
'p'
pentagon marker
'P'
plus (filled) marker
'*'
star marker
'h'
hexagon1 marker
'H'
hexagon2 marker
'+'
plus marker
'x'
x marker
'X'
x (filled) marker
'D'
diamond marker
'd'
thin_d­iamond marker
'|'
vline marker
'_'
hline marker
 

Line Styles

'-'
solid line style
'--'
dashed line style
'-.'
dash-dot line style
':'
dotted line style
 

Colors

'b'
blue
'g'
green
'r'
red
'c'
cyan
'm'
magenta
'y'
yellow
'k'
black
'w'
white