Algosim documentation: Diagram viewer

Diagram viewer

(See also: Scene viewer)

The diagram viewer displays diagrams with visual objects. Any number of diagram viewers can be present at the same time, each displaying either a named or an unnamed diagram.

Image 1

Each diagram viewer displays a diagram containing any number of visual objects which can individually be adjusted. The context menu of the diagram viewer contains a few options to manage the diagram:

“Restore initial view” restores the view (bounds of the axes) to the original state. The “Common views” submenu contains various often used presets.

“Centre at origin” translates the diagram so that the coordinate system’s origin is placed at the centre of the diagram viewer.

The “Normalize” submenu contains options that will normalize the view, meaning that one logical coordinate system unit in the horizontal direction will correspond to the same physical on-screen distance as one logical unit in the vertical direction. Less abstractly, this means that the unit circle x² + y² = 1 will be displayed as a circle and not a non-circular ellipse on the computer screen.

“Adjust horizontal” normalizes the view by altering its horizontal extent, keeping the vertical extent unchanged. Similarly, “Adjust vertical” normalizes the view by altering its vertical extent, keeping the horizontal extent unchanged.

“Auto-normalize” will automatically adjust the horizontal extent as the window containing the diagram viewer is resized.

“Settings” displays the Settings dialog box:

Image 2

Here you can adjust each visual object in the diagram.

“Save as SVG” lets you export the diagram as a Scalable Vector Graphics (SVG) image.

Mouse interface

Keyboard interface

Shortcut Description
Arrow keys Moves the view
Ctrl + Arrow keys Moves the view (high precision)
Shift + Arrow keys One-dimensional scaling of the view
Shift + Ctrl + Arrows One-dimensional scaling of the view
(high precision)
Ctrl + C Copies the diagram to clipboard as a
bitmap image
Ctrl + 0 Restores the initial view
Ctrl + 1 View preset: [−1, 1]²
Ctrl + 2 View preset: [−1, 1]² normalised
Ctrl + 3 View preset: [−10, 10]²
Ctrl + 4 View preset: [−10, 10]² normalised
Ctrl + 5 View preset: [−π, π] × [−1, 1]
S Opens the Size dialog

See also