PetscViewerDrawResize — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscViewerDrawResize

Set the default width and height (in pixels) for `PetscDraw` windows created by a `PETSCVIEWERDRAW` viewer.

## Synopsis

    #include "petscdraw.h"
    #include "petscviewer.h"
    PetscErrorCode PetscViewerDrawResize(PetscViewer v, int w, int h)

Logically Collective

## Input Parameters

- v - the `PETSCVIEWERDRAW` viewer

- w - the new default window width in pixels; values less than 1 are ignored

- h - the new default window height in pixels; values less than 1 are ignored

## Note

If `v` is not a `PETSCVIEWERDRAW` viewer, the call is a no-op.

## See Also

`PetscViewer`, `PETSCVIEWERDRAW`, `PetscViewerDrawOpen()`, `PetscViewerDrawSetInfo()`

## Level

intermediate

## Location

src/sys/classes/viewer/impls/draw/drawv.c

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages