34 lines
1.7 KiB
Plaintext
34 lines
1.7 KiB
Plaintext
---
|
||
title: draw_execution_spans (v0.35)
|
||
description: API reference for qiskit_ibm_runtime.visualization.draw_execution_spans in qiskit-ibm-runtime v0.35
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit_ibm_runtime.visualization.draw_execution_spans
|
||
---
|
||
|
||
<span id="qiskit-ibm-runtime-visualization-draw-execution-spans" />
|
||
|
||
# qiskit\_ibm\_runtime.visualization.draw\_execution\_spans
|
||
|
||
<Function id="qiskit_ibm_runtime.visualization.draw_execution_spans" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.35/qiskit_ibm_runtime/visualization/draw_execution_spans.py#L51-L155" signature="draw_execution_spans(*spans, names=None, common_start=False, normalize_y=False, line_width=4, show_legend=None)">
|
||
Draw one or more [`ExecutionSpans`](execution-span-execution-spans "qiskit_ibm_runtime.execution_span.ExecutionSpans") on a bar plot.
|
||
|
||
**Parameters**
|
||
|
||
* **spans** ([*ExecutionSpans*](execution-span-execution-spans "qiskit_ibm_runtime.execution_span.ExecutionSpans")) – One or more [`ExecutionSpans`](execution-span-execution-spans "qiskit_ibm_runtime.execution_span.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=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
|
||
</Function>
|
||
|