wibbly wobbly

Musings on data through time and space

Texas Lake Storage XKCD Style

So as a simple test of my new blog I decided to recreate a plot of historical Texas lake storage from waterdatafortexas. The original plot can be seen below:

In [1]:
%pylab inline
from IPython.display import Image
import pandas as pd
#plt.xkcd()
Populating the interactive namespace from numpy and matplotlib

In [2]:
Image('http://waterdatafortexas.org/reservoirs/statewide/historical-storage.png')
Out[2]:
In [3]:
data = pd.read_csv('http://waterdatafortexas.org/reservoirs/statewide.csv', skiprows=29, index_col='date', parse_dates=True)
In [4]:
data['conservation_storage'].plot()
Out[4]:
<matplotlib.axes.AxesSubplot at 0x110bf44d0>
In [5]:
plt.xkcd()
Out[5]:
<matplotlib.rc_context at 0x111915e10>
In [6]:
data['conservation_storage'].plot()
Out[6]:
<matplotlib.axes.AxesSubplot at 0x11191b450>
In []:

Comments