# PETSC_DRAW_X
PETSc graphics device that uses either X windows or its virtual version Xvfb 
## Options Database Keys

- ***-display <display> -*** sets the display to use
- ***-x_virtual -*** forces use of a X virtual display Xvfb that will not display anything but -draw_save will still work.
Xvfb is automatically started up in PetscSetDisplay() with this option
- ***-draw_size w,h -*** percentage of screen (either 1, .5, .3, .25), or size in pixels
- ***-geometry x,y,w,h -*** set location and size in pixels
- ***-draw_virtual -*** do not open a window (draw on a pixmap), -draw_save will still work
- ***-draw_double_buffer -*** avoid window flickering (draw on pixmap and flush to window)





## See Also
 `PetscDraw`, `PetscDrawOpenX()`, `PetscDrawSetDisplay()`, `PetscDrawSetFromOptions()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/x/xops.c.html#PETSC_DRAW_X">src/sys/classes/draw/impls/x/xops.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/impls/x/xops.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
