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

setheight—461

setheight

Table Proc

 

 

Set the row height of rows in a table.

Syntax

Table Proc:

table_name.setheight(row_range) height_arg

where row_range is either a single row number (e.g., “5”), a colon delimited range of rows (from low to high, e.g., “3:5”), or the “@ALL” keyword, and height_arg specifies the height unit value, where height units are specified in character heights. The character height is given by the font-specific sum of the units above and below the baseline and the leading, where the font is given by the default font for the current table (the EViews table default font at the time the table was created). height_arg values may be non-integer values with resolution up to 1/10 of a height unit.

Examples

tab1.setheight(2) 1

sets the height of row 2 to match the table font character height, while:

tab1.setheight(2) 1.5

increases the row height to 1-1/2 character heights.

Similarly, the command:

tab1.setheight(2:4) 1

sets the heights for rows 2 through 4.

Cross-references

For additional discussion of tables see Chapter 4, “Working with Tables”, beginning on page 47.

For details on setting the column widths in a table, see setwidth (p. 468).

462—Appendix B. Command Reference

setindent

Alpha Proc | Coef Proc | Group Proc | Matrix Proc | Series Proc | Rowvector Proc | Sym Proc | Table Proc | Vector Proc

Set the display indentation for cells in object spreadsheet and table views.

Syntax

Group Proc:

group_name.setindent(col_range) indent_arg

Table Proc:

table_name.setindent(cell_range) indent_arg

Object Proc:

object_name.setindent indent_arg

where indent_arg is an indent value specified in 1/5 of a width unit. The width unit is computed from representative characters in the default font for the current table (the EViews table default font at the time the table was created), and corresponds roughly to a single character. Indentation is only relevant for non-center justified cells.

The default value is taken from the Global Defaults at the time the view or table is created.

The col_range option is used to describe the columns to be updated in groups and the cell_range defines the cells to be modified in tables. For all other objects, setformat operates on all of the cells in the object. See setformat (p. 456) for the syntax for group col_range and table cell_range specifications.

Examples

To set the justification for a series or a matrix object:

ser1.setindent 2

matrix1.setindent top 4

For groups, you should provide the column identifier, and the format. The commands,

group1.setindent(2) 3

group1.setindent(c) 2

set the formats for the second and third series in the group, while:

group2.setindent(@all) 3

sets formats for all of the series.

For tables, you must provide a valid cell specification:

tab1.setindent(@all) 2

tab1.setindent(2,B,10,D) 4

tab1.setindent(R2C2:R4C4) 2

setjust—463

Cross-references

For additional discussion of tables see Chapter 4, “Working with Tables”, on page 47.

See setwidth (p. 468) and setjust (p. 463) for details on setting spreadsheet and table widths and justification.

setjust

Alpha Proc | Coef Proc | Group Proc | Matrix Proc | Series Proc | Rowvector Proc | Sym Proc | Table Proc | Vector Proc

Set the display justification for cells in object spreadsheet and table views.

Syntax

Group Proc:

group_name.setjust(col_range) format_arg

Table Proc:

table_name.setjust(cell_range) format_arg

Object Proc:

object_name.setjust format_arg

where format_arg is a set of arguments used to specify format settings. You should enclose the format_arg in double quotes if it contains any spaces or delimiters.

The col_range option is used to describe the columns to be updated in groups and the cell_range defines the cells to be modified in tables. For all other objects, setformat operates on all of the cells in the object. See setformat (p. 456) for the syntax for group col_range and table cell_range specifications.

The format_arg may be formed using the following:

top / middle /

Vertical justification setting.

bottom]

 

 

 

auto / left /

Horizontal justification setting. “Auto” uses left justifi-

center / right

cation for strings, and right for numbers.

You may enter one or both of the justification settings. The default settings are object specific: series and matrix object defaults are taken from the Global Defaults for spreadsheet views; table defaults are taken from the original view when created by freezing a view, or as “middle bottom” for newly created tables.

Examples

To set the justification for a series or a matrix object:

ser1.setjust middle

matrix1.setjust top left

For groups, you should provide the column identifier, and the format. The commands,

464—Appendix B. Command Reference

group1.setjust(2) bottom center

group1.setjust(c) center middle

set the formats for the second and third series in the group, while:

group2.setjust(@all) right

sets all of the series formats.

For tables, you must provide a valid cell specification:

tab1.setjust(@all) top

tab1.setjust(2,B,10,D) left bottom

tab1.setjust(R2C2:R4C4) right top

Cross-references

For additional discussion of tables see Chapter 4, “Working with Tables”, on page 47.

See setwidth (p. 468) and setindent (p. 462) for details on setting spreadsheet and table widths and indentation.

setline

Command

 

 

Place a double horizontal line in a table.

Provided for backward compatibility. For a more general method of setting the line characteristics and borders for a set of table cells, see the table proc setlines (p. 465).

Syntax

Command: setline(table_name, r)

Options

Specify the name of the table and the row number r in which to place the horizontal line.

Examples

setline(tab3,8)

places a (double) horizontal line in the eighth row of the table object TAB3.

Cross-references

Chapter 4, “Working with Tables”, on page 47 describes table formatting using commands. See also Chapter 14, “Graphs, Tables, and Text Objects”, on page 413 of the User’s Guide for a discussion and examples of table formatting in EViews.

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