only import plotting (matplotlib) on demand