PetscDrawLine#
draws a line onto a drawable.
Synopsis#
#include "petscdraw.h"
PetscErrorCode PetscDrawLine(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl)
Not Collective
Input Parameters#
draw - the drawing context
xl - horizontal coordinate of first end point
yl - vertical coordinate of first end point
xr - horizontal coordinate of second end point
yr - vertical coordinate of second end point
cl - the colors of the endpoints
See Also#
PetscDraw
, PetscDrawArrow()
, PetscDrawLineSetWidth()
, PetscDrawLineGetWidth()
, PetscDrawRectangle()
, PetscDrawTriangle()
, PetscDrawEllipse()
,
PetscDrawMarker()
, PetscDrawPoint()
Level#
beginner
Location#
Implementations#
PetscDrawLine_Image() in src/sys/classes/draw/impls/image/drawimage.c
PetscDrawLine_Null() in src/sys/classes/draw/impls/null/drawnull.c
PetscDrawLine_TikZ() in src/sys/classes/draw/impls/tikz/tikz.c
PetscDrawLine_Win32() in src/sys/classes/draw/impls/win32/win32draw.c
PetscDrawLine_X() in src/sys/classes/draw/impls/x/xops.c
Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages