neuniversity / ALY6140

1 stars 3 forks source link

Question for the empty bokeh plot #24

Open aanranran opened 5 years ago

aanranran commented 5 years ago

For week 4 assignment, everytime I generating the plot using bokeh, I came with an empty graph with no figure inside. This issue cannot be solved after I restart the JupterNootbook or computer. I don't know what's wrong with it and I hope if someone could help me with this situation? My code is given by following:

Generate the plots using bokeh

from bokeh.plotting import figure, output_notebook, show output_notebook() p = figure(x_axis_label='total_bill', y_axis_label='tip') p.circle(tips.total_bill, tips.tip, size=tips,color='black') show(p)

echolq012 commented 5 years ago

Hi Ran, I think the empty graph is due to the 'size=tips'. Please delate that and have a try. The size inside the p.circle is the size of the circle.

hansu101 commented 5 years ago

Hello, Ran If you use "holoviews", we can easy to generate a Boxplot! The below website has detailed info "http://holoviews.org/reference/elements/bokeh/BoxWhisker.html. With the code "hv.BoxWhisker", we can easily approach the question!