DOC: jupyter notebook in beginner tutorial

This commit is contained in:
Victor Grau Serrat
2017-10-20 14:51:01 -06:00
parent 5d5ec6b9be
commit b1d5acf2ad
+1 -1
View File
@@ -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)