---
title: draw_execution_spans (latest version)
description: API reference for qiskit_ibm_runtime.visualization.draw_execution_spans in the latest version of qiskit-ibm-runtime
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/visualization-draw-execution-spans
---

# 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](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/visualization/draw_execution_spans.py#L54-L158)

Draw one or more [`ExecutionSpans`](/docs/api/qiskit-ibm-runtime/execution-span-execution-spans "qiskit_ibm_runtime.execution_span.ExecutionSpans") on a bar plot.

**Parameters**

- **spans** ([*ExecutionSpans*](/docs/api/qiskit-ibm-runtime/execution-span-execution-spans "qiskit_ibm_runtime.execution_span.ExecutionSpans")) – One or more [`ExecutionSpans`](/docs/api/qiskit-ibm-runtime/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 | None*) – Whether to show a legend. By default, this choice is automatic.

**Returns**

A plotly figure.

**Return type**

PlotlyFigure
