Graphics.Matplotlib

Running a plot

onscreen

code

file

Useful plots

xacorr

histogram

histogram2D

scatter

bar

line

errorbar

lineF

boxplot

violinplot

contourF

projectionsF

plotInterpolated

plotMapLinear

line1

matShow

imshow

pcolor

pcolor3

nonUniformImage

pie

density

Matplotlib configuration

rc

setParameter

setTeX

setUnicode

Basic plotting commands

dataPlot

plot

streamplot

dateLine

dataHistogram

dataScatter

dataLine

contour

projections

wireframe

surface

contourRaw

subplotDataBar

barDefaultWidth

subplotBarsLabelled

subplotBars

interpolate

densityBandwidth

xcorr

acorr

quiver

quiverKey

text

figText

annotate

Layout, axes, and legends

setAspect

squareAxes

roateAxesLabels

verticalAxes

logX

logY

xlim

ylim

axhline

legend

colorbar

title

grid

axis3DProjection

axis3DLabels

xlabel

ylabel

zlabel

setSizeInches

tightLayout

xkcd

Ticks

xticks

yticks

zticks

xtickLabels

ytickLabels

ztickLabels

axisXTickSpacing

axisXTickLabels

axisYTickSpacing

axisYTickLabels

axisXTicksPosition

axisYTicksPosition

Spines

spine

spineSetBounds

spineSetVisible

spineSetPosition

Subplots

setAx

addSubplot

getSubplot

subplots

setSubplot

axes

addAxes

figure

Creating custom plots and applying options

data Matplotlib

data Option

(@@)

(%)

o1

o2

(##)

(#)

mp

def

readData

readImage

str

raw

lit

updateAxes

updateFigure

mapLinear