Tkgraph Control Panel - Label Tab

Let's start by creating a new label on the page to test out. Press the Create Text button on the shortcut toolbar. Now click anywhere on the Canvas. The word foobar will be drawn to the right of where you click on the Canvas. Unlike other programs, Tkgraph does not draw a cursor on the page and allow you to type directly into the label. You must use the Control Panel to modify the contents of the label.

Looking at the Control Panel, we see that the buttons at the top of the Label tab are identical to those at the top of the XY Graphs tab, with the exception of a missing Autoscale button. The function of these buttons is identical. Please see the XY Graph Tab tutorial if you need a refresh on what these buttons do.

Looking at the properties for Labels, you'll notice one called Label Slant Angle. This property allows you to rotate the text by a certain angle, measured in degrees counterclockwise from the 3:00 position. Shift-click on the label on the Canvas to select it. You'll notice that the Label does not change in appearance as the XY Graph did when it was selected. Again, this may change in future versions of Tkgraph.

If you use the Show Current Values button in the Label tab, you'll see the values for our label get entered into the fields in the properties area. Go ahead and rotate the text, change it's value, and give it color. Don't worry about the Justification property for now. It's purpose is beyond the scope of this tutorial.

One reminder. If you want to move the label somewhere else on the page, you can use the Middle-click Canvas binding just as you did with the XY Graph. Simply position the cursor over the label until the label turns red, click and hold the middle mouse button, and drag the label to a new position.

The last Item type that we will look at is the Image type. Go to the Image tab in the Control Panel now.


[Prev] [Top] [Next]