Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

BaseDrawer.line

abstract BaseDrawer.line(x_data, y_data, name=None, label=None, legend=False, **options)[source]

Draw a line.

Parameters:
  • x_data (Sequence[float]) – X values.

  • y_data (Sequence[float]) – Y values.

  • name (Union[str, int, float, None]) – Name of this series.

  • label (Optional[str]) – Optional legend label to override name and series_params.

  • legend (bool) – Whether the drawn area must have a legend entry. Defaults to False. The series label in the legend will be label if it is not None. If it is, then series_params is searched for a "label" entry for the series identified by name. If this is also None, then name is used as the fallback. If no name is provided, then no legend entry is generated.

  • options – Valid options for the drawer backend API.