Home
last modified time | relevance | path

Searched refs:PetscDrawLine (Results 1 – 23 of 23) sorted by relevance

/petsc/src/sys/classes/draw/tests/
H A Dex7.c31 PetscCall(PetscDrawLine(draw, 0, 0, 0, 0, r)); in main()
32 PetscCall(PetscDrawLine(draw, w, 0, w, 0, r)); in main()
33 PetscCall(PetscDrawLine(draw, 0, h, 0, h, r)); in main()
34 PetscCall(PetscDrawLine(draw, w, h, w, h, r)); in main()
36 PetscCall(PetscDrawLine(draw, 0 + 2, 0, w - 2, 0, k)); in main()
37 PetscCall(PetscDrawLine(draw, 0 + 2, h, w - 2, h, k)); in main()
38 PetscCall(PetscDrawLine(draw, 0, 0 + 2, 0, h - 2, k)); in main()
39 PetscCall(PetscDrawLine(draw, w, 0 + 2, w, h - 2, k)); in main()
41 PetscCall(PetscDrawLine(draw, 0 + 2, h / 2, w - 2, h - 2, b)); in main()
42 PetscCall(PetscDrawLine(draw, 0 + 1, h - 1, w - 1, 0 + 1, b)); in main()
H A Dex10.c24 PetscCall(PetscDrawLine(draw, 0.0, 0.0, 1.0, 1.0, PETSC_DRAW_BLACK)); in main()
33 PetscCall(PetscDrawLine(draw, 0.0, 1.0, 1.0, 0.0, PETSC_DRAW_BLUE)); in main()
H A Dex2.c20 PetscCall(PetscDrawLine(draw, 0.0, y, 1.0, y, i % 256)); in main()
H A Dex4f.F9027 PetscCall(PetscDrawLine(draw, zero, value, one, value, i, ierr))
H A Dex4.c23 PetscCall(PetscDrawLine(draw, 0.0, y, 1.0, y, i)); in zoomfunction()
H A Dex1.c19 PetscCall(PetscDrawLine(draw, 0.0, 0.0, 1.0, 1.0, PETSC_DRAW_BLACK)); in main()
/petsc/src/sys/classes/draw/interface/
H A Ddviewp.c114 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()
117 PetscCall(PetscDrawLine(draw, xr, yl, xl, yl, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
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()
201 PetscCall(PetscDrawLine(draw, xr[i], yl[i], xl[i], yl[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
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()
[all …]
H A Ddtext.c157 PetscCall(PetscDrawLine(draw, left, top, right, top, bc)); in PetscDrawStringBoxed()
158 PetscCall(PetscDrawLine(draw, left, bottom, left, top, bc)); in PetscDrawStringBoxed()
159 PetscCall(PetscDrawLine(draw, right, bottom, right, top, bc)); in PetscDrawStringBoxed()
160 PetscCall(PetscDrawLine(draw, left, bottom, right, bottom, bc)); in PetscDrawStringBoxed()
H A Ddtri.c103 …for (i = 0; i < ctx->m; i++) PetscCall(PetscDrawLine(win, ctx->x[i], ctx->y[0], ctx->x[i], ctx->y[… in PetscDrawTensorContour_Zoom()
104 …for (i = 0; i < ctx->n; i++) PetscCall(PetscDrawLine(win, ctx->x[0], ctx->y[i], ctx->x[ctx->m - 1]… in PetscDrawTensorContour_Zoom()
H A Ddline.c151 PetscErrorCode PetscDrawLine(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr… in PetscDrawLine() function
/petsc/src/sys/classes/draw/utils/
H A Daxisc.c309 PetscCall(PetscDrawLine(draw, axis->xlow, axis->ylow, axis->xhigh, axis->ylow, ac)); in PetscDrawAxisDraw()
310 PetscCall(PetscDrawLine(draw, axis->xlow, axis->ylow, axis->xlow, axis->yhigh, ac)); in PetscDrawAxisDraw()
311 PetscCall(PetscDrawLine(draw, axis->xlow, axis->yhigh, axis->xhigh, axis->yhigh, ac)); in PetscDrawAxisDraw()
312 PetscCall(PetscDrawLine(draw, axis->xhigh, axis->ylow, axis->xhigh, axis->yhigh, ac)); in PetscDrawAxisDraw()
328 PetscCall(PetscDrawLine(draw, tickloc[i], axis->ylow, tickloc[i], axis->ylow + .5 * th, tc)); in PetscDrawAxisDraw()
329 … PetscCall(PetscDrawLine(draw, tickloc[i], axis->yhigh, tickloc[i], axis->yhigh - .5 * th, tc)); in PetscDrawAxisDraw()
356 PetscCall(PetscDrawLine(draw, axis->xlow, tickloc[i], axis->xlow + .5 * tw, tickloc[i], tc)); in PetscDrawAxisDraw()
357 … PetscCall(PetscDrawLine(draw, axis->xhigh, tickloc[i], axis->xhigh - .5 * tw, tickloc[i], tc)); in PetscDrawAxisDraw()
H A Dlgc.c105 …PetscCall(PetscDrawLine(draw, lg->x[(j - 1) * dim + i], lg->y[(j - 1) * dim + i], lg->x[j * dim + … in PetscDrawLGSPDraw()
502 …PetscCall(PetscDrawLine(draw, lg->x[(j - 1) * dim + i], lg->y[(j - 1) * dim + i], lg->x[j * dim + … in PetscDrawLGDraw()
528 PetscCall(PetscDrawLine(draw, xl, yl, xr, yl, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
529 PetscCall(PetscDrawLine(draw, xr, yl, xr, yr, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
530 PetscCall(PetscDrawLine(draw, xr, yr, xl, yr, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
531 PetscCall(PetscDrawLine(draw, xl, yr, xl, yl, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
534 …PetscCall(PetscDrawLine(draw, xl + 1 * tw, yr - (i + 1) * th, xl + 5 * tw, yr - (i + 1) * th, cl)); in PetscDrawLGDraw()
H A Dbars.c201 PetscCall(PetscDrawLine(draw, binLeft, ymin, binLeft, values[idx], PETSC_DRAW_BLACK)); in PetscDrawBarDraw()
202 PetscCall(PetscDrawLine(draw, binRight, ymin, binRight, values[idx], PETSC_DRAW_BLACK)); in PetscDrawBarDraw()
203 PetscCall(PetscDrawLine(draw, binLeft, values[idx], binRight, values[idx], PETSC_DRAW_BLACK)); in PetscDrawBarDraw()
H A Dhists.c379 PetscCall(PetscDrawLine(draw, binLeft, ymin, binLeft, bins[0], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
380 PetscCall(PetscDrawLine(draw, binRight, ymin, binRight, bins[0], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
381 PetscCall(PetscDrawLine(draw, binLeft, bins[0], binRight, bins[0], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
443 PetscCall(PetscDrawLine(draw, binLeft, ymin, binLeft, bins[i], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
444 PetscCall(PetscDrawLine(draw, binRight, ymin, binRight, bins[i], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
445 PetscCall(PetscDrawLine(draw, binLeft, bins[i], binRight, bins[i], PETSC_DRAW_BLACK)); in PetscDrawHGDraw()
/petsc/src/dm/impls/da/
H A Dda1.c81 …for (xmin_tmp = 0; xmin_tmp < dd->M; xmin_tmp++) PetscCall(PetscDrawLine(draw, (double)xmin_tmp, y… in DMView_DA_1d()
84 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_BLACK)); in DMView_DA_1d()
85 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_BLACK)); in DMView_DA_1d()
97 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_1d()
98 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_1d()
99 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_1d()
100 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_1d()
H A Dda2.c78 …for (xmin = 0; xmin < dd->M; xmin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_D… in DMView_DA_2d()
81 …for (ymin = 0; ymin < dd->N; ymin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_D… in DMView_DA_2d()
93 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_2d()
94 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_2d()
95 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_2d()
96 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_2d()
H A Dgr1.c258 …PetscCall(PetscDrawLine(draw, xgtmp, tmp, PetscRealPart(xg[0]), PetscRealPart(array[j]), PETSC_DRA… in VecView_MPI_Draw_DA1d()
262 …PetscCall(PetscDrawLine(draw, PetscRealPart(xg[i - 1]), PetscRealPart(array[j + dof * (i - 1)]), P… in VecView_MPI_Draw_DA1d()
H A Dgr2.c72 PetscCall(PetscDrawLine(draw, x1, y_1, x2, y2, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
73 PetscCall(PetscDrawLine(draw, x2, y2, x3, y3, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
74 PetscCall(PetscDrawLine(draw, x3, y3, x4, y4, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
75 PetscCall(PetscDrawLine(draw, x4, y4, x1, y_1, PETSC_DRAW_BLACK)); in VecView_MPI_Draw_DA2d_Zoom()
H A Dda3.c97 …1)); xmin < (PetscReal)(dd->M + (k * (dd->M + 1))); xmin++) PetscCall(PetscDrawLine(draw, xmin, ym… in DMView_DA_3d()
100 …for (ymin = 0; ymin < (PetscReal)dd->N; ymin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ym… in DMView_DA_3d()
117 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_3d()
118 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_3d()
119 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_3d()
120 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_3d()
/petsc/include/
H A Dpetscdraw.h127 PETSC_EXTERN PetscErrorCode PetscDrawLine(PetscDraw, PetscReal, PetscReal, PetscReal, PetscReal, in…
/petsc/src/dm/impls/plex/
H A Dplex.c540 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]), PetscRealPart(coords[1]), PetscRealPart(co… in VecView_Plex_Local_Draw_2D()
1842 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]), y, PetscRealPart(coords[1]), y, lineColor)… in DMPlexDrawCell()
1843 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]), y + dy, PetscRealPart(coords[0]), y - dy, … in DMPlexDrawCell()
1844 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[1]), y + dy, PetscRealPart(coords[1]), y - dy, … in DMPlexDrawCell()
1851 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]), PetscRealPart(coords[1]), PetscRealPart(co… in DMPlexDrawCell()
1852 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]) + l * dx, PetscRealPart(coords[1]) + l * dy… in DMPlexDrawCell()
1853 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[2]) + l * dx, PetscRealPart(coords[3]) + l * dy… in DMPlexDrawCell()
1861 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[0]), PetscRealPart(coords[1]), PetscRealPart(co… in DMPlexDrawCell()
1862 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[2]), PetscRealPart(coords[3]), PetscRealPart(co… in DMPlexDrawCell()
1863 …PetscCall(PetscDrawLine(draw, PetscRealPart(coords[4]), PetscRealPart(coords[5]), PetscRealPart(co… in DMPlexDrawCell()
[all …]
/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c369 …if (rank) PetscCall(PetscDrawLine(draw, (PetscReal)start - 1, tmp, (PetscReal)start, PetscRealPart… in VecView_MPI_Draw()
370 …for (i = 1; i < xin->map->n; i++) PetscCall(PetscDrawLine(draw, (PetscReal)(i - 1 + start), PetscR… in VecView_MPI_Draw()
/petsc/doc/manual/
H A Dother.md713 PetscDrawLine(PetscDraw win, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl);