Skip to content

Commit

Permalink
Fix draw_execution_spans() hover text placement (#2014)
Browse files Browse the repository at this point in the history
* Fix draw_execution_spans() hover text.

* add reno
  • Loading branch information
ihincks authored Nov 4, 2024
1 parent 9f2dad5 commit 6f0c7f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_ibm_runtime/visualization/draw_execution_spans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions release-notes/unreleased/2014.bug.rst
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 6f0c7f8

Please sign in to comment.