XYPlot#
- class lsst.analysis.tools.actions.plot.XYPlot(*args, **kw)#
Bases:
PlotActionMake 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{})
- xAxisLabel#
The label to use for the x-axis. (
str, default'x')
- xLinThresh#
The value around zero where the scale becomes linear in x-axis when symlog is set as the scale. Sets the
linthreshparameter ofset_xscale. (float, default1e-06)
- xLine#
The value of x where a vertical line is drawn. (
float, defaultNone)
- xScale#
The scale to use for the x-axis. (
str, default'linear')Allowed values:
'linear'linear
'log'log
'symlog'symlog
'None'Field is optional
- yAxisLabel#
The label to use for the y-axis. (
str, default'y')
- yLinThresh#
The value around zero where the scale becomes linear in y-axis when symlog is set as the scale. Sets the
linthreshparameter ofset_yscale. (float, default1e-06)
- yLine#
The value of y where a horizontal line is drawn. (
float, defaultNone)
- 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#
- result
KeyedDataSchema 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.
Parameters#
- data
DataFrame The catalog containing various rho statistics.
- **kwargs
Additional keyword arguments to pass to the plot
Returns#
- fig
Figure The resulting figure.
- data
- setDefaults()#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- 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 (ConfigFieldandConfigChoiceField) are defined inlsst.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.