Scroll to navigation

PLSMEM(3plplot) PLplot API PLSMEM(3plplot)


plsmem - Set the memory area to be plotted (RGB)


plsmem(maxx, maxy, plotmem)


Set the memory area to be plotted (with the mem or memcairo driver) as the dev member of the stream structure. Also set the number of pixels in the memory passed in plotmem, which is a block of memory maxy by maxx by 3 bytes long, say: 480 x 640 x 3 (Y, X, RGB)

This memory will have to be freed by the user!

Redacted form: plsmem(maxx, maxy, plotmem)

This function is not used in any examples.


Size of memory area in the X coordinate.
Size of memory area in the Y coordinate.
Pointer to the beginning of a user-supplied writeable memory area.


Many developers (who are credited at have contributed to PLplot over its long history.


PLplot documentation at

August, 2021