title: How to plot charts side by side with a forloop
body: <p>i have the following code:</p>
  
  <pre><code>import pandas as pd
  from pandas import datetime
  from pandas import DataFrame as df
  import matplotlib
  from pandas_datareader import data as web
  import matplotlib.pyplot as plt
  import datetime
  import numpy as np
  
  stocks = 'GE','F' #&lt;-- In this case there are just 2 symbols but this could be more 
  start = datetime.date(2000,1,1)
  end = datetime.date.today()
  
  data = web.DataReader(stock, 'yahoo',start, end)
  
  for stock in stocks:
      data.plot(y='Close')
  plt.subplot(1,1,2) #&lt;-- Trouble here
  </code></pre>
  
  <p>Here is my question. How can i plot all the symbols side by side inside the forloop?</p>