RPIC

margin

rpic extension, inspired by Pikchr. The margin variables add whitespace around the rendered canvas without moving a single object — geometry, anchors, ordinals and the current point are untouched.

.PS
margin = 0.25
box "breathing room" fit
.PE
breathing room

The variables

Variable Effect
margin all four sides
topmargin rightmargin bottommargin leftmargin one side, added to margin

Side values are additive, so this pads everywhere except the left:

.PS
margin = 0.2
leftmargin = -0.2
box "asymmetric" fit
.PE
asymmetric

Rules

Design notes: docs/pikchr.md.