Last updated
Was this helpful?
Last updated
Was this helpful?
GridPlot
widget in Supervisely is used to create a grid of LinePlot
subplots with a given list of data. Users can add plots in real-time, making it useful for interactive data exploration and analysis.
List of data to display on GridPlot
.
type: List[Dict or str]
Determine number of columns on GridPlot
.
type: int
default value: 1
Determine gap between widgets on GridPlot
.
type: int
default value: 10
ID of the widget.
type: str
default value: None
You can find this example in our GitHub repository:
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
GridPlot
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.
data
List[dict or str]
List of data to display on GridPlot
.str
inputs will be recognized as a titles for empty widgets.
columns
int
Number of columns on GridPlot
gap
int
Gap between widgets on GridPlot
widget_id
str
ID of the widget
add_scalar(dentifier: str, y, x)
Add data in GridPlot
.
add_scalars(plot_title: str, new_values: dict, x)
Add series of data in GridPlot
.