Matrix Interface: Surface plot of 2D data. |
- Parameters:
-
| [in] | X | 2D matrix with which to draw simple surface plot |
|
| handle | surface (const af::array &X) |
Matrix Interface: Visualize 2D velocity field with an array of arrows |
- Parameters:
-
| [in] | X0,Y0 | coordinates of points from which to draw |
| [in] | X1,Y1 | coordinates of points to which to draw |
|
| 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 |
- Parameters:
-
| [in] | X | matrix containing data to be visualized |
| [in] | linestyle | optional string indicating desired characteristics of 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 |
- Parameters:
-
| [in] | X | matrix containing horizontal data to be visualized |
| [in] | Y | matrix containing vertical data to be visualized |
| [in] | linestyle | optional string indicating desired characteristics of 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 |
array a(seq(10));
array b = a + randu(10);
plot3(a,b,a);
- Parameters:
-
| [in] | X | matrix containing X data to be visualized |
| [in] | Y | matrix containing Y data to be visualized |
| [in] | Z | matrix containing Z data to be visualized |
|
| 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);
volume(a);
- Parameters:
-
| [in] | X | 3D array to be volume rendered |
|
| handle | volume (const af::array &X) |
Matrix Interface: Visualize 2D data as single scale image |
If 3D and last dimension is three (3), it is treated as a color image with red, green, blue channels. array a(seq(10));
a = tile(a,1,10);
a += a.T();
image(a);
- Parameters:
-
| [in] | X | 2D matrix to be visualized |
- Note:
- Automatically scales palette based on min/max values
|
| 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 |
- Parameters:
-
| [in] | x | The horizontal position of the upper left corner of the figure |
| [in] | y | The vertical position of the upper left corner of the figure |
| [in] | w | The width of the figure |
| [in] | h | The height of the figure |
|
| handle | fig (int x, int y, int w, int h) |