- add environment configuration: $XONTRIB_MPL_MINIMAL_DEFAULT
+ defines if the plot will plot will minimize all plots and reduce
margins to nearly nothing
+ if false, the printed plot will attempt meet the same layout as
the figure is meant to contain, but text will look mostly like
single characters unless font size is particularly large compared to
the plot area.
- split the array generation into two functions
+ figure_to_rgb_array now is a simple function that generates a
numpy array of the image representation of the figure.
+ figure_to_tight_array replaces the old figure_to_rgb_array by
taking in a width, height, and minimal boolean.
- this simplifies testing
- this also makes more sense because it copies the figure just when
changes are being applied
- the figure is also closed in this function