Repository navigation
Commit 6557e30
committed
Set panel title/aspect/frameon once per panel, not per render command (#695)
In `show()`, the title/`set_aspect`/`axis("off")` block sat inside the
`for cmd, params in render_cmds:` loop, so for a chained call (e.g.
render_images().render_shapes()) these ran once per render command instead of
once per panel, and the title-length `IndexError` check re-evaluated each
iteration (so it could surface mid-loop rather than up front).
Dedent the block one level so it runs once per panel after the per-command
loop. Output is unchanged (the calls are idempotent) — verified byte-identical
to main for single- and multi-command chains with title and frameon set.1 parent b370b1f commit 6557e30
1 file changed
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
1808 | | - | |
1809 | | - | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1810 | 1812 | | |
1811 | 1813 | | |
1812 | 1814 | | |
| |||
0 commit comments