DrawSetFromOptions

Sets the graphics type from the options database. Defaults to a PETSc X windows graphics.

Synopsis

#include "petscdraw.h" 
int DrawSetFromOptions(Draw draw)
Collective on Draw

Input Parameter

draw -the graphics context

Options Database

-nox - do not use X graphics (ignore graphics calls, but run program correctly)
-nox_warning - when X windows support is not installed this prevents the warning message from being printed

Notes

Must be called after DrawCreate() before the Drawtor is used.

See Also

DrawCreate(), DrawSetType()

Level:intermediate
Location:
src/sys/src/draw/interface/drawreg.c
Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/src/matlabengine/examples/tutorialsex1.c