desihub / desisurvey

Code for desi survey planning and implementation
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

Allow plot object to be returned from forecast_plots() #159

Closed geordie666 closed 1 month ago

geordie666 commented 1 month ago

This PR adds a keyword (default of False for backward-compatibility) that, if True, will return the plot object from forecast_plots().

The justification is that, currently, the plot is displayed in certain environments but not all environments. Returning the object allows the plot to be saved (or manipulated in other ways).

coveralls commented 1 month ago

Coverage Status

coverage: 30.403% (-0.01%) from 30.413% when pulling 16baffb26afb839f6759c4a39fb69bceb7bd0cec on ADM-plot-control into 5115d9a0b27e4f027899812bf21a5529c28e907b on main.