Skip to main contentIBM Quantum Documentation
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit_ibm_runtime.visualization.draw_execution_spans

draw_execution_spans(*spans, names=None, common_start=False, normalize_y=False, line_width=4, show_legend=None)

GitHub

Draw one or more ExecutionSpans on a bar plot.

Parameters

  • spans (ExecutionSpans) – One or more ExecutionSpans.
  • names (str | Iterable[str] | None) – Name or names to assign to respective spans.
  • common_start (bool) – Whether to shift all collections of spans so that their first span’s start is at t=0t=0.
  • normalize_y (bool) – Whether to display the y-axis units as a percentage of work complete, rather than cumulative shots completed.
  • line_width (int) – The thickness of line segments.
  • show_legend (bool) – Whether to show a legend. By default, this choice is automatic.

Returns

A plotly figure.

Return type

PlotlyFigure

Was this page helpful?
Report a bug or request content on GitHub.