PetscDrawAxisSetLabels#

Sets the x and y axis labels.

Synopsis#

#include "petscdraw.h"  
PetscErrorCode PetscDrawAxisSetLabels(PetscDrawAxis axis, const char top[], const char xlabel[], const char ylabel[])

Logically Collective

Input Parameters#

  • axis - the axis

  • top - the label at the top of the image

  • xlabel - the x axis label

  • ylabel - the y axis label

Notes#

Must be called before PetscDrawAxisDraw() or PetscDrawLGDraw()

There should be no newlines in the arguments

See Also#

PetscDraw, PetscDrawAxisCreate(), PetscDrawAxis, PetscDrawAxisSetColors(), PetscDrawAxisDraw(), PetscDrawAxisSetLimits()

Level#

advanced

Location#

src/sys/classes/draw/utils/axisc.c

Examples#

src/ksp/ksp/tutorials/ex68.c
src/ksp/ksp/tutorials/ex69.c


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