helpers.plot_helper module¶
- figsize(textwidth, scale, ratio)[source]¶
Get figsize.
- Parameters:
textwidth (str) – Textwdith in your LaTeX file in points
scale (float) – The width of the figure relative to the textwidth
ratio (float) – The height of the figure relative to its width
- Returns:
Width and height of the figure to be passed to matplotlib
- Return type:
list
- figsize_by_journal(journal, scale, ratio)[source]¶
Get figsize for specific journal. If you supply a text height, we will rescale the figure to fit on the page instead of the parameters supplied.
- Parameters:
journal (str) – Name of journal
scale (float) – The width of the figure relative to the textwidth
ratio (float) – The height of the figure relative to its width
- Returns:
Width and height of the figure to be passed to matplotlib
- Return type:
list