mcfacts.vis.plotting

mcfacts.vis.plotting.set_size(width, fraction=1, subplots=(1, 1), square=False)

Set figure dimensions to avoid scaling in LaTeX.

Parameters:
  • width (float or string) – Document width in points, or string of predefined document type

  • fraction (float, optional) – Fraction of the width which you wish the figure to occupy

  • subplots (array-like, optional) – The number of rows and columns of subplots

  • square (bool) – Whether or not figure should be square

Returns:

fig_dim – Dimensions of figure in inches

Return type:

tuple