SimuBox.schema.structs.ChartElement module

class SimuBox.schema.structs.ChartElement.Contour(*, level: float, area: float, length: float, IQ: float, vertices: Any)

基类:MixinBaseModel

等高线图中等高线的轮廓数据结构体

IQ: float
area: float
length: float
level: float
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'IQ': FieldInfo(annotation=float, required=True), 'area': FieldInfo(annotation=float, required=True), 'length': FieldInfo(annotation=float, required=True), 'level': FieldInfo(annotation=float, required=True), 'vertices': FieldInfo(annotation=Any, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

vertices: Any
class SimuBox.schema.structs.ChartElement.LandscapeResult(*, fig: Figure | None = None, ax: Axes | None = None, mat: ndarray, xticks: ndarray, yticks: ndarray, levels: ndarray, contourf_fig: QuadContourSet | None = None, contour_fig: QuadContourSet | None = None, clb: Colorbar | None = None, IQs: list[Contour] | None = None)

基类:FigureAxesMixin

用于绘制等高线图的数据结构体

IQs: list[Contour] | None
clb: Colorbar | None
contour_fig: QuadContourSet | None
contourf_fig: QuadContourSet | None
levels: ndarray
mat: ndarray
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'IQs': FieldInfo(annotation=Union[list[Contour], NoneType], required=False), 'ax': FieldInfo(annotation=Union[Axes, NoneType], required=False), 'clb': FieldInfo(annotation=Union[Colorbar, NoneType], required=False), 'contour_fig': FieldInfo(annotation=Union[QuadContourSet, NoneType], required=False), 'contourf_fig': FieldInfo(annotation=Union[QuadContourSet, NoneType], required=False), 'fig': FieldInfo(annotation=Union[Figure, NoneType], required=False), 'levels': FieldInfo(annotation=ndarray, required=True), 'mat': FieldInfo(annotation=ndarray, required=True), 'xticks': FieldInfo(annotation=ndarray, required=True), 'yticks': FieldInfo(annotation=ndarray, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

xticks: ndarray
yticks: ndarray
class SimuBox.schema.structs.ChartElement.Line(*, x: ndarray | None = None, y: ndarray | None = None, z: ndarray | None = None, value: ndarray | None = None, label: str | None = '')

基类:MixinBaseModel

线类数据的基础数据结构体

label: str | None
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'label': FieldInfo(annotation=Union[str, NoneType], required=False, default=''), 'value': FieldInfo(annotation=Union[ndarray, NoneType], required=False), 'x': FieldInfo(annotation=Union[ndarray, NoneType], required=False), 'y': FieldInfo(annotation=Union[ndarray, NoneType], required=False), 'z': FieldInfo(annotation=Union[ndarray, NoneType], required=False)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

value: ndarray | None
x: ndarray | None
y: ndarray | None
z: ndarray | None
class SimuBox.schema.structs.ChartElement.LineCompareResult(*, fig: Figure | None = None, ax: Axes | None = None, lines: list[Line], xlabel: str, ylabel: str)

基类:FigureAxesMixin

曲线比较结果

lines: list[Line]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'ax': FieldInfo(annotation=Union[Axes, NoneType], required=False), 'fig': FieldInfo(annotation=Union[Figure, NoneType], required=False), 'lines': FieldInfo(annotation=list[Line], required=True), 'xlabel': FieldInfo(annotation=str, required=True), 'ylabel': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

xlabel: str
ylabel: str
class SimuBox.schema.structs.ChartElement.PhaseCompareResult(*, fig: Figure | None = None, ax: Axes | None = None, data: DataFrame, mat: ndarray, phase_map: dict)

基类:FigureAxesMixin

data: DataFrame
mat: ndarray
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'ax': FieldInfo(annotation=Union[Axes, NoneType], required=False), 'data': FieldInfo(annotation=DataFrame, required=True), 'fig': FieldInfo(annotation=Union[Figure, NoneType], required=False), 'mat': FieldInfo(annotation=ndarray, required=True), 'phase_map': FieldInfo(annotation=dict, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

phase_map: dict
class SimuBox.schema.structs.ChartElement.Point(*, x: float | None = None, y: float | None = None, z: float | None = None, value: float | None = None, label: str | None = '')

基类:MixinBaseModel

点类数据的基础数据结构体

label: str | None
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'label': FieldInfo(annotation=Union[str, NoneType], required=False, default=''), 'value': FieldInfo(annotation=Union[float, NoneType], required=False), 'x': FieldInfo(annotation=Union[float, NoneType], required=False), 'y': FieldInfo(annotation=Union[float, NoneType], required=False), 'z': FieldInfo(annotation=Union[float, NoneType], required=False)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

value: float | None
x: float | None
y: float | None
z: float | None