Object Reference : Object View and Procedure Reference : Graph
  
 
name
Change the names used for legends or axis labels in XY graphs.
Allows you to provide an alternative to the names used for legends or for axis labels in XY graphs. The name command is available only for single graphs and will be ignored in multiple graphs.
Syntax
graph_name.name(n) legend_text
Provide a series number in parentheses and legend_text for the legend (or axis label) after the keyword. If you do not provide text, the current legend will be removed from the legend/axis label.
Examples
graph g1.line(d) unemp gdp
g1.name(1) Civilian unemployment rate
g1.name(2) Gross National Product
The first line creates a line graph named G1 with dual scale, no crossing. The second line replaces the legend of the first series UNEMP, and the third line replaces the legend of the second series GDP.
graph g2.scat id w h
g2.name(1)
g2.name(2) weight
g2.name(3) height
g2.legend(l)
The first line creates a scatter diagram named G2. The second line removes the legend of the horizontal axis, and the third and fourth lines replace the legends of the variables on the vertical axis. The last line moves the legend to the left side of the graph.
Cross-references
See “Graph Objects” for a discussion of working with graphs.
See also Graph::displayname.