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.

BasePlotter.set_series_data

BasePlotter.set_series_data(series_name, **data_kwargs)[source]

Sets data for the given series.

Note that if data has already been assigned for the given series and data key, it will be overwritten with the new values. set_series_data will warn if the data key is unexpected; i.e., not within those returned by expected_series_data_keys().

Parameters:
  • series_name (Union[str, int, float]) – The name of the given series.

  • data_kwargs – The data to be added, where the keyword is the data key.