Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Eviews5 / EViews5 / Docs / EViews 5 Command Ref.pdf
Скачиваний:
91
Добавлен:
23.03.2015
Размер:
5.23 Mб
Скачать

276—Appendix B. Command Reference

displayname

Object Proc

 

 

Display names for objects.

Attaches a display name to an object which may be used in tables and graphs in place of the standard object name.

Syntax

Object Proc:

object_name.displayname display_name

Display names are case-sensitive, and may contain a variety of characters, such as spaces, that are not allowed in object names.

Examples

hrs.displayname Hours Worked

hrs.label

The first line attaches a display name “Hours Worked” to the object HRS, and the second line displays the label view of HRS, including its display name.

gdp.displayname US Gross Domestic Product

plot gdp

The first line attaches a display name “US Gross Domestic Product” to the series GDP. The line graph view of GDP from the second line will use the display name as the legend.

Cross-references

See “Labeling Objects” on page 80 of the User’s Guide for a discussion of labels and display names.

See also label (p. 330) and legend (p. 332)

do

Command

 

 

Execute without opening window.

Syntax

 

Command:

do procedure

do is most useful in EViews programs where you wish to run a series of commands without opening windows in the workfile area.

draw—277

Examples

output(t) c:\result\junk1

do gdp.adf(c, 4, p)

The first line redirects table output to a file on disk. The second line carries out a unit root test of GDP without opening a window, and prints the results to the disk file.

Cross-references

See also show (p. 470).

draw

Graph Proc

 

 

Place horizontal or vertical lines and shaded areas on the graph.

Syntax

Graph Proc:

graph_name.draw(draw_type, axis_id [,options]) position1

 

[position2]

where draw_type may be one of the following:

line / l

A line

 

 

shade

A shaded area

Note that the “dashline” option has been removed (though it is supported for backward compatibility). You should use the “pattern” option to specify whether the line is solid or patterned.

axis_id may take the values:

left / l

Draw a horizontal line or shade using the left axis to

 

define the drawing position

 

 

right / r

Draw a horizontal line or shade using the right axis to

 

define the drawing position

 

 

bottom / b

Draw a vertical line or shade using the bottom axis to

 

define the drawing position

 

 

If drawing a line, the drawing position is taken from position1. If drawing a shaded area, you must provide a position1 and position2 to define the boundaries of the shaded region.

278—Appendix B. Command Reference

Line/Shade Options

The following options may be provided to change the characteristics of the specified line or shade. Any unspecified options will use the default text settings of the graph.

color(arg)

Specifies the color of the line or shade. the argument

 

may be made up of n1, n2, and n3, a set of three inte-

 

gers from 0 to 255, representing the RGB values of the

 

line or shade, or it may be one of the predefined color

 

keywords (“blue”, “red”, “green”, “black”, “white”,

 

“purple”, “orange”, “yellow”, “gray”, “ltgray”). For a

 

full description of the keywords, see setfillcolor

 

(p. 453).

 

The default is black for lines and gray for shades. RGB

 

values may be examined by calling up the color palette

 

in the Graph Options dialog.

 

 

pattern(index)

Sets the line pattern to the type specified by index.

 

index can be an integer from 1 to 12 or one of the

 

matching keywords (“solid”, “dash1” through

 

“dash10”, “none”). See setelem (p. 449) for a descrip-

 

tion of the available patterns. The “none” keyword

 

turns on solid lines.

 

 

width(n1)

Specify the width, where n1 is the line width in points

 

(used only if object_type is “line” or “dashline”). The

 

default is 0.5 points.

 

 

Examples

graph1.draw(line, left, rgb(0,0,127)) 5.25

draws a horizontal blue line at the value “5.25” as measured on the left axis while:

graph1.draw(shade, right) 7.1 9.7

draws a shaded horizontal region bounded by the right axis values “7.1” and “9.7”. You may also draw vertical regions by using the “bottom” axis_id:

graph1.draw(shade, bottom) 1980:1 1990:2

draws a shaded vertical region bounded by the dates “1980:1” and “1990:2”.

graph1.draw(line, bottom, pattern(dash1)) 1985:1

draws a vertical dashed line at “1985:1”.

drawdefault—279

Cross-references

See Chapter 14, “Graphs, Tables, and Text Objects”, on page 413 of the User’s Guide for a discussion of graph options.

See drawdefault (p. 279) for setting defaults. See also “Graph” (p. 161) for a summary of the graph object command language.

drawdefault

Graph Proc

 

 

Change default settings for lines and shaded areas in the graph.

This command specifies changes in the default settings which will be applied to line and shade objects added subsequently to the graph. If you include the “existing” option, all of the drawing default settings will also be applied to existing line and shade objects in the graph.

Syntax

Graph Proc:

graph_name.drawdefault draw_options

where draw_options may include one or more of the following:

linecolor(arg)

Sets the default color for lines. The arg value may set by

 

using one of the color keywords (e.g., “blue”), or by

 

using the RGB values (e.g., “@RGB(255, 255, 0)”). For

 

a description of the available color keywords (“blue”,

 

“red”, “green”, “black”, “white”, “purple”, “orange”,

 

“yellow”, “gray”, “ltgray”). For a full description of the

 

keywords, see setfillcolor (p. 453).

 

 

shadecolor(arg)

Sets the default color for shades. 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, represent-

 

ing 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 setfillcolor (p. 453).

 

 

width(n1)

Specify the width, where n1 is the line width in points

 

(used only if object_type is “line” or “dashline”). The

 

default is 0.5 points.

 

 

Соседние файлы в папке Docs