Path: blob/master/lessons/lesson_12/python-notebooks-data-wrangling/Visualization--Multiples-with-Standard-Subplots.ipynb
1904 views
Kernel: Python 3
Practice with subplots using earthquake data
http://matplotlib.org/examples/pylab_examples/subplots_demo.html
In [1]:
In [2]:
In [15]:
Out[15]:
In [4]:
Out[4]:
Simple double-row plot
In [5]:
Out[5]:
In [6]:
In [7]:
Out[7]:
Double-column plot and sharing the y-axis
In [8]:
Out[8]:
2x2 plot, sharing x and y-axes
In [9]:
Out[9]:
Dynamic number of rows
Create a 1-column chart with a chart for each year
In [10]:
Out[10]:
array([2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014, 2015, 2016])
In [11]:
Out[11]:
Hiding axis labels across all charts
In [12]:
Out[12]:
Delete cells
In [13]:
Out[13]:
Notice what happens when you change the order of iteration in the loop:
In [14]:
Out[14]:
In [ ]: