We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aa5a0 commit 91e5558Copy full SHA for 91e5558
backtesting/_plotting.py
@@ -440,8 +440,10 @@ def _plot_pl_section():
440
fig.multi_line(xs='lines',
441
ys=transform('returns', CustomJSTransform(v_func='return [...xs].map(i => [0, i]);')),
442
source=trade_source, color='#999', line_width=1)
443
- r1 = fig.scatter('index', 'returns', source=trade_source, fill_color=cmap,
444
- marker='circle', line_color='black', size='marker_size')
+ trade_source.add(np.take(['inverted_triangle', 'triangle'], trades['Size'] > 0), 'triangles')
+ r1 = fig.scatter(
445
+ 'index', 'returns', source=trade_source, fill_color=cmap,
446
+ marker='triangles', line_color='black', size='marker_size')
447
tooltips = [("Size", "@size{0,0}")]
448
if 'count' in trades:
449
tooltips.append(("Count", "@count{0,0}"))
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments