Plot data-files (optionally performing FFT or Linear Regression)

Introduction

These are some simple CLI utilities which read in data from a file (one or more columns of int or float data), transform it, and plot it.
It's intended for automating repeated experiments, so the axis-names, legend, and output filename (if desired) are all CLI arguments.

This is all written using Python (numpy, scipy, pyplot, matplotlib), and is released as GPL. It's ready to use, and easy to modify.
Data files are read by numpy.loadtxt(), so are formatted as multiple columns, whitespace delimited, separated by newlines.
Data may be integer or floating-point. Blank lines and '#comments' are ignored.

For example:
dataplot -c0 file.dat plots the raw data from the first column of the datafile.
fftplot -f 1000 -z -o out.png file.dat plots the FFT of the input, zooming on the interesting bit, saving to out.png.

Contents

Installation

Notes

This was written as part of my PhD InfraRed Camera system. These plot utilities are generally applicable.
The file proofs/cdsm-vs-linreg.py is part of the PhD, demonstrating why linear-regression beats correlated-double-sampling in some situations. It's irrelevant for general use.

Download

maths.tgz

Documents

Some selected files, from the tarball: Readme and Man-pages.
README.txt
dataplot.1
fftplot.1
linregplot.1
dat2wav.1
decimate.1

Navigation

Return to all programs, site home.