:orphan: # PetscDrawBarGetAxis Gets the axis context associated with a bar graph. This is useful if one wants to change some axis property, such as labels, color, etc. The axis context should not be destroyed by the application code. ## Synopsis ``` #include "petscdraw.h" #include "petscviewer.h" PetscErrorCode PetscDrawBarGetAxis(PetscDrawBar bar, PetscDrawAxis *axis) ``` Not Collective, axis is parallel if bar is parallel ## Input Parameter - ***bar -*** The bar graph context ## Output Parameter - ***axis -*** The axis context ## See Also `PetscDrawBar`, `PetscDrawBarCreate()`, `PetscDrawBar`, `PetscDrawAxis`, `PetscDrawAxisCreate()` ## Level intermediate ## Location src/sys/classes/draw/utils/bars.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/utils/bars.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)