Archive for January, 2007

Quick and Easy Histograms in gnuplot

Wednesday, January 31st, 2007

I have to create histograms quite frequently for my Digital Signal Processing class this semester. Here’s a quick gnuplot setup for a histogram. You can either type these commands into gnuplot, or enter them into a file (usually with a .gpi extension), and use ‘gnuplot file.gpi’ or ‘load file.gpi’ inside gnuplot.

example:

set boxwidth VALUE # Probably 3-5.
set xlabel "STRING"
set ylabel "STRING"
set term svg # Create an SVG image
set output 'file.svg'
set key off # Unless you really want a key
# For this next line, lw is linewidth (2-4)?
plot [XMIN:XMAX] ‘myHistogramData’ with boxes lw VALUE

The input is expected to be in this format:

x-value y-value
x-value y-value
etc...

thetopher.com is dead, long live thetopher.com!

Friday, January 5th, 2007

Over the Christmas holiday, the server that was hosting the original thetopher.com suffered multiple disk failures. This resulted in the loss of all my blog (which was only about 5 posts), and my ugly Christmas wish list. Fortunately, a lame website only takes minutes to rebuild!

So, thetopher.com is now running on a new server, ain’t that exiting? I suppose that I’ll soon be starting to add some more things to the site, getting it a little more organized, and starting to back-up my stuff too.

So, what sort of things do we have to look forward to? Hopefully I’ll get a snappy photo album up, an easy-to-use and well-managed recipe book, and fun projects, like: “Blowing stuff up over the Internet!”