Change Request
The import matplotlib.pyplot as plt should be localized (moved) inside the code block for this method definition.
This will avoid forcing the user to import matplotlib when using any of the other methods in output_formats (i.e. for users who are not making use of the optional vis dependencies and methods).
Description
Newer releases of pycontrails include an import of matplotlib in the
output_formats
ofmodels.cocip
. See here.Matplot lib is only referenced in the
compare_cocip_with_goes
method.Matplotlib is an optional dependency under
vis
Change Request The
import matplotlib.pyplot as plt
should be localized (moved) inside the code block for this method definition. This will avoid forcing the user to import matplotlib when using any of the other methods inoutput_formats
(i.e. for users who are not making use of the optionalvis
dependencies and methods).Details