How do I start ChIPS?
The Starting ChIPS thread provides information on how to start ChIPS. If you have CIAO installed and initialized you can just use the chips command which will display a banner and then leave you at an interactive prompt at which you can enter any ChIPS or other Python command. Please see the How do I create a plot from ChIPS in a script? entry for using ChIPS in a non-interactive manner.
unix% chips ----------------------------------------- Welcome to ChIPS: CXC's Plotting Package ----------------------------------------- CIAO 4.9 ChIPS version 1 Friday, December 2, 2016 chips-1>
Note that, unlike some plotting packages, you can edit, add to, or delete from your visualization at the command line and the display will be updated. The undo and redo commands allow you to easily correct any mistakes, and a GUI is available for editing properties of your visualization.
An example session, plotting the curvey = exp(-x/2) * sin(5x)
is shown below:
where the last line is needed to hide the symbols drawn at each point (by default symbols are drawn at the vertexes of the data and lines drawn between them). At this point the screen display looks like:
The GUI can be started with a command - as shown below - or by bringing up the right-mouse menu over the ChIPS window; from the GUI the properties of the visualization can be inspected, changed, or deleted.
Various output formats are supported; here a PNG version is created. Note that the foreground and background colors are automatically swapped from the on-screen version (this can be changed by setting the appropriate preference settings).
The default for the window.smoothing attribute has been changed to true in CIAO 4.7. This may require deleting the ~/.chips.rc file to see; that is, if the following does not display true:
chips> !grep smoothing ~/.chips.rc window.smoothing : true
The smoothing attribute determines whether the "bitmap" verions of a plot - that is, on screen and PNG or JPEG output - have any form of anti-aliasing. This can be seen by comparing the output of
chips> add_window(['id', 'smooth', 'smoothing', True]) chips> add_window(['id', 'none', 'smoothing', False]) chips> current_window('all') chips> add_curve(x, y, ['symbol.style', 'none'])
The difference can be seen on screen
and in the PNG (or JPEG) output
Note that the smoothing attribute of a window can not be changed after the window has been created.