:orphan:
# PetscDrawLGSetDimension
Change the number of curves that are to be drawn. 
## Synopsis
```
#include "petscdraw.h"  
PetscErrorCode PetscDrawLGSetDimension(PetscDrawLG lg, PetscInt dim)
```
Logically Collective


## Input Parameters

- ***lg -*** the line graph context.
- ***dim -*** the number of curves.





## See Also
 `PetscDrawLGCreate()`, `PetscDrawLGGetDimension()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/utils/lgc.c.html#PetscDrawLGSetDimension">src/sys/classes/draw/utils/lgc.c</A>


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


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