Return a PostScript 90° rotation command for bounding box *lbrt*=(l, b, r, t).
(lbrt)
| 1379 | |
| 1380 | |
| 1381 | def _get_rotate_command(lbrt): |
| 1382 | """Return a PostScript 90° rotation command for bounding box *lbrt*=(l, b, r, t).""" |
| 1383 | l, b, r, t = lbrt |
| 1384 | return f"{l+r:.2f} {0:.2f} translate\n90 rotate" |
| 1385 | |
| 1386 | |
| 1387 | def pstoeps(tmpfile, bbox=None, rotated=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…