{ "metadata": { "name": "", "signature": "sha256:356c91d14531311d76c1ff145ea33c89dd841f5079cd41956b4890e716034964" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "- [Color Brewer Sequential](#Color-Brewer-Sequential)\n", "- [Color Brewer Diverging](#Color-Brewer-Diverging)\n", "- [Color Brewer Qualitative](#Color-Brewer-Qualitative)\n", "- [Wes Anderson](#Wes-Anderson)" ] }, { "cell_type": "code", "collapsed": false, "input": [ "from brewer2mpl import qualitative, sequential, diverging, wesanderson\n", "from brewer2mpl.brewer2mpl import _ColorMap" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 7 }, { "cell_type": "code", "collapsed": false, "input": [ "def display_maps(module):\n", " for k in dir(module):\n", " thing = getattr(module, k)\n", " if isinstance(thing, dict) and 'max' in thing:\n", " thing = thing['max']\n", " if isinstance(thing, _ColorMap):\n", " print(k)\n", " thing.show_as_blocks()" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 21 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Color Brewer Sequential" ] }, { "cell_type": "code", "collapsed": false, "input": [ "display_maps(sequential)" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Blues\n" ] }, { "html": [ "