Lines Matching refs:tw
253 PetscReal coors[4] = {0, 0, 0, 0}, tickloc[PETSC_DRAW_AXIS_MAX_SEGMENTS], sep, tw, th; in PetscDrawAxisDraw() local
284 PetscCall(PetscDrawStringGetSize(draw, &tw, &th)); in PetscDrawAxisDraw()
289 if (axis->ylabelstr) dxl += 7.5 * tw; in PetscDrawAxisDraw()
290 if (axis->ylabel) dxl += 2.0 * tw; in PetscDrawAxisDraw()
292 if (axis->xlabelstr) dxr = 2.5 * tw; in PetscDrawAxisDraw()
296 dxl += 0.7 * tw; in PetscDrawAxisDraw()
297 dxr += 0.5 * tw; in PetscDrawAxisDraw()
306 PetscCall(PetscDrawStringGetSize(draw, &tw, &th)); in PetscDrawAxisDraw()
323 numx = (int)(.15 * (axis->xhigh - axis->xlow) / tw); 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()
368 …PetscCall(PetscDrawString(draw, axis->xlow - ((PetscReal)len + .5) * tw, tickloc[i] - .5 * th, cc,… in PetscDrawAxisDraw()
373 PetscReal x = axis->xlow - 2.0 * tw, y = (axis->ylow + axis->yhigh) / 2; in PetscDrawAxisDraw()
375 if (axis->ylabelstr) x -= ((PetscReal)ytlen + .5) * tw; in PetscDrawAxisDraw()