• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • 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:

    Be less scared of overconfidence

    deferring to markets • deferring to experts • deferring to low-information heuristics • why they fail • blindness to outliers • what to do instead

    via benkuhn.net November 30, 2022

    Corncob Dolls

    I went to a farm and at the farm I got to see a corncrib and the corn that had fell out of the corncrib that no one wanted I got to use my fingers to take off the corn kernels and once the cobs were empty I put them in a bag and then once I got back to the…

    via Anna Wise's Blog Posts November 7, 2022

    Light Switch

    When I got my loft bed it was just so annoying every morning to have to get out of bed, climb down the ladder, turn the light on, and climb back up, just so I could see stuff. I decided to make a string for my light switch because I really wanted to be abl…

    via Lily Wise's Blog Posts November 7, 2022

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact