Skip to content

Instantly share code, notes, and snippets.

@sbassi
Created May 5, 2020 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbassi/8930492262cb94827dbb2b8b9eceea5e to your computer and use it in GitHub Desktop.
Save sbassi/8930492262cb94827dbb2b8b9eceea5e to your computer and use it in GitHub Desktop.
from bokeh.plotting import figure, output_file, show
from pandas import read_csv
df = read_csv('../samples/fishdata.csv')
p = figure(plot_height=600, plot_width=700,
title = 'Metabolic variations based on 1H NMR profiling of fishes')
p.xaxis.axis_label = 'Principal Component 1: 35.8%'
p.yaxis.axis_label = 'Principal Component 2: 15.1%'
p.scatter('PC1', 'PC2', source=df, size=12, fill_alpha=0.3)
output_file('scatter.html')
show(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment