Skip to content

anisotropela/plotdat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plotdat

Quick-plot data from text file.

Description

A simple Python script for plotting data from the command line.

Installation

For easier usage, put the code in your favorite directory (e.g. ~/myFavDir/), and then add the following line in your startup configuration file (e.g. .bash_profile or .zshrc):

alias plotdat="python ~/myFavDir/plotdat.py"

If you're using csh or tcsh, your config file is called .cshrc, and you should omit the =:

alias plotdat "python ~/myFavDir/plotdat.py"

If you don't know which shell you're using, check with

> echo $SHELL

Usage

If you have added the line above, use the examples below as written. Otherwise, instead of just plotdat, you should write python plotdat.py:

Plot column 2 vs. column 1 in a text file file.dat:

> plotdat file.dat

Make a scatter plot of column 4 vs. column 1 with a logarithmic x axis, using the header as labels:

> plotdat file.dat -s -l -ycol 3 -xlog

Note that the syntax for "column 4" is -ycol 3, as is standard for Python.

Get help

> plotdat -h

About

Quick-plot data from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages