Don't use separate axes by default, force empty default axes set

plotitem_overlays
Tyler Goodlet 2022-01-24 15:21:05 -05:00
parent 3225f254f4
commit 65c3cc5f5f
1 changed files with 4 additions and 3 deletions

View File

@ -856,7 +856,7 @@ class ChartPlotWidget(pg.PlotWidget):
array_key: Optional[str] = None, array_key: Optional[str] = None,
overlay: bool = False, overlay: bool = False,
separate_axes: bool = True, separate_axes: bool = False,
color: Optional[str] = None, color: Optional[str] = None,
add_label: bool = True, add_label: bool = True,
@ -937,6 +937,7 @@ class ChartPlotWidget(pg.PlotWidget):
# 'bottom': xaxis, # 'bottom': xaxis,
'right': yaxis, 'right': yaxis,
}, },
default_axes=[],
) )
# plotitem.setAxisItems( # plotitem.setAxisItems(
# add_to_layout=False, # add_to_layout=False,
@ -950,8 +951,8 @@ class ChartPlotWidget(pg.PlotWidget):
plotitem.addItem(curve) plotitem.addItem(curve)
# config # config
plotitem.enableAutoRange(axis='y') # plotitem.enableAutoRange(axis='y')
plotitem.setAutoVisible(y=True) # plotitem.setAutoVisible(y=True)
plotitem.hideButtons() plotitem.hideButtons()
self.overlay.add_plotitem( self.overlay.add_plotitem(