Documentation
|
|
Matrix Interface: Surface plot of 2D data. | ||||
| ||||
| handle | surface (const af::array &X) | |||
Matrix Interface: Visualize 2D velocity field with an array of arrows | |||||||
|
array a(seq(10));
//create arrows along the diagonal
//the arrows rotate around the unit circle
// using existing 2D flow matrices u,v
// ...
// create x,y map for indexing
array xx = tile(array(seq(u.dims(1))).T(),u.dims(0),1);
array yy = tile(array(seq(v.dims(0))),1,v.dims(1));
// draw 2D flow field
arrows(xx,yy,u,v);
| |||||||
| handle | arrows (const af::array &X0, const af::array &Y0, const af::array &X1, const af::array &Y1) | ||||||
Matrix Interface: Visualize 1D data as a line plot | |||||||
| |||||||
| handle | plot2 (const af::array &X) | ||||||
| handle | plot2 (const af::array &X, const char *linestyle) | ||||||
Matrix Interface: Visualize 2D data as a line plot | ||||||||||
| ||||||||||
| handle | plot2 (const array &X, const array &Y) | |||||||||
| handle | plot2 (const array &X, const array &Y, const char *linestyle) | |||||||||
Matrix Interface: Visualize 3D data as scatter plot | ||||||||||
| ||||||||||
| handle | plot3 (const af::array &X, const af::array &Y, const af::array &Z) | |||||||||
Matrix Interface: Visualize 3D data volume | ||||
|
array a( seq( 0, 0.1, 1 ) );
a = tile(a, 1, 10, 10);
//a is symmetric in the y and z dimensions and increases along the x dimension
volume(a);
| ||||
| handle | volume (const af::array &X) | |||
Matrix Interface: Visualize 2D data as single scale image | ||||
If matrix is 3D (last dimension size is 3), it is treated as a color image with red, green, blue channels.
| ||||
| handle | image (const af::array &X) | |||
Display a figure window | |
| |
| handle | fig (const char *key, const char *val=NULL) |
Create figure with tiled layout. | |
| handle | fig (const char *key, int nx, int ny, int i) |
Display the current figure with given geometry | |||||||||||||
| |||||||||||||
| handle | fig (int x, int y, int w, int h) | ||||||||||||
| handle af::arrows | ( | const af::array & | X0, |
| const af::array & | Y0, | ||
| const af::array & | X1, | ||
| const af::array & | Y1 | ||
| ) |
| handle af::plot2 | ( | const array & | X, |
| const array & | Y | ||
| ) |
| handle af::plot2 | ( | const array & | X, |
| const array & | Y, | ||
| const char * | linestyle | ||
| ) |
| handle af::fig | ( | const char * | key, |
| const char * | val = NULL |
||
| ) |
| handle af::fig | ( | const char * | key, |
| int | nx, | ||
| int | ny, | ||
| int | i | ||
| ) |
| handle af::fig | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |