:orphan: # PetscViewerDrawGetDrawAxis Returns a `PetscDrawAxis` object from a `PetscViewer` object of type `PETSCVIEWERDRAW`. This `PetscDrawAxis` object may then be used to perform graphics using `PetscDrawAxis` commands. ## Synopsis ``` #include "petscdraw.h" #include "petscviewer.h" PetscErrorCode PetscViewerDrawGetDrawAxis(PetscViewer viewer, PetscInt windownumber, PetscDrawAxis *drawaxis) ``` Collective ## Input Parameters - ***viewer -*** the `PetscViewer` (created with `PetscViewerDrawOpen()`) - ***windownumber -*** indicates which subwindow (usually 0) ## Output Parameter - ***drawaxis -*** the draw axis object ## Note A `PETSCVIEWERDRAW` may have multiple `PetscDraw` subwindows ## See Also [](sec_viewers), `PetscViewerDrawGetDraw()`, `PetscViewerDrawGetLG()`, `PetscViewerDrawOpen()` ## Level advanced ## Location src/sys/classes/viewer/impls/draw/drawv.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/draw/drawv.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)