LinePlot2DView
LinePlot2DView
Base class for creating 2d-line plots.
The view model is:
{
"type": "line-plot-2d-view",
"title": str,
"caption": str,
"data": {
"x_label": str,
"y_label": str,
"x_tick_labels": List[str] | None,
"series": [
{
"data": {
"x": List[Float],
"y": List[Float],
"tags": List[Dict[str,str]] | None
},
"x_name": str,
"y_name": str,
},
...
]
}
}
See also ScatterPlot2DView
x_label: strx_tick_labels: Listy_label: strInitialize self. See help(type(self)) for accurate signature.
Add a series of points to plot
ListListstrstrstrListAdd technical info
TechnicalInfoCopy the view information from another view
ViewConvert to dictionary
ConfigParamsdictMark the view as not interactive, disable the pagination
Get style
TypingStyleGet technical info dict
strTechnicalInfoGet technical info
TechnicalInfoDictGet title
OptionalGet type
ViewTypeIs favorite
boolIs interaction disabled
boolSet favorite
boolSet typing style for this view instance. This overrides the style defines in the view decorator and the default style of the view type With this you can define a custom style for a specific view instance when you view is generic.
TypingStyleSet technical info
TechnicalInfoDictSet title
strConvert to DTO
ConfigParamsViewDTOGenerate range list like 0,1,2...length
intListConfigSpecsMethod that return true is the provided json is a json of a view
Anybool