Skip to content

Instantly share code, notes, and snippets.

@aterrel
Last active August 29, 2015 14:13
Show Gist options
  • Save aterrel/2f07dd30c5121f9c05d5 to your computer and use it in GitHub Desktop.
Save aterrel/2f07dd30c5121f9c05d5 to your computer and use it in GitHub Desktop.
import bokeh.plotting as plt
words = ['air', 'atm', 'atm', 'complexes', 'internal', 'oxidizer']
topics = ['b', 'a', 'b', 'a', 'a', 'b']
sizes = [0.17070214219087501,
0.20783267646346201,
0.17070214219087501,
0.20783267646346201,
0.20783267646346201,
0.17070214219087501]
plt.output_file('foo2.html')
p = plt.figure(x_range=list(set(topics)),
y_range=list(set(words)),
plot_width=800, plot_height=600,
title="Plot", tools='resize, save')
p.circle(x=topics, y=words, size=sizes, fill_alpha=0.6)
plt.show(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment