darpa-xdata / xlang

Other
21 stars 9 forks source link

box violin plot gives error #22

Closed aterrel closed 10 years ago

aterrel commented 10 years ago

@pzwang With bokeh master:

± |master ✗| → python boxviolin.py
Traceback (most recent call last):
  File "boxviolin.py", line 86, in <module>
    filemain()
  File "boxviolin.py", line 71, in filemain
    doc.show()
AttributeError: 'Document' object has no attribute 'show'

And with Bokeh v 0.5.1

± |master ✗| → python boxviolin.py
Traceback (most recent call last):
  File "boxviolin.py", line 86, in <module>
    filemain()
  File "boxviolin.py", line 63, in filemain
    p = _maketestplot()
  File "boxviolin.py", line 59, in _maketestplot
    p = make_box_violin_plot(data, 10)
  File "boxviolin.py", line 42, in make_box_violin_plot
    plot.below.append(xaxis)
AttributeError: 'Plot' object has no attribute 'below'
pzwang commented 10 years ago

Can you update the status of this based on FD chats/developments? I'm not sure how the first traceback could be occurring, since it's not in the code I checked in? https://github.com/pzwang/xlang/blob/master/webgraph/vis/bokeh/boxviolin.py#L71

The second results from a bug in 0.5.1; you should be running off master for this.

I do need to check in a fix for plotting.py on master, which I'm working on right now.

aterrel commented 10 years ago

I've rewritten the code. Sorry for not updating the issue.

Yes the first error was me trying to get it to work that line you linked to to work. save("violin.html", obj=doc) threw a KeywordError, but maybe it works now that master has been updated.

Closing this issue.