Skip to content

Commit

Permalink
[BC] correct unit for z + zorder to disaply cursor above colorbar
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-t committed Feb 11, 2022
1 parent 0d6c7de commit 709b746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SciDataTool/GUI/DDataPlotter/DDataPlotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def format_coord(x, y, z=None, sep=", ", ind=None):
else:
zlabel = latex(self.data._name)

zunit = "[" + latex(self.data.unit) + "]"
zunit = "[" + latex(output_range["unit"]) + "]"

if zlabel == "W" and "dBA" in zunit:
zlabel = "ASWL"
Expand Down Expand Up @@ -412,6 +412,7 @@ def set_cursor(event):
self.ax.texts[-1].set_visible(True)
self.ax.lines[-1].set_visible(True)
self.ax.lines[-2].set_visible(True)
self.ax.zorder = 10
self.canvas.draw()

def delete_cursor(event):
Expand Down

0 comments on commit 709b746

Please sign in to comment.