Line Options

This dialog allows modification of lines or arrows which have been created with either the Draw Arrow (Ctrl-Alt-A) or Draw Line (Ctrl-Alt-L) commands from the Graph Menu. The dialog can also be opened by double clicking on an arrow or line, or by right clicking a selected arrow or line and then selecting Properties... from the resulting pop-up menu. It can also be embedded into the Plot details dialog when you select a line/arrow from the list of objects in a 2D plot layer.

Line Tab

The Line tab of the dialog allows changing the color, the style of the line and the line width. Line width is set in pixels. The changes you make can be applied to the selected line, to all lines in the plot layer, to all lines in the active window or to all line objects from all plot windows, depending on the selection in the Apply to... box.

It is also possible to define a default style for all new lines by clicking the Set Default button.

Figure 5-25. The Line Options Dialog: Line Tab

Arrow Head Tab

The Arrow Head tab is used to modify the shapes of the arrow heads. Length is expressed in pixels and the angle in degrees. The changes can be applied to the selected line, to all lines in the plot layer, to all lines in the active window or to all line objects from all plot windows, depending on the selection in the Apply to... box.

It is also possible to define a default style for the arrow heads using the Set Default button.

Figure 5-26. The Line Options Dialog: Arrow Head Tab

Geometry Tab

The Geometry tab is used to specify the starting and ending points of the selected line/arrow. The coordinates can be set as a function of the scale values displayed on the left (Y) and bottom (X) axes, or in pixels, by choosing the desired method from the Unit pull-down list. Pixel coordinates are relative to the top-left corner of the layer which contains the line.

The Alignment list box can be used in order to link the X or Y coordinates for the start and end points. It provides the following options: None, Horizontal and Vertical. If set to Horizontal, the Y coordinates are linked else, if set to Vertical, the X coordinates are linked, meaning that after changing the coordinate of the start point, the same value will be automatically set to the end point and vice versa. QtiPlot marks the connection between the coordinates by displaying a chain icon close to the Y or X input boxes, respectively.

Figure 5-27. The Line Options Dialog: Geometry Tab

Axes Tab

The Axes tab is used to specify the axes to which the selected line/arrow is attached. The changes can be applied to the selected line, to all lines in the plot layer, to all lines in the active window or to all line objects from all plot windows, depending on the selection in the Apply to... box.

Figure 5-28. The Line Options Dialog: Axes Tab

Name Tab

The Name tab can be used in order to customize the default name of the arrow. The name is displayed in the plot details dialog or can be used to get a reference to the arrow object in Python scripts. Empty names are not allowed.

Figure 5-29. The Line Options Dialog: Name Tab