title: bar plot with HH:MM:SS in x-axis
body: <p>I have the following string in Python (got many of those):</p>
  <pre><code>date = &quot;00:01:43&quot;
  </code></pre>
  <p>which represents the hour::minute::seconds. This comes from reading a csv file which contains many of those date.</p>
  <p>Now I need to construct those I am reading from csv to some sort of array and then use it for a bar plot (matloblib.bar) as the x-axis</p>
  <p>The question is how do I prepare the dates I am reading to be used in a bar plot:</p>
  <pre><code>with open('file.csv','r')
      for line in file:
          time = line.split(',')[0] ## this is read like &quot;HH:MM:SS&quot;
          temp = line.split(',')[1] ## this is read like &quot;Float as a string&quot;
          tempArray.append(float(temp))
  </code></pre>
  <p><strong>QUESTION</strong></p>
  <p>How do I assembly the time into an array to then be used in the following:
  plt.bar(timeArray, tempArray)</p>
  <p>where the x-axis would still show &quot;HH:MM:SS&quot; format.</p>