monet.plots.savefig

monet.plots.savefig(fname, *, loc=1, decorate=True, logo=None, logo_height=None, **kwargs)

Save figure and add logo.

Parameters:
  • fname (str) – Output file name or path. Passed to plt.savefig. Must include desired file extension (.jpg or .png).

  • loc (int) – The location for the logo.

    • 1 – bottom left (default)

    • 2 – bottom right

    • 3 – top right

    • 4 – top left

  • decorate (bool, default: True) – Whether to add the logo.

  • logo (str, optional) – Path to the logo to be used. If not provided, the MONET logo is used.

  • logo_height (float or int, optional) – Desired logo height in pixels. If not provided, the original logo image dimensions are used. Modify to scale the logo.

  • **kwargs (dict) – Passed to the plt.savefig function.

Return type:

None