Skip to content

Instantly share code, notes, and snippets.

@shazeline
Forked from CamDavidsonPilon/538.json
Created August 14, 2014 08:34

Revisions

  1. @CamDavidsonPilon CamDavidsonPilon revised this gist Jul 3, 2014. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions load_538.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import matplotlib
    import json

    s = json.load( open("538.json") )
    matplotlib.rcParams.update(s)

    # plots now use FiveThirtyEight styles
  2. @CamDavidsonPilon CamDavidsonPilon created this gist Jul 3, 2014.
    39 changes: 39 additions & 0 deletions 538.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    {
    "lines.linewidth": 2.0,
    "examples.download": true,
    "patch.linewidth": 0.5,
    "legend.fancybox": true,
    "axes.color_cycle": [
    "#30a2da",
    "#fc4f30",
    "#e5ae38",
    "#6d904f",
    "#8b8b8b"
    ],
    "axes.facecolor": "#f0f0f0",
    "axes.labelsize": "large",
    "axes.axisbelow": true,
    "axes.grid": true,
    "patch.edgecolor": "#f0f0f0",
    "axes.titlesize": "x-large",
    "svg.embed_char_paths": "path",
    "examples.directory": "",
    "figure.facecolor": "#f0f0f0",
    "grid.linestyle": "-",
    "grid.linewidth": 1.0,
    "grid.color": "#cbcbcb",
    "axes.edgecolor":"#f0f0f0",
    "xtick.major.size": 0,
    "xtick.minor.size": 0,
    "ytick.major.size": 0,
    "ytick.minor.size": 0,
    "axes.linewidth": 3.0,
    "font.size":14.0,
    "lines.linewidth": 4,
    "lines.solid_capstyle": "butt",
    "savefig.edgecolor": "#f0f0f0",
    "savefig.facecolor": "#f0f0f0",
    "figure.subplot.left" : 0.08,
    "figure.subplot.right" : 0.95,
    "figure.subplot.bottom" : 0.07
    }