title: Plotting a histogram using a csv file
body: <p>I have a csv file with the following format.</p>
  
  <pre>
  Label 1, 20
  Label 2, 10
  Label 3, 30
  .
  .
  .
  LabelN, 5
  </pre>
  
  <p>How do I plot the second column using the labels given in the csv file as labels on the x-axis?</p>
  
  <p>(Something like <a href="https://i.stack.imgur.com/JciVN.png" rel="nofollow noreferrer">this</a>, where 1891-1900 is a label)</p>
  
  <p>EDIT:</p>
  
  <p>Found these questions which are quite similar to mine,</p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/11783202/plotting-word-frequency-histogram-using-gnuplot">Plotting word frequency histogram using gnuplot</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/15975631/gnuplot-xticlabels-with-several-lines">Gnuplot xticlabels with several lines</a></p></li>
  </ol>
  
  <p>After trying the commands given in answer 1.</p>
  
  <pre>
  set xtics border in scale 1,0.5 nomirror rotate by -90 offset character 0, 0, 0
  plot "data.txt" using 2:xticlabels(1) with histogram
  </pre>
  
  <p>I'm getting a not so clean <a href="https://i.imgur.com/mpAPlLM.png" rel="nofollow noreferrer">histogram</a> because the number of labels is quite large. I've tried the formatting given in answer 2. Can anyone suggest a way to get a cleaner histogram?</p>