title: DRY in python matplotlib plotting using one single command
body: <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  
  &gt; importing csv files
  january = pd.read_csv('divident_month/january.csv')
  april = pd.read_csv('divident_month/april.csv')
  july = pd.read_csv('divident_month/july.csv')
  october = pd.read_csv('divident_month/october.csv')
  
  &gt; substracting column 'Open' to column close
  jangain = january['Open']-january['Close']
  aprgain = april['Open']-april['Close']
  julgain = july['Open']-july['Close']
  octgain = october['Open']-october['Close']
  
  &gt;plotting  
  medium=[jangain, aprgain, julgain, octgain]
  plt.plot(medium)
  plt.show()
  
  ## jan = plt.plot(jangain, label='january')
  ## apr =plt.plot(aprgain, label='april')
  ## jul =plt.plot(julgain, label='july')
  ## oct =plt.plot(octgain, label='october')
  ## plt.legend()
  </code></pre>
  
  <p>how can i plot multiple items into a graph without repeating myself as i have in the ##.
  i have multiple files with repetitive code for diferent months(their grouped in different files for Before div months,div months, and after div months ).</p>
  
  <p>i have tried grouping them into a list(medium) and passing the list into <code>plt.plot(medium)</code>
  but that doesn't seem to work. </p>
  
  <p>i have also given the plots names(such as Jan, apr...)because im importing them into a different file for q1,q2,q3,q4 analysis(just in case that info confusing)</p>
  
  <p>this is me trying to do finance with python btw </p>