torchcell.utils.apply_paper_style
- apply_paper_style() None[source]
Set every rcParam the repo figure standard fixes, explicitly.
Setting
font.sizealone is not enough, and the reason is a trap worth knowing. Importingtorchcell.graphrunsplt.style.useat module import time, and that style file setsaxes.labelsize16,xtick.labelsize14 andsavefig.bboxtightas absolute values. Absolute sizes do not scale withfont.size, so a laterrcParams["font.size"] = 6leaves axis labels and ticks at 14 to 16 point while titles set with an explicitfontsizecome out correct. The result is a figure with mismatched type whose canvas has silently been recropped wider than its declared panel width.Call this after every import, and it holds regardless of what an imported module did to the global state.