Support chart draw-api-kwargs-passthrough in lined plot meths
parent
1b888d273f
commit
2aeddaa805
|
@ -528,6 +528,8 @@ class LinkedSplits(QWidget):
|
||||||
|
|
||||||
style: str = 'ohlc_bar',
|
style: str = 'ohlc_bar',
|
||||||
|
|
||||||
|
**add_plot_kwargs,
|
||||||
|
|
||||||
) -> ChartPlotWidget:
|
) -> ChartPlotWidget:
|
||||||
'''
|
'''
|
||||||
Start up and show main (price) chart and all linked subcharts.
|
Start up and show main (price) chart and all linked subcharts.
|
||||||
|
@ -552,6 +554,7 @@ class LinkedSplits(QWidget):
|
||||||
style=style,
|
style=style,
|
||||||
_is_main=True,
|
_is_main=True,
|
||||||
sidepane=sidepane,
|
sidepane=sidepane,
|
||||||
|
**add_plot_kwargs,
|
||||||
)
|
)
|
||||||
# add crosshair graphic
|
# add crosshair graphic
|
||||||
self.chart.addItem(self.cursor)
|
self.chart.addItem(self.cursor)
|
||||||
|
@ -576,6 +579,7 @@ class LinkedSplits(QWidget):
|
||||||
_is_main: bool = False,
|
_is_main: bool = False,
|
||||||
|
|
||||||
sidepane: Optional[QWidget] = None,
|
sidepane: Optional[QWidget] = None,
|
||||||
|
draw_kwargs: dict = {},
|
||||||
|
|
||||||
**cpw_kwargs,
|
**cpw_kwargs,
|
||||||
|
|
||||||
|
@ -701,12 +705,12 @@ class LinkedSplits(QWidget):
|
||||||
# draw curve graphics
|
# draw curve graphics
|
||||||
if style == 'ohlc_bar':
|
if style == 'ohlc_bar':
|
||||||
|
|
||||||
# graphics, data_key = cpw.draw_ohlc(
|
|
||||||
viz = cpw.draw_ohlc(
|
viz = cpw.draw_ohlc(
|
||||||
name,
|
name,
|
||||||
shm,
|
shm,
|
||||||
flume=flume,
|
flume=flume,
|
||||||
array_key=array_key
|
array_key=array_key,
|
||||||
|
**draw_kwargs,
|
||||||
)
|
)
|
||||||
self.cursor.contents_labels.add_label(
|
self.cursor.contents_labels.add_label(
|
||||||
cpw,
|
cpw,
|
||||||
|
@ -724,6 +728,7 @@ class LinkedSplits(QWidget):
|
||||||
flume,
|
flume,
|
||||||
array_key=array_key,
|
array_key=array_key,
|
||||||
color='default_light',
|
color='default_light',
|
||||||
|
**draw_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
elif style == 'step':
|
elif style == 'step':
|
||||||
|
@ -737,6 +742,7 @@ class LinkedSplits(QWidget):
|
||||||
step_mode=True,
|
step_mode=True,
|
||||||
color='davies',
|
color='davies',
|
||||||
fill_color='davies',
|
fill_color='davies',
|
||||||
|
**draw_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue