e61-Institute / theme61

Create graphs in the e61 Institute style
https://e61-institute.github.io/theme61/
MIT License
5 stars 0 forks source link

Have `save_e61()` automatically choose the appropriate `height` when producing plots #38

Closed aaronw22 closed 1 year ago

aaronw22 commented 1 year ago

Height (for normal plots at least) is a function of the number of lines that the titles, subtitles, footnotes and sources take up because the actual panel has a fixed dimension. Is there some way to extract information for the likely size of those elements and set the graph height accordingly?

Thoughts and ideas welcomed.

aaronw22 commented 1 year ago

Possible to extract information from the gg object that is fed into the save function and calculate the appropriate height?