prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Draw Legend After WebGL glyphs
  <img width="906" alt="screen shot 2016-06-24 at 6 50 29 pm" src="https://cloud.githubusercontent.com/assets/433221/16357521/c6f00a1c-3abe-11e6-8835-0e4bb17550d4.png">
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `examples/webgl/iris_blend.py`
  Content:
  ```
  1 """ The iris dataset, drawn twice with semi-transparent markers. This is
  2 an interesting use-case to test blending, because several samples itself
  3 overlap, and by drawing the set twice with different colors, we realize
  4 even more interesting blending. Also note how this makes use of
  5 different ways to specify (css) colors. This example is a good reference
  6 to test WebGL blending.
  7 
  8 """
  9 
  10 from bokeh.plotting import figure, show, output_file
  11 from bokeh.sampledata.iris import flowers
  12 
  13 colormap1 = {'setosa': 'rgb(255, 0, 0)',
  14              'versicolor': 'rgb(0, 255, 0)',
  15              'virginica': 'rgb(0, 0, 255)'}
  16 colors1 = [colormap1[x] for x in flowers['species']]
  17 
  18 colormap2 = {'setosa': '#0f0', 'versicolor': '#0f0', 'virginica': '#f00'}
  19 colors2 = [colormap2[x] for x in flowers['species']]
  20 
  21 p = figure(title = "Iris Morphology", webgl=True)
  22 p.xaxis.axis_label = 'Petal Length'
  23 p.yaxis.axis_label = 'Petal Width'
  24 
  25 p.diamond(flowers["petal_length"], flowers["petal_width"],
  26           color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25)
  27 
  28 p.circle(flowers["petal_length"], flowers["petal_width"],
  29          color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10)
  30 
  31 output_file("iris_blend.html", title="iris_blend.py example")
  32 
  33 show(p)
  34
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/examples/webgl/iris_blend.py b/examples/webgl/iris_blend.py
  --- a/examples/webgl/iris_blend.py
  +++ b/examples/webgl/iris_blend.py
  @@ -23,10 +23,10 @@
   p.yaxis.axis_label = 'Petal Width'
   
   p.diamond(flowers["petal_length"], flowers["petal_width"],
  -          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25)
  +          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25, legend='diamonds')
   
   p.circle(flowers["petal_length"], flowers["petal_width"],
  -         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10)
  +         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10, legend='circles')
   
   output_file("iris_blend.html", title="iris_blend.py example")
  
verification_info: {"golden_diff": "diff --git a/examples/webgl/iris_blend.py b/examples/webgl/iris_blend.py\n--- a/examples/webgl/iris_blend.py\n+++ b/examples/webgl/iris_blend.py\n@@ -23,10 +23,10 @@\n p.yaxis.axis_label = 'Petal Width'\n \n p.diamond(flowers[\"petal_length\"], flowers[\"petal_width\"],\n-          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25)\n+          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25, legend='diamonds')\n \n p.circle(flowers[\"petal_length\"], flowers[\"petal_width\"],\n-         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10)\n+         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10, legend='circles')\n \n output_file(\"iris_blend.html\", title=\"iris_blend.py example\")\n", "issue": "Draw Legend After WebGL glyphs\n<img width=\"906\" alt=\"screen shot 2016-06-24 at 6 50 29 pm\" src=\"https://cloud.githubusercontent.com/assets/433221/16357521/c6f00a1c-3abe-11e6-8835-0e4bb17550d4.png\">\n\n", "before_files": [{"content": "\"\"\" The iris dataset, drawn twice with semi-transparent markers. This is\nan interesting use-case to test blending, because several samples itself\noverlap, and by drawing the set twice with different colors, we realize\neven more interesting blending. Also note how this makes use of\ndifferent ways to specify (css) colors. This example is a good reference\nto test WebGL blending.\n\n\"\"\"\n\nfrom bokeh.plotting import figure, show, output_file\nfrom bokeh.sampledata.iris import flowers\n\ncolormap1 = {'setosa': 'rgb(255, 0, 0)',\n             'versicolor': 'rgb(0, 255, 0)',\n             'virginica': 'rgb(0, 0, 255)'}\ncolors1 = [colormap1[x] for x in flowers['species']]\n\ncolormap2 = {'setosa': '#0f0', 'versicolor': '#0f0', 'virginica': '#f00'}\ncolors2 = [colormap2[x] for x in flowers['species']]\n\np = figure(title = \"Iris Morphology\", webgl=True)\np.xaxis.axis_label = 'Petal Length'\np.yaxis.axis_label = 'Petal Width'\n\np.diamond(flowers[\"petal_length\"], flowers[\"petal_width\"],\n          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25)\n\np.circle(flowers[\"petal_length\"], flowers[\"petal_width\"],\n         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10)\n\noutput_file(\"iris_blend.html\", title=\"iris_blend.py example\")\n\nshow(p)\n", "path": "examples/webgl/iris_blend.py"}], "after_files": [{"content": "\"\"\" The iris dataset, drawn twice with semi-transparent markers. This is\nan interesting use-case to test blending, because several samples itself\noverlap, and by drawing the set twice with different colors, we realize\neven more interesting blending. Also note how this makes use of\ndifferent ways to specify (css) colors. This example is a good reference\nto test WebGL blending.\n\n\"\"\"\n\nfrom bokeh.plotting import figure, show, output_file\nfrom bokeh.sampledata.iris import flowers\n\ncolormap1 = {'setosa': 'rgb(255, 0, 0)',\n             'versicolor': 'rgb(0, 255, 0)',\n             'virginica': 'rgb(0, 0, 255)'}\ncolors1 = [colormap1[x] for x in flowers['species']]\n\ncolormap2 = {'setosa': '#0f0', 'versicolor': '#0f0', 'virginica': '#f00'}\ncolors2 = [colormap2[x] for x in flowers['species']]\n\np = figure(title = \"Iris Morphology\", webgl=True)\np.xaxis.axis_label = 'Petal Length'\np.yaxis.axis_label = 'Petal Width'\n\np.diamond(flowers[\"petal_length\"], flowers[\"petal_width\"],\n          color=colors1, line_alpha=0.5, fill_alpha=0.2, size=25, legend='diamonds')\n\np.circle(flowers[\"petal_length\"], flowers[\"petal_width\"],\n         color=colors2, line_alpha=0.5, fill_alpha=0.2, size=10, legend='circles')\n\noutput_file(\"iris_blend.html\", title=\"iris_blend.py example\")\n\nshow(p)\n", "path": "examples/webgl/iris_blend.py"}]}