mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 05:14:38 +08:00
splitting plot styles: dark for live, default for backtesting
This commit is contained in:
@@ -24,8 +24,6 @@ from matplotlib import style
|
||||
|
||||
log = Logger('LiveGraphClock')
|
||||
|
||||
style.use('dark_background')
|
||||
|
||||
fmt = mdates.DateFormatter('%Y-%m-%d %H:%M')
|
||||
|
||||
|
||||
@@ -63,6 +61,8 @@ class LiveGraphClock(object):
|
||||
self._before_trading_start_bar_yielded = True
|
||||
self.context = context
|
||||
|
||||
style.use('dark_background')
|
||||
|
||||
fig = plt.figure()
|
||||
fig.canvas.set_window_title('Enigma Catalyst: {}'.format(
|
||||
self.context.algo_namespace))
|
||||
|
||||
Reference in New Issue
Block a user