# PetscDrawViewPortsCreate

Splits a window into smaller view ports. Each processor shares all the viewports.

### Synopsis

    #include "petscdraw.h"
    PetscErrorCode  PetscDrawViewPortsCreate(PetscDraw draw,int nports,PetscDrawViewPorts **ports)

Collective on PetscDraw

### Input Parameter

draw -the drawing context

### Output Parameter

divide -a PetscDrawViewPorts context (C structure)

### See Also

PetscDrawSplitViewPort(), PetscDrawSetViewPort(), PetscDrawViewPortsSet(), PetscDrawViewPortsDestroy()

Level:advanced
Location: src/sys/draw/interface/dviewp.c
Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages