PPlot supports some useful interactivity. It is possible to zoom, show
a cross-hair, and if enabled to select and edit data.
Zooming
Zooming is done with the mouse.
Click somewhere
drag the mouse to the somewhere else ...
... and release the mouse button.
Zooming out is easy: just click somewhere on the plot.
There are three zoommodes: rectangle, x, and y. You can select between
them with the following key combinations
ctrl-r: rectangle zoom mode
ctrl-x: zoom x-only
ctrl-y: zoom y-only
The table below shows the behaviour of the various zoom modes for a
drag starting at about (-50,-1) and ending at approximately (50,1)
mode
zoom-rectangle
zoom-x
zoom-y
dragging
dragging
done
Cross hair
If you press ctrl-shift , you will se a cross hair at the current mouse
position. Example
Selecting data
(To enable data selection you have to provide a new PlotDataSelection
object to your call to AddXYPlot, see DemoPlot 8.)
With shift-click with the mouse near a plot all points of that plot
will be selected.
With control-click you can (de-select) individual points.
none
shift-click: all
ctrl-click: toggle individual
points
The control-a key you select all data of all plots.
Editing data
Select data as explained above. With the cursor keys (arrow-up and
arrow-down) you can move the selected points vertically. Pressing the
control button increases the step size.