Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Unknown macro: {alias}

Name

tx2 — 2D text and legend display

Command contents

Display 2D text on the screen - tx2
Display 2D legend and text - tx2 legend


Name

tx2 — 2D text

Syntax

tx2 [textsize] [lle | lri | ule | uri | cur | ref | min *] | [*coor [screen] ] [nob] [poi] [col] [fol] [use] [let] [txt] text

Description

Display a 2D text on the screen. This text is unaffected by rotation, pan and zoom, but will be affetced by window resizing.

Arguments

textsize

Unknown macro: {indent}

Will display the text using text size relative to 1.

lle | lri | ule | uri txt text

Unknown macro: {indent}

Will display text in lower left | lower right | upper left | upper right corner of the screen.

cur | ref | min txt text

Unknown macro: {indent}

Will display text at cursor position | reference point | lower left of grid window. The reference point is set by the ref command.

let text

Unknown macro: {indent}

Display the text as individual letters at the points of the active datasets.

nob

Unknown macro: {indent}

No bold numbers.

nsh

Unknown macro: {indent}

No shadow on numbers.

ita

Unknown macro: {indent}

Italic numbers.

fam 1 | 2 | ... | 9

Unknown macro: {indent}

Use font family 1 / 2 / 3 /.../9

coor xcoor ycoor | xcoor ycoor zcoor

Unknown macro: {indent}

Position in world coordinates xcoor ycoor for fixed x y placement (not using the fol argument) or xcoor ycoor zcoor for using the fol argument.

screen xpix ypix

Unknown macro: {indent}

Position from lower left corner in pixel positions xpix ypix.

col whi | red | gre | ...

Unknown macro: {indent}

Select color for display.

col r g b

Unknown macro: {indent}

Select color for display using r g b values.

use

Unknown macro: {indent}

Use the current color.

fol

Unknown macro: {indent}

Use the follower for the text to follow the camera. In that case the command must know the x y and z coordinates to place the text. This is achieved with arguments cur or coor or poi.

poi pointnumber

Unknown macro: {indent}

Display the text in the poisition of point pointnumber of active data. Points are counted from 1.

txt text

Unknown macro: {indent}

To display a text, put it in braces or double quotes if the text contains spaces.

Related command object

Text presenter

The main command object for generating 2D text which also utilizes the tx2 command.

Examples

Ex.1: Two dimensional text

z                                                    ;# Erase screen
win demo                                             ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi                                          ;# Specify background color to white
tx2 1.5 lle col bla txt "Text examples"              ;# Lower left
tx2 screen 20 40 txt "Screen coordinates"            ;# Using screen coordinates
tx2 1.2 coor 447000 6455000 txt "World coordinates"  ;# Using world coordinates
tx2 1.5 cur txt "Cursor position"                    ;# At cursor position

The above example produces this image.


Text examples

See also

txt - 3D text, axe - Axes display


Name

tx2 legend — 2D legend and text

Syntax

tx2 [textsize] [ boxboxsize] [nfr | onlytxt | lef | cur | space | xwid | ywid | xad | yad] [coor [screen] ] [col] [tcol] [txt] text

Unknown macro: {pagebreak}
  • No labels