:orphan:
# PetscDrawBarSetFromOptions
Sets options related to the display of the `PetscDrawBar` 
## Synopsis
```
#include "petscdraw.h" 
#include "petscviewer.h" 
PetscErrorCode PetscDrawBarSetFromOptions(PetscDrawBar bar)
```
Collective over bar


## Options Database Key

- ***-bar_sort -*** sort the entries before drawing the bar graph





## Note
Does not set options related to the underlying `PetscDraw` or `PetscDrawAxis`


## See Also
 `PetscDrawBar`, `PetscDrawBarDestroy()`, `PetscDrawBarCreate()`, `PetscDrawBarSort()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/utils/bars.c.html#PetscDrawBarSetFromOptions">src/sys/classes/draw/utils/bars.c</A>


---
[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)  
