Man page - xplot(1)
Packages contains this manual
Manual
XPLOT
NAMESYNOPSIS
DESCRIPTION
OPTIONS
XFORMS OPTIONS
USING XPLOT
SEE ALSO
AUTHOR
NAME
xplot - simple x-y column data plotter for X
SYNOPSIS
xplot [-v] [-title âtitlestringâ] [-format âformatstringâ] [-y âyrangeâ] [-display host:dpy] [-name appname] [-visual class] [-depth d] [-private] [-shared] [-stdcmap] [-debug l] [-sync] datafiles ...
DESCRIPTION
This manual page documents briefly the xplot command. This manual page was written for the Debian GNU/Linux distribution using the programâs intergrated help file because the original program does not have a manual page.
xplot is a small program to plot one- or twodimensional datasets, which are present either in a file or are generated âon-the-flyâ and piped to XPlot. XPlot lets you display one or more datasets and lets you zoom to different sections of the sets. Also. âblowupsâ of the currently shown portion of the data can be made.
xplot is meant for on-screen data exploration. It does not have a print button, nor is it meant for final output and publication-quality figures.
xplot is non longer actively maintained upstream. If you would like to take it over, talk to the author: Karel Kubat <karel@icce.rug.nl>.
OPTIONS
A summary of options are included below.
|
-v |
increases verbosity. XPlot prints information about what files are read and of how many points they consist when this flag is present. |
-title âtitlestringâ
defines the title for the plot (can also be set interactively).
-format âformatstringâ
The formatstring FORMAT is used to read in data. If youâre familiar with C, then you know what a formatstring is. The default formatstring is "%f %f ", meaning that XPlot should try to interpret each line as two numbers (%f, for âfloating point valueâ), separated by one or more whitespace characters. The -format flag can be handy if, e.g., you want to read in a file like
time 12.0 value
3
time 12.1 value 4
time 12.2 value 5
Youâd then have a format string
"time %f value %f "
Donât forget the trailing blank in the formatstring, it makes sure that the end-of-line character is skipped.
-y yrangeâ
This flag allows you to specify the range of the Y axis at startup. Normally XPlot determines the range from the read data. The YRANGE specifier must be in the form NUMBER:NUMBER (e.g., 0:13), where the first number specifies the lowest value of the Y axis, and the second number specifies the highest value.
XFORMS OPTIONS
XPlot is built
with the XForms Graphical User Interface Toolkit for X, and
hence supports a number of flags which are interpreted by
XForms. The flags must be stated before any file arguments,
and are:
-display host:dpy
defines the X display.
-name appname
defines the application name.
-visual class
TrueColor, PseudoColor etc...
-depth d
visual depth in bits
-private
forces a private colormap.
-shared
forces a shared colormap.
-stdcmap
forces a standard colormap.
-debug l
prints debugging information, l is the level.
|
-sync |
forces synchronous mode. |
USING XPLOT
The XPlot window
The main XPlot window is called the âControl windowâ. It lets you select boundaries for the plot, activate or deactivate cetain datasets, etc.. See further the subsections.
Boundaries of the plot
The main XPlot window (called Control) shows the datasets in a small plot, surrounded by sliders. Two sliders are provided per axis, one selecting the minimum value and one selecting the maximum value. E.g., if you want to see the middle portion of the plot, set the upper horizontal slider (the minimum X value to display) to about 1/3 of its length and set the lower horizontal slider to 2/3 of its length.
The boundaries of the plot can furthermore be entered in the input fields, below the small plot.
One last button, labeled âScale Yâ, affects the sizing of the graph. The button scales the Y axis to contain all points given a certain X range. The scaling of the Y axis is performed over all active datasets (you can also deactivate sets, see the appropriate section).
Selecting and deselecting datasets
When many datasets are plotted, it may be useful to deactivate (or later, reactivate) some of the sets. The button which is labeled â(De)activate setsâ, on the right hand side of the control window, starts a small window (called the âactivatorâ), showing an overview of the plotted sets. The names of the active sets are prefixed with [+], the inactive sets are prefixed with [-]. Clicking on the line with a name of a dataset âtogglesâ the activity: an active set becomes inactive and v.v..
Initially, all datasets are âactiveâ (i.e., displayed).
The activator stays on-screen until you click the âdismissâ button of the activator window.
Making larger plots: blowups
The buttons âstatic blowupâ and âdynamic blowupâ in the control window start a âblowupâ of the current plot: i.e. using the current borders and currently active sets. The blown up graph is dismissed by clicking in the blowup window. The blown up graph can be resized, e.g., to grab its contents in a paint program.
The difference between a static and a dynamic blowup is the following. A static blowup will remain to show the the plotted data even when you, e.g., deactivate a set or change the boundaries. A static blowup is handy when e.g. you want to compare one part of the data with another part: make a static plot of the first part, move to the second part, and compare. In contrast, a dynamic plot redraws its data whenever necessary; therefore, it is an âenlargementâ of the plot in the control window.
XPlot can create an unlimited number of blowups: that way, you can simultaneously view different sets with different boundaries in different blowups..
Line types of the plots
The radio buttons labelled âLine typesâ, on the right hand side of the control window, select the line types for the plotting of the datasets. All sets are plotted in the same style.
The default style, âsolid or circlesâ, plots a set either with a solid line, or with a solid line and circles on the separate points. The points are plotted when the graph contains less than 20 points: the idea here is that the presence of circles obfuscates a graph when more than 20 circles would be present in the graph.
Other styles force either solid lines, solid lines with circles, or solid lines with squares.
Postponed or immediate plotting
The button labeled âAuto-redrawâ, on the right hand side of the Control window, selects whether XPlot should redo a plot when any change occurs (e.g., when the boundaries are altered or when a linestyle is defined). Initially, auto-redraw is âonâ.
Setting auto-redraw to âoffâ is a good idea when you are plotting large datasets. The reason for this is that the replotting of all sets (e.g., when sliding one of the boundary sliders) may take too long. In this case, you can disable the automatic redrawing, and âmanuallyâ redraw the plot when you are satisfied with all necessary changes. The âmanual redrawâ is always done when you press the button labeled âRedraw nowâ.
Plot titles
The input field labeled âTitleâ, below the small plot on the Control window, lets you enter a title for the plot. XPlotâs title facility is restricted to one title, which als used in blowups. You might want to define a title, make a blowup, and dump it to say a printer using âxwdâ and related programs.
Quitting XPlot
The button labelled âdismissâ on the XPlot control window removes the control window from the screen. The XPlot program will only terminate when no blowups are on-screen. To quit XPlot, you need to remove all blowups (by clicking on them) and to click the âdismissâ button of the control window.
SEE ALSO
This text is also available on-line help by pressing xplotâs Help/About button.
AUTHOR
xplot V1.18 Copyright (c) ICCE / Karel Kubat 1995
This manual page by Peter S Galbraith <psg@debian.org> using info from /usr/share/xplot/xplot.help for the Debian GNU/Linux system (but may be used by others).