Manipulating Plot Layout
Prev
Next

Manipulating Plot Layout

View objects in a Kst window are arranged in layers. Each object is positioned on one layer, and each layer contains only one object. Thus, view objects can overlap, with plots in higher layers taking precedence in visibility over those in lower ones. To change the layout of plots in Kst, layout mode must be activated. Layout mode can be toggled by selecting Layout Mode from the Plots menu.

Moving and Resizing View Objects

Moving and resizing view objects in layout mode is analogous to moving and resizing regular windows. To move a plot, simply click anywhere on the desired plot and drag the plot. An outline of the plot will appear, indicating where the plot will be placed, as shown in the following image.

moving_outline

You can drag plots anywhere within the current window. To resize a plot, move the mouse cursor to any edge or corner of the plot. The cursor will change to indicate that the plot can be resized. Click and drag the outline of the plot until the plot is the desired shape and size.

Layout Mode Context Menu

While layout mode is activated, right-clicking on any view object displays the basic context menu with several additional options. The selections available in this menu are listed below.


layout ContextMenu
Raise

Raises the plot one layer up.

Lower

Lowers the plot one layer down.

Raise to Top

Raises the plot to the top-most layer, guaranteeing that it will be visible.

Lower to Bottom

Lowers the plot to the bottom-most layer.

Move To

Selecting a window name from this submenu moves the plot to the window with the corresponding name.

Copy To

Selecting a window name from this submenu copies the plot to the window with the corresponding name.

If multiple view objects are selected in data mode, additional context menu items become available.

Selecting Multiple View Objects and Grouping

Two or more view objects can be selected together in layout mode. To select the objects, hold down the Shift key and either sequentially click on each you wish to select, or drag to draw a dotted rectangle around a group of view objects. The selected objects will be indicated by corner highlights, as shown below. Multiple selection allows you to move several view objects simultaneously by dragging any single object that is part of the selection. In addition, the layout mode context menu contains three additional items when multiple objects are selected. These items are described below.


select_multiple
Condense Selected

This option is available if the view objects which are selected are all plots. Selecting the X-axis or Y-axis options from this submenu removes either the X axis of the upper plot(s) or the Y axis of the rightmost plot(s) respectively. Note: this option does not rescale the plot data, so make sure that the original axes scales for all the plots are identical.

Make Same

Resizes all the selected objects in the chosen dimension(s) to match the dimension(s) of the view object from which the context menu was invoked. For example, right-clicking on a plot in the group and selecting Make Same->Width will match the width of all the plots in the group to the width of the first plot. If Size is chosen, both the width and height of each object in the selection will change.

Align

Aligns all objects in the selection to the object directly underneath the context menu. Select from Left, Right, Top, or Bottom.

Pack (submenu)

The Pack submenu contains two functions. Pack Horizontally divides the entire width of the object group evenly between the individual object widths, while Pack Vertically divides the entire height of the group evenly between the individual heights. Packing plots usually results in a staggered or “checkered” pattern. To align the plots in a grid, use the Cleanup Layout function of the layout mode context menu.

Group Objects

Groups all the selected objects together. A group of view objects can be resized or moved as a whole in the same way the layout of a object can be changed. Grouped plots remain grouped even when not in layout mode, so the Maximize or Delete functions of the plot context menu can be used on an entire group of plots.

To dissociate a group, simply right-click on the group and select Ungroup.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team