this assignment is misleading, calling figure() _does_ have side effects
conditional import of matplotlib based on cli args, not sure this is the way...