cli-plot

A commandline app for plotting datafiles


Keywords
click, matplotlib
License
MIT
Install
pip install cli-plot==1.1.2

Documentation

CLI Plot

A commandline app for parsing and plotting text data files.

Installation

Using Pip

  $ pip install cli-plot

Manual

  $ git clone https://github.com/John-Lee-Cooper/cli_plot
  $ cd cli_plot
  $ python setup.py install

Usage

$ cli_plot --version
$ cli_plot --help

Generate demo

Generate and display some sample data, written to demo.dat

$ cli_plot --demo

cli-plot

User Interface

Key Result
g Toggle Grid
t Cycle Plot Type
m Toggle Series Markers
1-9 Toggle Series 1-9 Display
enter Save Plot to png Image
escape Exit

Holding the left mouse button down and moving the mouse will pan the plot.
Rolling the mouse wheel up and down will zoom out and in where the mouse is.

Display head of file

$ cli_plot demo.dat --type=head

Plot specific columns

Plot sin and growth against time:

$ cli_plot demo.dat time sin damp

cli-plot

Plot pairs of columns

Plot columns 2 against column 1 and column 4 against column 3:

$ cli_plot demo.dat 2,3 1,4

cli-plot

Specify plot type

Plot data as a scatter plot:

$ cli_plot demo.dat --type=scatter

cli-plot

Todo

Written by

John Lee Cooper
john.lee.cooper@gatech.edu