CANU – Canvas UNIfier for ROOT

Hi,

we all know ROOT has some issues with consistent formatting canvases when they are of different sizes or aspect ratios. Margins, font sizes (unless set explicitly) are relative to width, height or min(width, height) of the pad. Making consistent plots across whole papers is challenging.

I made some header-only tool to format canvases in a consistent way. You feed the tool with inputs like your journal page and column width (in pts) and text size, and the tool uses this information to rescale all values in a consistent way.

Please have a look at the README at GitHub - rlalik/canu: CANU (CANvas Unifer) is a lightweight C++ utility for the ROOT framework that helps create publication-quality plots with consistent formatting. · GitHub
and at the example of simple macro to reformat existing canvases (given as C files) into consistent.

There are a few preset journals but more can be add upon user demand.

Regards,
Rafał

Thank you for sharing your tool! The project looks great, nice work.

@couet @linev