XYPlot¶
- class lsst.analysis.tools.actions.plot.XYPlot(*args, **kw)¶
- Bases: - PlotAction- Make a plot (with errorbars) of one quantity (X) vs another (Y). - Attributes Summary - Keyword arguments to ax.errorbar that take boolean values ( - Dict, default- {})- Keyword arguments to ax.errorbar that take numerical (float or int) values ( - Dict, default- {})- Keyword arguments to ax.errorbar that take string values ( - Dict, default- {})- The label to use for the x-axis. - The value around zero where the scale becomes linear in x-axis when symlog is set as the scale. - The value of x where a vertical line is drawn. - The scale to use for the x-axis. - The label to use for the y-axis. - The value around zero where the scale becomes linear in y-axis when symlog is set as the scale. - The value of y where a horizontal line is drawn. - The scale to use for the y-axis. - Methods Summary - __call__(data, **kwargs)- Call self as a function. - Return the schema an - AnalysisActionexpects to be present in the arguments supplied to the __call__ method.- makePlot(data[, plotInfo])- Make the plot. - Subclass hook for computing defaults. - validate()- Validate the Config, raising an exception if invalid. - Attributes Documentation - boolKwargs¶
- Keyword arguments to ax.errorbar that take boolean values ( - Dict, default- {})
 - numKwargs¶
- Keyword arguments to ax.errorbar that take numerical (float or int) values ( - Dict, default- {})
 - strKwargs¶
- Keyword arguments to ax.errorbar that take string values ( - Dict, default- {})
 - xLinThresh¶
- The value around zero where the scale becomes linear in x-axis when symlog is set as the scale. Sets the - linthreshparameter of- set_xscale. (- float, default- 1e-06)
 - xScale¶
- The scale to use for the x-axis. ( - str, default- 'linear')- Allowed values: - 'linear'
- linear 
- 'log'
- log 
- 'symlog'
- symlog 
- 'None'
- Field is optional 
 
 - yLinThresh¶
- The value around zero where the scale becomes linear in y-axis when symlog is set as the scale. Sets the - linthreshparameter of- set_yscale. (- float, default- 1e-06)
 - yScale¶
- The scale to use for the y-axis. ( - str, default- 'linear')- Allowed values: - 'linear'
- linear 
- 'log'
- log 
- 'symlog'
- symlog 
- 'None'
- Field is optional 
 
 - Methods Documentation - __call__(data: KeyedData, **kwargs) Figure¶
- Call self as a function. 
 - getInputSchema() KeyedDataSchema¶
- Return the schema an - AnalysisActionexpects to be present in the arguments supplied to the __call__ method.- Returns:
- resultKeyedDataSchema
- The schema this action requires to be present when calling this action, keys are unformatted. 
 
- result
 
 - makePlot(data: KeyedData, plotInfo: Mapping[str, str] | None = None, **kwargs: Any) Figure¶
- Make the plot. 
 - setDefaults()¶
- Subclass hook for computing defaults. - Notes - Derived - Configclasses that must compute defaults rather than using the- Fieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations of- setDefaultsmust call their base class’s- setDefaults.
 - validate()¶
- Validate the Config, raising an exception if invalid. - Raises:
- lsst.pex.config.FieldValidationError
- Raised if verification fails. 
 
 - Notes - The base class implementation performs type checks on all fields by calling their - validatemethods.- Complex single-field validation can be defined by deriving new Field types. For convenience, some derived - lsst.pex.config.Field-types (- ConfigFieldand- ConfigChoiceField) are defined in- lsst.pex.configthat handle recursing into subconfigs.- Inter-field relationships should only be checked in derived - Configclasses after calling this method, and base validation is complete.