A collection of Gnuplot examples

I needed to use Gnuplot a little bit over the last few days, mostly to create 2D line charts, and these are my brief notes on how to get started with Gnuplot. If you haven’t used it before, it’s a pretty amazing tool.

Jumping right in ...

Back to top

Installing gnuplot

Use MacPorts or Homebrew to install Gnuplot on Mac OS X systems:

port install gnuplot
brew install gnuplot
Back to top

Sample data files

My examples use the following 2-column and 4-column data files:

Back to top
A visual guide to graph traversal algorithms alvin June 20, 2016 - 10:08pm

A visual guide to graph traversal algorithms” is a fun website. As their docs state, “You can draw a new node by clicking anywhere on the visualization canvas. To add an edge between nodes, drag your mouse from one node to another.”

Is the "War on Drugs" working?

This article shares the graph shown that says the “War on Drugs” isn’t working. That appears to be true, but unfortunately you can’t really know that it’s true because there is no control group. What I mean is that we have no idea what the drug addiction rate would be like if we had not spent all this money on this so-called war. Maybe the rate would be 1.3%, or maybe it would be 5%; we don’t know.

Reasons most charts and graphs are ugly alvin June 14, 2014 - 9:46am

From this series of examples showing examples of how to make charts and graphs look better.

Sencha chart and graph examples

I still have a hard time finding what I want on the Sencha website, so I’m trying to add links here to make their documentation and examples easier for me to find. Here are two examples of the charts and graphs that they offer. This first set of Sencha chart examples comes from this link:

nload - A Linux real-time network traffic monitor

From “If you want to monitor network throughput on the command line interface, use nload. It is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the incoming and outgoing traffic using two graphs and provides additional info like total amount of transferred data and min/max network usage.”