title: plotting 2 graph in same window using matplotlib in python
body: <p>I was plotting a line graph and a bar chart in <code>matplotlib</code> and both individually were working fine with my script.<br>
  but i'm facing a problem:<br>
  1. if i want to plot both graphs in the same output window<br>
  2. if i want to customize the display window to 1024*700  </p>
  
  <p>in 1 st case I was using subplot to plot two graphs in same window but i'm not being able to give both graphs their individual x-axis and y-axis names and also their individual title.
  my failed code is:</p>
  
  <pre><code>import numpy as np
  import matplotlib.mlab as mlab
  import matplotlib.pyplot as plt
  xs,ys = np.loadtxt("c:/users/name/desktop/new folder/x/counter.cnt",delimiter = ',').T
  fig = plt.figure()
  lineGraph = fig.add_subplot(211)
  barChart = fig.add_subplot(212)
  
  plt.title('DISTRIBUTION of NUMBER')
  lineGraph = lineGraph.plot(xs,ys,'-')  #generate line graph
  barChart = barChart.bar(xs,ys,width=1.0,facecolor='g') #generate bar plot
  
  plt.grid(True)
  plt.axis([0,350,0,25])  #controlls axis for charts x first and then y axis.
  
  
  plt.savefig('new.png',dpi=400)
  plt.show()
  </code></pre>
  
  <p>but with this I am not being able to mark both graphs properly.<br>
  and also please site some idea about how to resize the window to 1024*700.  </p>