From 65c3cc5f5fb7d4e3d94af947f72a78208a94715b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 24 Jan 2022 15:21:05 -0500 Subject: [PATCH] Don't use separate axes by default, force empty default axes set --- piker/ui/_chart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index c9272c47..b1bdd345 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -856,7 +856,7 @@ class ChartPlotWidget(pg.PlotWidget): array_key: Optional[str] = None, overlay: bool = False, - separate_axes: bool = True, + separate_axes: bool = False, color: Optional[str] = None, add_label: bool = True, @@ -937,6 +937,7 @@ class ChartPlotWidget(pg.PlotWidget): # 'bottom': xaxis, 'right': yaxis, }, + default_axes=[], ) # plotitem.setAxisItems( # add_to_layout=False, @@ -950,8 +951,8 @@ class ChartPlotWidget(pg.PlotWidget): plotitem.addItem(curve) # config - plotitem.enableAutoRange(axis='y') - plotitem.setAutoVisible(y=True) + # plotitem.enableAutoRange(axis='y') + # plotitem.setAutoVisible(y=True) plotitem.hideButtons() self.overlay.add_plotitem(