A GridAxis is a Control
that acts like an interactive version of a scatterplot axis. It shows a numeric
interval which can be panned or zoomed using the keyboard or mouse.
Properties (Shift-Control-Click)
- Active
- Range - visible numeric interval
- Passive
- Foreground - color used to draw tick marks, numbers, and label
- Background - color used to fill the background
- Font - font used to draw numbers and label
Options (Control-Click)
- Toggle visibility of tick marks, numbers, and/or label.
- Format numbers
- Format label
- Set orientation (the side the the ticks are on)
The number format string looks like #0.00. Change the number of
digits by changing the number of zeroes in the string.
The label format string can contain arbitrary text, but the name of the
Range property will be substituted every place that {0}
appears in the string.
Mouse Interactions
- Drag (left/down) - pan negative
- Drag (right/up) - pan positive
- Shift-Drag (left/down) - zoom in
- Shift-Drag (right/up) - zoom out
Keyboard Interactions
- Pan negative, coarse (Left, Down)
- Pan positive, coarse (Right, Up)
- Pan negative, fine (Numpad2, Numpad4)
- Pan positive, fine (Numpad6, Numpad8)
- Zoom in, coarse (Shift-Left, Shift-Down)
- Zoom out, coarse (Shift-Right, Shift-Up)
- Zoom in, fine (Shift-Numpad2, Shift-Numpad4)
- Zoom out, fine (Shift-Numpad6, Shift-Numpad6)
- Center on zero (Home, Numpad5)