Purpose of PythonPlot

Download PythonPlot

PythonPlot is a Python application for plotting x-y-graphs read from ASCII files, which have numbers, sorted in columns but may also have various, unformatted headers and comments. With PythonPlot you can find and plot the numbers from any mixed ASCII file without modifying the file. It's main purpose is to quickly analyse complicated curves by viewing them and zooming into interesting regions of the curves. For zooming in, you just drag a rectangle over the region of interest.
PythonPlot opens text files first in a separate window where you can see the whole text, except rows and columns of numbers (they are truncated after the first few lines). In this text window, you can specify the start-line, the column for the x-axis and the column for the y-axis by two clicks with the left mouse button. Just click over the first value of the x-axis and then over the first value of the y-axis. PythonPlot then reads the numbers from the text file, until it finds a blank line or a non-number-character. Finally you can add some annotations to the curves and export the plot canvas to a postscript file.
Examples of how to call PythonPlot from an own Python program are in the zip file as well.
Send feedback here : e-mail (just remove the brackets and the text between them).

pp3channels2.png
Installation

PythonPlot just needs Python with Tkinter. Get it here.

Usage

If you have Python and Tkinter, either double-click on PythonPlot.py in your file-browser or start it from the command line with
python PythonPlot.py
or with parameters :
python PythonPlot.py filename --startline STARTLINE --startx STARTX --starty STARTY
The default parameters are first line, first column for x-axis and first column for y-axis
(python PythonPlot.py filename --startline 0 --startx 0 --starty 0).
If the columns for x- and y-axis are identical, PythonPlot plots the graph over it's index.
The graphical user interface is as simple as possible : open the ASCII file ("File->Open"), select the x-axis by clicking on the first number of the x-axis, select the y-axis the same way and click on the plot button. You may open several ASCII files at a time for overplotting. You may also open the same file several times for overplotting different columns of that file. To zoom in, drag a rectangle, to zoom out a small amount, open the context menu (right button click) and click on "zoom out x-axis" or "zoom out y-axis", to zoom out completely, double-click with the left mouse button. Use the context menu for inserting or deleting annotations and save the view as postscript via "File->Save as postscript".