Conditions | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
1 | import numpy as np |
||
10 | def bokeh_lda_vis(data=None): |
||
11 | output_file("circles.html") |
||
12 | |||
13 | plot = figure() |
||
14 | xcoords = data["x"] |
||
15 | ycoords = data["y"] |
||
16 | frequency = data["Freq"] |
||
17 | for x, y, size in zip(xcoords, ycoords, frequency): |
||
18 | plot.circle(x, y, size=(size*2)) |
||
19 | |||
20 | # curdoc().add_root(plot) |
||
21 | # session = push_session(curdoc()) |
||
22 | # script = autoload_server(model=None, session_id=session.id) |
||
23 | # return script |
||
24 | show(plot) |
||
25 | |||
29 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.