• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Horizontal Bar Graphs With Labels in Gnuplot

    January 10th, 2011
    tech  [html]
    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:

    Collections: Teaching Paradox, Europa Universalis IV, Part II: Red Queens

    This is the second part in a series (I) that examines the historical assumptions behind Paradox Interactive’s grand strategy computer game set in the early modern period, Europa Universalis IV (EU4). Last time, we took a look at how EU4 was a game fundame…

    via A Collection of Unmitigated Pedantry May 7, 2021

    Amtrak’s Continued Ignorance

    There was a congressional hearing about high-speed rail. Henry Miller in comments here took notes – thanks for this, much appreciated! The overall content was lacking; the politicians seemed like they were spinning their wheels, not because they themselve…

    via Pedestrian Observations May 7, 2021

    Books and websites on babies

    Several people I know are expecting a first baby soon, and I wrote up notes for one of them. Might as well share here too: Medical:Scott Alexander’s Biodeterminist’s Guide to Parenting is an interesting read, and some parts are actionable.  If you live in…

    via The whole sky April 14, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact