Return a PostScript header string for bounding box *lbrt*=(l, b, r, t).
(lbrt)
| 1372 | |
| 1373 | |
| 1374 | def _get_bbox_header(lbrt): |
| 1375 | """Return a PostScript header string for bounding box *lbrt*=(l, b, r, t).""" |
| 1376 | l, b, r, t = lbrt |
| 1377 | return (f"%%BoundingBox: {int(l)} {int(b)} {math.ceil(r)} {math.ceil(t)}\n" |
| 1378 | f"%%HiResBoundingBox: {l:.6f} {b:.6f} {r:.6f} {t:.6f}") |
| 1379 | |
| 1380 | |
| 1381 | def _get_rotate_command(lbrt): |
no outgoing calls
no test coverage detected
searching dependent graphs…