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

Function _get_bbox_header

lib/matplotlib/backends/backend_ps.py:1374–1378  ·  view source on GitHub ↗

Return a PostScript header string for bounding box *lbrt*=(l, b, r, t).

(lbrt)

Source from the content-addressed store, hash-verified

1372
1373
1374def _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
1381def _get_rotate_command(lbrt):

Callers 3

print_figure_implMethod · 0.85
_print_figure_texMethod · 0.85
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…