graph

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
Always visualize data alvin December 26, 2015 - 7:15pm

I’m sure there must be other ways to mathematically see these differences, but I agree with the general concept that it can be easy to be misled by data. (Image from this Twitter page.)

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.

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 cyberciti.biz: “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.”