Skip to content

Commit 83afcf7

Browse files
authored
Merge pull request #56 from carterturn/carterturn-setTicks-str
Explicitly cast tick labels to strings to avoid PyQtGraph errors.
2 parents 8dbff25 + bee80a7 commit 83afcf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runviewer/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ def _update_non_linear_time(self, changed_shot=False, new_scalehandler=None):
562562
last_time = t
563563

564564
if shot is not None and self.scale_time:
565-
self._time_axis_plot[0].getAxis("bottom").setTicks([[[0, 0], [shot.stop_time, shot.stop_time]]])
565+
self._time_axis_plot[0].getAxis("bottom").setTicks([[[0, str(0)], [shot.stop_time, str(shot.stop_time)]]])
566566
for plot in self.plot_widgets.values():
567-
plot.getAxis("bottom").setTicks([[[0, 0], [shot.stop_time, shot.stop_time]]])
567+
plot.getAxis("bottom").setTicks([[[0, str(0)], [shot.stop_time, str(shot.stop_time)]]])
568568
else:
569569
self._time_axis_plot[0].getAxis("bottom").setTicks(None)
570570
for plot in self.plot_widgets.values():

0 commit comments

Comments
 (0)