Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Chapter 01/Chapter 01 Walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
"for delta in np.random.normal(0,0.5,500):\n",
" ys.append(ys[-1] + delta)\n",
" \n",
"# safely create the figures directory\n",
"from pathlib import Path\n",
"Path(\"figures\").mkdir(parents=True, exist_ok=True)\n",
" \n",
"plt.plot(ys)\n",
"plt.ylabel('Stock Price ($)')\n",
"plt.xlabel('Elapsed Time (min)')\n",
Expand Down
2 changes: 1 addition & 1 deletion Chapter 03/draw3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, xs, ys, zs, *args, **kwargs):

def draw(self, renderer):
xs3d, ys3d, zs3d = self._verts3d
xs, ys, zs = proj3d.proj_transform(xs3d, ys3d, zs3d, renderer.M)
xs, ys, zs = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M)
self.set_positions((xs[0],ys[0]),(xs[1],ys[1]))
FancyArrowPatch.draw(self, renderer)

Expand Down