From 584be7dca954146daf0a1524250cc96fa94bcf66 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(