Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-37075: Create sky object plots including GaaP fluxes and band ratios #48

Merged
merged 5 commits into from
Dec 23, 2022

Commits on Dec 22, 2022

  1. Plot range and label size updates to histPlot

    This updates the histPlot action to allow for finer grained control
    over the plot ranges.  The "rangeType" can now be selected as one of
    "percentile", "sigmaMad", or "fixed".  The lower and upper bounds of
    the range will then be set accordingly by the values in lowerRange and
    upperRange as follows:
    
    "percentile": (lowerRange percentile of data,
                   upperRange percentile of data)
    
    "sigmaMad": (min(medians) - lowerRange*max(sigmaMads),
                 max(medians) + upperRange*max(sigmaMads))
    
    "fixed": (lowerRange, upperRange)
    
    It also updates the way the right-hand statistics legends are added
    such that each entry gets a title (set to the x-axis label) and the
    legends line up (reasonably well for up to ~6 panels with <~ 4
    datasets per panel) with their respective rows.
    
    In order to avoid confusion between col for color vs. column, all
    references to col refer to the latter, and color is spelled out for
    the former.
    laurenam committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    45de12c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b31894 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94ff89c View commit details
    Browse the repository at this point in the history
  4. Add option to normalize the histogram as a PDF

    Also overplot a shaded curve representing the idealized Pnorm(0, 1)
    distribution for reference.
    laurenam committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    0011b21 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. Update the SkyObject[Source]HistPlot classes

    This updates the skyObject and skySource analysisPlot classes to
    adapt to the new range setting configs in the HistPlot action.
    This also adds vertical solid black lines at a "reference" value
    (0.0 here) in both the flux and S/N panels as well as a shaded
    PDF(0, 1) distribution on the now density normalized S/N plots
    for reference.
    
    This also adds the GaaP 1p0 flux to the skyObject histograms (GaaP
    fluxes are not measured for the visit-level sky sources).
    laurenam committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    d6000fe View commit details
    Browse the repository at this point in the history