next up previous contents
Next: Vector fields Up: Graphical presentations inside subgraphs Previous: Record labels in subgraphs

Data matrix in subgraphs

 

pmat set a data matrix for subgraphs
<graphic> name of the graphic structure
-n <name> name of the point matrix
-id <subgraph> the idendifier of a subgraph
-d <data> data to be displayed
[-sca <scaling>] scaling function, default=DATA
[-min <min>] minimum value
[-max <max>] maximum value
[-co <color>] color for the histogram bars
[-rgb] colors are displays as pseudo colors
pmat <graphic> -n <name> -id <subgraph> -rm Remove a data matrix

This command displays the values of the given data in a subgraph as a matrix. One row corresponds to one data record, and one column to one field, respectively. The values are displayed as gray levels or pseudo colors, depending on the flag -rgb. The scaling parameters define how the values are mapped to the colors. The values can be either integer or floating points.

Example (ex7.35): The following commands generate data using a sine function, create sequences of the values and show the sequences in the data matrix.

NDA> setdata -f d.i -vals 0=0.0; -t float -len 30
NDA> serie -d d -fout d.x
NDA> expr -fout d.x -expr 2 * 3.14 * FLOAT('d.x') / LEN("d.x");
NDA> expr -fout d.y -expr SIN('d.x');
NDA> select data -f d.y
NDA> concseq -d data -dout data1 -len 5
NDA> mkgrp win1
NDA> addsg win1
NDA> pmat win1 -n rm -id 0 -d data1
NDA> en win1 pmat

figure3591



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001