title: How to plot time as x axis in pandas
body: <p>I am trying to plot a data-frame in pandas. The csv file I am using is:</p>
  
  <pre><code>Time,Total cpu%,Used mem(k),Cache mem(k),Net mem Used%,Total mem Used%,Swap mem(%),process1 cpu%,process1 mem%,
  4:19:25,12.5,885324,1249960,38.38,38.38,0,6.2,34.7
  4:19:28,0.4,885460,1249804,38.39,38.39,0,5.3,34.7
  4:19:31,1.8,885700,1249528,38.4,38.4,0,5,34.7
  4:19:34,0.7,885700,1249528,38.4,38.4,0,5.3,34.7
  4:19:37,0.4,885708,1249528,38.4,38.4,0,5.3,34.7
  4:19:40,2.1,885704,1249528,38.4,38.4,0,5.3,34.7
  4:19:43,0.4,885704,1249528,38.4,38.4,0,5,34.7
  4:19:47,0.7,885700,1249528,38.4,38.4,0,5.3,34.7
  4:19:50,13.8,885704,1249528,38.4,38.4,0,16,34.7
  </code></pre>
  
  <p>My code so far is:</p>
  
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  
  # create dataframe
  df = pd.read_csv('sample_csv.csv')
  
  # select only cpu columns
  cpu_columns = ['Total cpu%', 'process1 cpu%']
  
  # dataframe from cpu columns
  df1 = df[cpu_columns]
  </code></pre>
  
  <p>I want to plot this data-frame with all the time values on X-axis.
  So I created a list from values in "Time" column and set it as x_axis value as follows:</p>
  
  <pre><code>x_axis = df["Time"].values
  
  # plot dataframe
  df1.plot(x=df["Time"])
  plt.show()
  </code></pre>
  
  <p>Following is the graph I could get so far:
  <a href="https://i.stack.imgur.com/8RO0z.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/8RO0z.jpg" alt="cpu usage graph"></a></p>
  
  <p>So the label of X-axis is shown as "Time". How can I show the time values in "Time" column on X-axis?</p>