`plAlloc2dGrid`: Allocate a block of memory for use as a 2-d grid of type PLFLT.
Prev | Chapter 19. The Specialized C API for PLplot | Next

#### `plAlloc2dGrid`: Allocate a block of memory for use as a 2-d grid of type PLFLT.

`plAlloc2dGrid (` | f,
| nx,
| ny`)`;

Allocates a block of memory for use as a 2-d grid of type PLFLT. The grid is a vectored 2-d C-style array and so can be accessed using syntax like `*f[i][j]`. The memory associated with the grid must be freed by calling `plFree2dGrid` once it is no longer required.

`f` (`PLFLT ***`, output)

  Pointer to a PLFLT grid. On success `f` will point to a pointer to the vectored 2-d array of type PLFLT. If the allocation fails `f` will be NULL.

`nx, ny` (`PLINT`, input)

  Dimensions of grid to be allocated.

This function is currently available in C, C++, perl and tk.

This function is used in examples 8, 9, 11, 14, 16, 20, 21, 22, 28, 30.

Prev | Up | Next
Chapter 19. The Specialized C API for PLplot | Home | `plClearOpts`: Clear internal option table info structure.