Skip to content

Selective plotting #292

@cdhinrichs

Description

@cdhinrichs

When plotting, sometimes I just want one plot, say rand_esd2 or log_log or whatever. Currently the plot argument is boolean, and if True, then it generates all plots. This behavior can be preserved, and also generalized as follows:
In constants.py declare a set of constants, one for each type of plot. If plot=True then replace with plot = WW_ALL_PLOTS. If plot=False then replace with plot=[]. If plot=[WW_PLOT_RAND_ESD] then only do that plot.
The change would be,

  • declare the constants
  • handle the default boolean cases like above
  • change all of the if plot conditions to if WW_PLOT_XXX in plot as necessary

This way, I can use the tool in a notebook and have it only show the rand_ESD2 plots, rather than generating everything and having to load from disk just to show the one that I want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions