Skip to content

Commit

Permalink
Minor improvements to the L-systems topics notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 25, 2017
1 parent a9f77ae commit b8895eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/topics/geometry/lsystems.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
" self.x, self.y = x,y\n",
" self.heading = heading\n",
" self.trace = [(self.x, self.y)]\n",
" self.state = None\n",
" \n",
" def forward(self, distance):\n",
" self.x += np.cos(2*np.pi * self.heading/360.0)\n",
Expand Down Expand Up @@ -417,7 +416,7 @@
" path.extents = (minx-xpadding, miny-ypadding, maxx+xpadding, maxy+ypadding)\n",
" return path\n",
" \n",
"hmap = hv.HoloMap()\n",
"hmap = hv.HoloMap(kdims=['Iteration'])\n",
"for i in range(7,17):\n",
" path = Agent(-200, 0, expand_rules('FX', i, dragon_curve), rules=dragon_rules, angle=90).path\n",
" hmap[i] = pad_extents(path)\n",
Expand Down Expand Up @@ -528,7 +527,7 @@
"outputs": [],
"source": [
"%%opts Path {+framewise} (color='g' line_width=1)\n",
"hmap = hv.HoloMap()\n",
"hmap = hv.HoloMap(kdims=['Iteration'])\n",
"for i in range(7):\n",
" instructions = expand_rules('X', i, plant_fractal)\n",
" if i > 2:\n",
Expand Down

0 comments on commit b8895eb

Please sign in to comment.