Epics Applications using PyEpics

Table Of Contents

Previous topic

Area Detector Display

Next topic

Using Epics Instruments

This Page

Strip Chart Display

StripChart is a wxPython GUI application for viewing time traces of PVs as a strip chart. It feature interactive graphics, with click-and-drag zooming, updating the plotted time range, saving figures as high-quality PNGs, and saving data to ASCII files. Stripchart is inspired somewhat by the classic Epics Stripchart application written with X/Motif, but has many differences.

Dependencies, Installation

This application needs pyepics, numpy, matplotlib, and wxPython.

It also the wxmplot plotting library, which can be found at http://pypi.python.org/pypi/wxmplot/, with development versions at http://github.com/newville/wxmplot/ and may be installed wth:

easy_install -U wxmplot

Installation of the striphart can be done with:

python setup.py install

Running Stripchart

To run this application, simply run stripchart.py at the command line:

python pyepics_stripchart.py

and enter the base name of the PVs to follow. A sample display would look like this:

_images/StripChart_Basic.png

Usage

Plot details can be adjusted from the configuration form, available from the Options Menu, and shown below. From this frame, you can adjust trace colors, symbols, line width and style, symbol size and styles, axes labels, and the contents and location of a plot legend. Text for titles, axes labels, and legend can include latex strings for math/Greek characters.

From the main plot, Ctrl-C works to copy to the system clipboard, and Ctrl-P will open a print dialog.

_images/StripChart_Config.png