diff --git a/qiskit_ibm_runtime/visualization/draw_execution_spans.py b/qiskit_ibm_runtime/visualization/draw_execution_spans.py index 2fab7180c..dac3c7ce2 100644 --- a/qiskit_ibm_runtime/visualization/draw_execution_spans.py +++ b/qiskit_ibm_runtime/visualization/draw_execution_spans.py @@ -120,7 +120,7 @@ def draw_execution_spans( x_data.extend([span.start - offset, span.stop - offset, None]) y_data.extend([y_value, y_value, None]) - text_data.append(text) + text_data.extend([text] * 3) # add the data to the plot fig.add_trace( diff --git a/release-notes/unreleased/2014.bug.rst b/release-notes/unreleased/2014.bug.rst new file mode 100644 index 000000000..c441ede48 --- /dev/null +++ b/release-notes/unreleased/2014.bug.rst @@ -0,0 +1,2 @@ +Fix the location of hover text on the `draw_execution_spans()` function. Previous to this fix, +they were drawn on the wrong markers. \ No newline at end of file