Object Reference : Object View and Procedure Reference : Graph
  
 
textdefault
Change default settings for text objects in the graph.
This command specifies changes in the default settings which will be applied to text objects added subsequently to the graph. If you include the “existing” option, all of the text default settings will also be applied to existing text objects in the graph.
Syntax
graph_name.textdefault text_options
where text_options include one or more of one of the following:
 
font([face], [pt], [+/- b], [+/- i], [+/- u], [+/- s])
Set characteristics of default text font. The font name (face), size (pt), and characteristics are all optional. face should be a valid font name, enclosed in double quotes. pt. should be the font size in points. The remaining options specify whether to turn on/off boldface (b), italic (i), underline (u), and strikeout (s) styles.
textcolor(arg)
Sets the default color of the text. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see Table::setfillcolor.
fillcolor(arg)
Sets the default background fill color of the text box. arg may be one of the predefined color keywords, or it may be made up ofn1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see Table::setfillcolor.
framecolor(arg)
Sets the default color of the text box frame. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see Table::setfillcolor.
existing
Apply the default settings to all existing text objects in the graph.
The options which support the “–” may be preceded by a “+” or “–” indicating whether to turn on or off the option. The “+” is optional.
Examples
graph1.textdefault font("Arial", b) fillcolor(gray) existing
changes the default text settings for new text objects so that new text is in Arial bold, using the current default font size and color. Should the new text be enclosed in a box, the box will have a gray fill. Additionally, the “existing” keyword specifies that existing text objects in the graph will be updated with the current text settings. Note that in addition to the font type and fill color specified in the command, all text default settings will be applied to the existing text.
graph1.textdefault existing
updates the text objects in GRAPH1 with the current text default settings.
Cross-references
See “Graph Objects” for a discussion of graph options.
See Graph::addtext and Graph::legend.