mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-04 12:45:06 +08:00
DOC: jupyter notebook in beginner tutorial
This commit is contained in:
@@ -517,7 +517,7 @@ a function we use in the ``handle_data()`` section:
|
||||
long_mavg=long_mavg)
|
||||
|
||||
def analyze(context, perf):
|
||||
import matplotlib as plt
|
||||
import matplotlib.pyplot as plt
|
||||
fig = plt.figure()
|
||||
ax1 = fig.add_subplot(211)
|
||||
perf.portfolio_value.plot(ax=ax1)
|
||||
|
||||
Reference in New Issue
Block a user