:orphan: # PetscDrawGetType Gets the `PetscDraw` type as a string from the `PetscDraw` object. ## Synopsis ``` #include "petscdraw.h" #include "petscviewer.h" PetscErrorCode PetscDrawGetType(PetscDraw draw, PetscDrawType *type) ``` Not Collective ## Input Parameter - ***draw -*** Krylov context ## Output Parameter - ***name -*** name of PetscDraw method ## See Also `PetscDraw`, `PetscDrawType`, `PetscDrawSetType()`, `PetscDrawCreate() ## Level advanced ## Location src/sys/classes/draw/interface/drawreg.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/drawreg.c) [Index of all Draw routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)