set_clipboard_kwargs

static Maps.set_clipboard_kwargs(**kwargs)

Set GLOBAL savefig parameters for all Maps objects on export to the clipboard.

  • press β€œcontrol + c” to export the figure to the clipboard

All arguments are passed to Maps.savefig()

Useful options are

  • dpi : the dots-per-inch of the figure

  • refetch_wms: re-fetch webmaps with respect to the export-dpi

  • bbox_inches: use β€œtight” to export figure with a tight boundary

  • pad_inches: the size of the boundary if bbox_inches=”tight”

  • transparent: if True, export with a transparent background

  • facecolor: the background color

Parameters:

kwargs – Keyword-arguments passed to Maps.savefig().

Note

This function sets the clipboard kwargs for all Maps-objects!

Exporting to the clipboard only works if PyQt5 is used as matplotlib backend! (the default if PyQt is installed)

See also

Maps.savefig

Save the figure as jpeg, png, etc.