{"cells":[
 {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {
   "collapsed": false
  },
  "outputs": [],
  "source": "%matplotlib inline\nfrom bokeh.plotting import figure, output_file, show, output_notebook\noutput_notebook()"
 },
 {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {
   "collapsed": false
  },
  "outputs": [],
  "source": "\n# prepare some data\nx = [0.1, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0]\ny0 = [i**2 for i in x]\ny1 = [10**i for i in x]\ny2 = [10**(i**2) for i in x]\n\n# output to static HTML file\noutput_file(\"log_lines.html\")\n\n# create a new plot\np = figure(\n   tools=\"pan,box_zoom,reset,save\",\n   y_axis_type=\"log\", y_range=[0.001, 10**11], title=\"log axis example\",\n   x_axis_label='sections', y_axis_label='particles'\n)\n\n# add some renderers\np.line(x, x, legend=\"y=x\")\np.circle(x, x, legend=\"y=x\", fill_color=\"white\", size=8)\np.line(x, y0, legend=\"y=x^2\", line_width=3)\np.line(x, y1, legend=\"y=10^x\", line_color=\"red\")\np.circle(x, y1, legend=\"y=10^x\", fill_color=\"red\", line_color=\"red\", size=6)\np.line(x, y2, legend=\"y=10^x^2\", line_color=\"orange\", line_dash=\"4 4\")\n\n# show the results\nshow(p)"
 }
],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}}, "nbformat": 4, "nbformat_minor": 0}