plfill: Draw filled polygon

The PLplot Plotting Library: Programmer's Reference Manual
Prev | Chapter 17. The Common API for PLplot | Next

### `plfill`: Draw filled polygon

`plfill` (n, x, y);

Fills the polygon defined by the ``n`` points `(`x`[i], `y`[i])` using the pattern defined by `plpsty` or `plpat`. The routine will automatically close the polygon between the last and first vertices. If multiple closed polygons are passed in ``x`` and ``y`` then `plfill` will fill in between them.

`n` (`PLINT`, input) Number of vertices in polygon. `x` (`PLFLT *`, input) Pointer to array with x coordinates of vertices. `y` (`PLFLT *`, input) Pointer to array with y coordinates of vertices.

Redacted form: `plfill(x,y)`

This function is used in examples 12,13,15,16,21,24,25.

Prev | Home | Next
`plfamadv`: Advance to the next family file on the next new page | Up | `plfill3`: Draw filled polygon in 3D