title: Matplotlib how to change figsize for matshow
body: <p>How to change figsize for <a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.matshow" rel="noreferrer">matshow()</a> in jupyter notebook?</p>
  
  <p>For example this code change figure size</p>
  
  <pre><code>%matplotlib inline
  import matplotlib.pyplot as plt
  import pandas as pd
  
  d = pd.DataFrame({'one' : [1, 2, 3, 4, 5],
                    'two' : [4, 3, 2, 1, 5]})
  plt.figure(figsize=(10,5))
  plt.plot(d.one, d.two)
  </code></pre>
  
  <p>But code below doesn't work</p>
  
  <pre><code>%matplotlib inline
  import matplotlib.pyplot as plt
  import pandas as pd
  
  d = pd.DataFrame({'one' : [1, 2, 3, 4, 5],
                    'two' : [4, 3, 2, 1, 5]})
  plt.figure(figsize=(10,5))
  plt.matshow(d.corr())
  </code></pre>