# PetscDrawSetTitle
Sets the title of a `PetscDraw` context. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawSetTitle(PetscDraw draw, const char title[])
```
Collective on draw


## Input Parameters

- ***draw -*** the graphics context
- ***title -*** the title





## Notes
The title is positioned in the windowing system title bar for the window. Hence it will not be saved with -draw_save
in the image.

A copy of the string is made, so you may destroy the
title string after calling this routine.

You can use `PetscDrawAxisSetLabels()` to indicate a title within the window


## See Also
 `PetscDraw`, `PetscDrawGetTitle()`, `PetscDrawAppendTitle()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/draw.c.html#PetscDrawSetTitle">src/sys/classes/draw/interface/draw.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/image/drawimage.c.html#PetscDrawSetTitle_Image">PetscDrawSetTitle_Image in src/sys/classes/draw/impls/image/drawimage.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/win32/win32draw.c.html#PetscDrawSetTitle_Win32">PetscDrawSetTitle_Win32 in src/sys/classes/draw/impls/win32/win32draw.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/x/xops.c.html#PetscDrawSetTitle_X">PetscDrawSetTitle_X in src/sys/classes/draw/impls/x/xops.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/draw.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)  
