Function export_figure

Export a figure to various formats

Utility function that exports a figure to various formats taking care of caching as well as some other options.

Input:

Output: