# PetscViewerDrawGetDrawLG

Returns PetscDrawLG object from PetscViewer object. This PetscDrawLG object may then be used to perform graphics using PetscDrawLGXXX() commands.

### Synopsis

    #include "petscdraw.h"
    int PetscViewerDrawGetDrawLG(PetscViewer viewer,int windownumber,PetscDrawLG *drawlg)

Not Collective (but PetscDrawLG object will be parallel if PetscViewer is)

### Input Parameter

| PetscViewer | - the PetscViewer (created with PetscViewerDrawOpen())
| windownumber | - indicates which subwindow (usually 0)

### Ouput Parameter

draw -the draw line graph object

### See Also

PetscViewerDrawGetDraw(), PetscViewerDrawGetAxis(), PetscViewerDrawOpen()

Level:intermediate
Location: src/sys/src/viewer/impls/draw/drawv.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages