Lines Matching refs:yr

25 …orCode PetscDrawSetViewPort(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr)  in PetscDrawSetViewPort()  argument
29yr <= 1.0 && xr > xl && yr > yl, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "ViewPort values must … in PetscDrawSetViewPort()
33 draw->port_yr = yr; in PetscDrawSetViewPort()
34 PetscTryTypeMethod(draw, setviewport, xl, yl, xr, yr); in PetscDrawSetViewPort()
62 …de PetscDrawGetViewPort(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, PetscReal *yr) in PetscDrawGetViewPort() argument
69 PetscAssertPointer(yr, 5); in PetscDrawGetViewPort()
73 *yr = draw->port_yr; in PetscDrawGetViewPort()
95 PetscReal xl, xr, yl, yr, h; in PetscDrawSplitViewPort() local
111 yr = yl + h; in PetscDrawSplitViewPort()
114 PetscCall(PetscDrawLine(draw, xl, yl, xl, yr, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
115 PetscCall(PetscDrawLine(draw, xl, yr, xr, yr, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
116 PetscCall(PetscDrawLine(draw, xr, yr, xr, yl, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
124 draw->port_yr = yr - .05 * h; in PetscDrawSplitViewPort()
126 PetscTryTypeMethod(draw, setviewport, xl, yl, xr, yr); in PetscDrawSplitViewPort()
158 PetscReal *xl, *xr, *yl, *yr, h; in PetscDrawViewPortsCreate() local
183 PetscCall(PetscMalloc4(n * n, &xl, n * n, &xr, n * n, &yl, n * n, &yr)); in PetscDrawViewPortsCreate()
187 ports->yr = yr; in PetscDrawViewPortsCreate()
195 yr[i] = yl[i] + h; in PetscDrawViewPortsCreate()
198 PetscCall(PetscDrawLine(draw, xl[i], yl[i], xl[i], yr[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
199 PetscCall(PetscDrawLine(draw, xl[i], yr[i], xr[i], yr[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
200 PetscCall(PetscDrawLine(draw, xr[i], yr[i], xr[i], yl[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
207 yr[i] -= .05 * h; in PetscDrawViewPortsCreate()
239 PetscReal *xl, *xr, *yl, *yr, hx, hy; in PetscDrawViewPortsCreateRect() local
266 PetscCall(PetscMalloc4(n, &xl, n, &xr, n, &yl, n, &yr)); in PetscDrawViewPortsCreateRect()
270 ports->yr = yr; in PetscDrawViewPortsCreateRect()
281 yr[k] = yl[k] + hy; in PetscDrawViewPortsCreateRect()
284 PetscCall(PetscDrawLine(draw, xl[k], yl[k], xl[k], yr[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
285 PetscCall(PetscDrawLine(draw, xl[k], yr[k], xr[k], yr[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
286 PetscCall(PetscDrawLine(draw, xr[k], yr[k], xr[k], yl[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
293 yr[k] -= .05 * hy; in PetscDrawViewPortsCreateRect()
324 PetscCall(PetscFree4(ports->xl, ports->xr, ports->yl, ports->yr)); in PetscDrawViewPortsDestroy()
351 …cDrawSetViewPort(ports->draw, ports->xl[port], ports->yl[port], ports->xr[port], ports->yr[port])); in PetscDrawViewPortsSet()