Scientific Computing with Python
Austin, Texas • July 6-12
Registration - 100% Full

Sponsors

Monday 8 a.m.–noon

Anatomy of Matplotlib

Benjamin Root

Audience level:

Description

This tutorial will be the introduction to matplotlib. Users will learn the types of plots and experiment with them. Then the fundamental concepts and terminologies of matplotlib are introduced. Next, we will learn how to change the "look and feel" of their plots. Finally, users will be introduced to other toolkits that extends matplotlib.

Abstract

Introduction

Purpose of matplotlib

Online Documentation

matplotlib.org

Mailing Lists and StackOverflow

Github Repository

Bug Reports & Feature Requests

What is this "backend" thing I keep hearing about?

Interactive versus non-interactive

Agg

Tk, Qt, GTK, MacOSX, Wx, Cairo

Plotting Functions

Graphs (plot, scatter, bar, stem, etc.)

Images (imshow, pcolor, pcolormesh, contour[f], etc.)

Lesser Knowns: (pie, acorr, hexbin, streamplot, etc.)

What goes in a Figure?

Axes

Axis

ticks (and ticklines and ticklabels) (both major & minor)

axis labels

axes title

figure suptitle

axis spines

colorbars (and the oddities thereof)

axis scale

axis gridlines

legend

Manipulating the "Look-and-Feel"

Introducing matplotlibrc

Properties

  • color (and edgecolor, linecolor, facecolor, etc...)
  • linewidth and edgewidth and markeredgewidth (and the oddity that happens in errorbar())
  • linestyle
  • fonts
  • zorder
  • visible

What are toolkits?

axes_grid1

mplot3d

basemap