passed callback which returns fig, to allow dynamic setting of configuration