Horizontal Bar Graphs With Labels in Gnuplot

January 10th, 2011
tech
I wanted a horizontal bar graph with labels. Gnuplot doesn't like to make such things, but after a while of searching I figured out how to convince it to. Data file:
  # index, age, name
  1       24      jeff
  2       25      julia
  3       22      rose
  4       20      alice
  
Gnuplot file:
  set terminal png size "200x200"
  set output 'demo.png'
  set nokey
  unset border
  unset xtics

  plot 'demo.dat' using 1:(-1):3 with labels rotate right, \
       'demo.dat' using 1:2 with boxes
  
Then rotate right in an image editor to get:

Recent posts on blogs I like:

Starting With Chords

A lot of people play fiddle. Basically nobody starts by learning chords before learning melodies. But that's actually how I learned. I started with chords. One of the nice things about learning to play violin this way is that you can go busking even…

via Anna Wise's Blog Posts November 15, 2024

Stuffies

I have some stuffies and I just have a bunny. Bunny is a rabbit. Woof is a seal. My favorite stuffie is bun bun. I play with my stuffies. Sometimes I jump up with them and I roll them. I can just throw them in the air when I want to play bthululubp wi…

via Nora Wise's Blog Posts November 15, 2024

You Can Buy A Malaria Net

2024 election takes

via Thing of Things November 6, 2024

more     (via openring)