MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_rotate_command

Function _get_rotate_command

lib/matplotlib/backends/backend_ps.py:1381–1384  ·  view source on GitHub ↗

Return a PostScript 90° rotation command for bounding box *lbrt*=(l, b, r, t).

(lbrt)

Source from the content-addressed store, hash-verified

1379
1380
1381def _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
1387def pstoeps(tmpfile, bbox=None, rotated=False):

Callers 1

pstoepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…