From 94b6f370a9db853580bb4b70d9c56e834a2549fd Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 17 Jan 2022 09:46:17 -0500 Subject: [PATCH] Allow axis kwargs passthrough --- piker/ui/_chart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index dd665fde..3600c665 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -862,6 +862,7 @@ class ChartPlotWidget(pg.PlotWidget): def overlay_plotitem( self, name: str, + axis_kwargs: dict = {}, ) -> pg.PlotItem: # Custom viewbox impl @@ -875,6 +876,7 @@ class ChartPlotWidget(pg.PlotWidget): yaxis = PriceAxis( orientation='right', linkedsplits=self.linked, + **axis_kwargs, ) plotitem = pg.PlotItem(