Home
last modified time | relevance | path

Searched refs:axis (Results 1 – 25 of 62) sorted by relevance

123

/petsc/src/sys/classes/draw/utils/
H A Daxisc.c27 PetscErrorCode PetscDrawAxisCreate(PetscDraw draw, PetscDrawAxis *axis) in PetscDrawAxisCreate() argument
33 PetscAssertPointer(axis, 2); in PetscDrawAxisCreate()
48 *axis = ad; in PetscDrawAxisCreate()
64 PetscErrorCode PetscDrawAxisDestroy(PetscDrawAxis *axis) in PetscDrawAxisDestroy() argument
67 if (!*axis) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawAxisDestroy()
68 PetscValidHeaderSpecific(*axis, PETSC_DRAWAXIS_CLASSID, 1); in PetscDrawAxisDestroy()
69 if (--((PetscObject)*axis)->refct > 0) { in PetscDrawAxisDestroy()
70 *axis = NULL; in PetscDrawAxisDestroy()
74 PetscCall(PetscFree((*axis)->toplabel)); in PetscDrawAxisDestroy()
75 PetscCall(PetscFree((*axis)->xlabel)); in PetscDrawAxisDestroy()
[all …]
H A Dbars.c52 PetscCall(PetscDrawAxisCreate(draw, &h->axis)); in PetscDrawBarCreate()
53 h->axis->xticks = NULL; in PetscDrawBarCreate()
114 PetscCall(PetscDrawAxisDestroy(&(*bar)->axis)); in PetscDrawBarDestroy()
191 PetscCall(PetscDrawAxisSetLimits(bar->axis, xmin, xmax, ymin, ymax)); in PetscDrawBarDraw()
192 PetscCall(PetscDrawAxisDraw(bar->axis)); in PetscDrawBarDraw()
330 PetscErrorCode PetscDrawBarGetAxis(PetscDrawBar bar, PetscDrawAxis *axis) in PetscDrawBarGetAxis() argument
334 PetscAssertPointer(axis, 2); in PetscDrawBarGetAxis()
335 *axis = bar->axis; in PetscDrawBarGetAxis()
H A Dlgc.c23 PetscErrorCode PetscDrawLGGetAxis(PetscDrawLG lg, PetscDrawAxis *axis) in PetscDrawLGGetAxis() argument
27 PetscAssertPointer(axis, 2); in PetscDrawLGGetAxis()
28 *axis = lg->axis; in PetscDrawLGGetAxis()
95 PetscCall(PetscDrawAxisSetLimits(lg->axis, xmin, xmax, ymin, ymax)); in PetscDrawLGSPDraw()
96 PetscCall(PetscDrawAxisDraw(lg->axis)); in PetscDrawLGSPDraw()
175 PetscCall(PetscDrawAxisCreate(draw, &lg->axis)); in PetscDrawLGCreate()
425 PetscCall(PetscDrawAxisDestroy(&(*lg)->axis)); in PetscDrawLGDestroy()
493 PetscCall(PetscDrawAxisSetLimits(lg->axis, xmin, xmax, ymin, ymax)); in PetscDrawLGDraw()
494 PetscCall(PetscDrawAxisDraw(lg->axis)); in PetscDrawLGDraw()
513 PetscCall(PetscDrawAxisGetLimits(lg->axis, &xl, &xr, &yl, &yr)); in PetscDrawLGDraw()
H A Dhists.c15 PetscDrawAxis axis; member
85 PetscCall(PetscDrawAxisCreate(draw, &h->axis)); in PetscDrawHGCreate()
167 PetscCall(PetscDrawAxisDestroy(&(*hist)->axis)); in PetscDrawHGDestroy()
356 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
371 PetscCall(PetscDrawAxisSetLabels(hist->axis, title, xlabel, NULL)); in PetscDrawHGDraw()
373 PetscCall(PetscDrawAxisDraw(hist->axis)); in PetscDrawHGDraw()
419 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
434 PetscCall(PetscDrawAxisSetLabels(hist->axis, title, xlabel, NULL)); in PetscDrawHGDraw()
436 PetscCall(PetscDrawAxisDraw(hist->axis)); in PetscDrawHGDraw()
701 PetscErrorCode PetscDrawHGGetAxis(PetscDrawHG hist, PetscDrawAxis *axis) in PetscDrawHGGetAxis() argument
[all …]
H A Ddscatter.c63 PetscCall(PetscDrawAxisCreate(draw, &sp->axis)); in PetscDrawSPCreate()
168 PetscCall(PetscDrawAxisDestroy(&(*sp)->axis)); in PetscDrawSPDestroy()
376 PetscCall(PetscDrawAxisSetLimits(sp->axis, glower[0], gupper[0], glower[1], gupper[1])); in PetscDrawSPDraw()
377 PetscCall(PetscDrawAxisDraw(sp->axis)); in PetscDrawSPDraw()
464 PetscErrorCode PetscDrawSPGetAxis(PetscDrawSP sp, PetscDrawAxis *axis) in PetscDrawSPGetAxis() argument
468 PetscAssertPointer(axis, 2); in PetscDrawSPGetAxis()
469 *axis = sp->axis; in PetscDrawSPGetAxis()
/petsc/src/sys/classes/draw/tests/
H A Dex12.c10 PetscDrawAxis axis; in main() local
37 PetscCall(PetscDrawBarGetAxis(bar, &axis)); in main()
38 PetscCall(PetscDrawAxisSetColors(axis, PETSC_DRAW_BLACK, PETSC_DRAW_RED, PETSC_DRAW_BLUE)); in main()
39 PetscCall(PetscDrawAxisSetLabels(axis, toplabel, xlabel, ylabel)); in main()
H A Dex5f.F9015 PetscDrawAxis axis
45 PetscCallA(PetscDrawLGGetAxis(lg, axis, ierr))
46 PetscCallA(PetscDrawAxisSetColors(axis, PETSC_DRAW_BLACK, PETSC_DRAW_RED, PETSC_DRAW_BLUE, ierr))
47 PetscCallA(PetscDrawAxisSetLabels(axis, 'toplabel', 'xlabel', 'ylabel', ierr))
H A Dex9.c10 PetscDrawAxis axis; in main() local
45 PetscCall(PetscDrawHGGetAxis(hist, &axis)); in main()
46 PetscCall(PetscDrawAxisSetColors(axis, PETSC_DRAW_BLACK, PETSC_DRAW_RED, PETSC_DRAW_BLUE)); in main()
47 PetscCall(PetscDrawAxisSetLabels(axis, toplabel, xlabel, ylabel)); in main()
H A Dex3.c16 PetscDrawAxis axis; in main() local
60 PetscCall(PetscDrawLGGetAxis(lg, &axis)); in main()
61 PetscCall(PetscDrawAxisSetColors(axis, PETSC_DRAW_BLACK, PETSC_DRAW_RED, PETSC_DRAW_BLUE)); in main()
62 PetscCall(PetscDrawAxisSetLabels(axis, toplabel, xlabel, ylabel)); in main()
/petsc/src/vec/is/utils/
H A Dkdtree.c10 uint8_t axis; // Coordinate direction that stem splits on member
91 …c inline int PetscKDTreeSortFunc(PetscCount left, PetscCount right, PetscKDTree tree, uint8_t axis) in PetscKDTreeSortFunc() argument
97 PetscReal diff = coords[left * dim + axis] - coords[right * dim + axis]; in PetscKDTreeSortFunc()
99 axis = (axis + 1) % dim; in PetscKDTreeSortFunc()
171 uint8_t axis = (uint8_t)(depth % dim); in PetscKDTreeBuildStemAndLeaves() local
181 stem->axis = axis; in PetscKDTreeBuildStemAndLeaves()
183 …m->split = (tree->coords[tree->dim * median_idx + axis] + tree->coords[tree->dim * medianp1_idx + in PetscKDTreeBuildStemAndLeaves()
191 …< median && PetscKDTreeSortFunc(sorted_indices[d * num_coords + i], median_idx, tree, axis) <= 0) { in PetscKDTreeBuildStemAndLeaves()
382 PetscReal old_offset = offset[stem.axis], new_offset = point[stem.axis] - stem.split; in PetscKDTreeQuery_Recurse()
387 offset[stem.axis] = new_offset; in PetscKDTreeQuery_Recurse()
[all …]
/petsc/src/ts/tutorials/phasefield/
H A Dpotentials.c14 PetscDrawAxis axis; in main() local
25 PetscCall(PetscDrawLGGetAxis(lg, &axis)); in main()
44 PetscCall(PetscDrawAxisSetLabels(axis, "Energy", "", "")); in main()
62 PetscCall(PetscDrawAxisSetLabels(axis, "Derivative", "", "")); in main()
/petsc/src/dm/impls/network/
H A Dnetworkmonitor.c122 PetscDrawAxis axis; in DMNetworkMonitorAdd() local
151 PetscCall(PetscDrawLGGetAxis(drawlg, &axis)); in DMNetworkMonitorAdd()
152 …CIDE && xmax != (PetscReal)PETSC_DECIDE) PetscCall(PetscDrawAxisSetLimits(axis, xmin, xmax, ymin, … in DMNetworkMonitorAdd()
153 else PetscCall(PetscDrawAxisSetLimits(axis, 0, nodes - 1, ymin, ymax)); in DMNetworkMonitorAdd()
154 PetscCall(PetscDrawAxisSetHoldLimits(axis, hold)); in DMNetworkMonitorAdd()
/petsc/src/ts/interface/
H A Dtsmon.c446 PetscDrawAxis axis; in TSMonitorLGTimeStep() local
448 PetscCall(PetscDrawLGGetAxis(ctx->lg, &axis)); in TSMonitorLGTimeStep()
449 PetscCall(PetscDrawAxisSetLabels(axis, "Timestep as function of time", "Time", ylabel)); in TSMonitorLGTimeStep()
642 PetscDrawAxis axis; in TSMonitorDrawSolutionPhase() local
656 PetscCall(PetscViewerDrawGetDrawAxis(ictx->viewer, 0, &axis)); in TSMonitorDrawSolutionPhase()
657 PetscCall(PetscDrawAxisGetLimits(axis, &xl, &xr, &yl, &yr)); in TSMonitorDrawSolutionPhase()
660 PetscCall(PetscDrawAxisDraw(axis)); in TSMonitorDrawSolutionPhase()
1030 PetscDrawAxis axis; in TSMonitorLGSolution() local
1032 PetscCall(PetscDrawLGGetAxis(ctx->lg, &axis)); in TSMonitorLGSolution()
1033 PetscCall(PetscDrawAxisSetLabels(axis, "Solution as function of time", "Time", "Solution")); in TSMonitorLGSolution()
[all …]
/petsc/share/petsc/bin/
H A Ddmnetwork_view.py285 axis = fig.add_subplot()
294 axis.set_title(title[0], color=title[1])
297 axis.add_collection(LineCollection(
305 axis.add_collection(CircleCollection(
308 transOffset=axis.transData,
318 axis.text(
332 axis.text(
342 axis.autoscale()
368 cbar = plt.colorbar(matplotlib.cm.ScalarMappable(norm=norm, cmap=colors.colormap), ax=axis)
371 cbar = plt.colorbar(matplotlib.cm.ScalarMappable(norm=norm, cmap=colors.colormap), ax=axis)
/petsc/src/benchmarks/results/
H A Dperformance_medium.m6 axis([0 12 0 90])
26 axis([0 12 0 90])
H A Dperformance_cfd_2_10.m6 axis([0 10 0 150])
26 axis([0 10 0 150])
H A Dperformance_arco1.m6 axis([0 17 0 150])
32 axis([0 17 0 150])
/petsc/src/ksp/ksp/tutorials/
H A Dex68.c65 PetscDrawAxis axis; in main() local
75 PetscCall(PetscDrawLGGetAxis(lg, &axis)); in main()
76 PetscCall(PetscDrawAxisSetLabels(axis, NULL, "Number of GLL points", "Log(Error Norm)")); in main()
/petsc/src/tao/unconstrained/tutorials/
H A Dadjointreads.m95 % axis tight; axis square
151 % axis tight; axis square
/petsc/src/binding/petsc4py/demo/legacy/perftest/
H A Ddriver.py54 pylab.axis('equal')
65 pylab.axis('equal')
76 pylab.axis('equal')
/petsc/src/dm/impls/da/
H A Dgr1.c155 PetscDrawAxis axis; in VecView_MPI_Draw_DA1d() local
207 PetscCall(PetscViewerDrawGetDrawAxis(v, 0, &axis)); in VecView_MPI_Draw_DA1d()
236 PetscCall(PetscViewerDrawGetDrawAxis(v, k, &axis)); in VecView_MPI_Draw_DA1d()
242 PetscCall(PetscDrawAxisSetLabels(axis, tlabel, xlabel, NULL)); in VecView_MPI_Draw_DA1d()
243 PetscCall(PetscDrawAxisSetLimits(axis, xmin, xmax, min, max)); in VecView_MPI_Draw_DA1d()
244 PetscCall(PetscDrawAxisDraw(axis)); in VecView_MPI_Draw_DA1d()
/petsc/include/petsc/private/
H A Ddrawimpl.h89 PetscDrawAxis axis; member
128 PetscDrawAxis axis; member
144 PetscDrawAxis axis; member
/petsc/src/ts/tests/
H A Dex28.c361 PetscDrawAxis axis; in HGMonitor() local
367 PetscCall(PetscDrawHGGetAxis(user->drawhg, &axis)); in HGMonitor()
368 PetscCall(PetscDrawAxisSetLabels(axis, "Particles", "V", "f(V)")); in HGMonitor()
369 PetscCall(PetscDrawAxisSetLimits(axis, -3, 3, 0, 100)); in HGMonitor()
393 PetscDrawAxis axis; in SPMonitor() local
397 PetscCall(PetscDrawSPGetAxis(user->drawsp, &axis)); in SPMonitor()
398 PetscCall(PetscDrawAxisSetLabels(axis, "Particles", "V", "w")); in SPMonitor()
426 PetscDrawAxis axis; in KSConv() local
427 PetscCall(PetscDrawSPGetAxis(user->drawks, &axis)); in KSConv()
428 PetscCall(PetscDrawAxisSetLabels(axis, "Particles", "t", "D_n")); in KSConv()
H A Dex35.c58 PetscDrawAxis axis; in main() local
149 PetscCall(PetscDrawSPGetAxis(positionDrawSP, &axis)); in main()
151 PetscCall(PetscDrawAxisSetLabels(axis, "Particles", "x", "y")); in main()
/petsc/src/ts/utils/
H A Ddmnetworkts.c126 PetscDrawAxis axis; in TSMonitorLGCtxNetworkSolution()
129 PetscCall(PetscDrawLGGetAxis(ctx->lg[i], &axis)); in TSMonitorLGCtxNetworkSolution()
130 PetscCall(PetscDrawAxisSetLabels(axis, "Solution as function of time", "Time", "Solution")); in TSMonitorLGCtxNetworkSolution()

123