Transformations and Colors

This week, we covered how transformations work, how colors work, and how we can choose transforms and colors to better suit our data.

References and Reading List

Quick Reference for Matplotlib

Developed and available at github.com/matplotlib/cheatsheets

Lectures

Scaling, Colors, and Colormaps

How are values transformed from 0's and 1's into values we can manipulate and understand? When we draw something on a screen, how do we represent that internally, and how is that translated into pixels? What operations can we do on data? How do colors work? What are the different ways we can map colors to values? What should we keep in mind when doing this?

Examples

Matplotlib specifics - (download)

This goes over some very specific aspects of matplotlib, and how to apply data transformations to patches and annotations, as well as modifying properties of the plot.

Colormaps - (download)

We load in a brain scan and try some basics of colormapping in matplotlib.

Assignments