From 79160619bc499cd30926d93e565601849cba37c4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 11 Mar 2022 15:16:31 -0500 Subject: [PATCH] Drop old type annot --- piker/ui/_cursor.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index ad3ddc98..c902fcb8 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -295,7 +295,8 @@ class ContentsLabels: class Cursor(pg.GraphicsObject): - '''Multi-plot cursor for use on a ``LinkedSplits`` chart (set). + ''' + Multi-plot cursor for use on a ``LinkedSplits`` chart (set). ''' def __init__( @@ -310,7 +311,7 @@ class Cursor(pg.GraphicsObject): self.linked = linkedsplits self.graphics: dict[str, pg.GraphicsObject] = {} - self.plots: List['PlotChartWidget'] = [] # type: ignore # noqa + self.plots: list['PlotChartWidget'] = [] # type: ignore # noqa self.active_plot = None self.digits: int = digits self._datum_xy: tuple[int, float] = (0, 0) @@ -439,7 +440,10 @@ class Cursor(pg.GraphicsObject): if plot.linked.xaxis_chart is plot: xlabel = self.xaxis_label = XAxisLabel( parent=self.plots[plot_index].getAxis('bottom'), - # parent=self.plots[plot_index].pi_overlay.get_axis(plot.plotItem, 'bottom'), + # parent=self.plots[plot_index].pi_overlay.get_axis( + # plot.plotItem, 'bottom' + # ), + opacity=_ch_label_opac, bg_color=self.label_color, )