18

I've been poking around the Bokeh API docs for a few hours, and haven't found anything relevant. So I wanted to ask if anyone knows whether or not the Bokeh API supports 3D ploting (similar to what you can do in matplotlib with mpl_toolkits.mplot3d)?

Krupal Panchal
  • 1,553
  • 2
  • 13
  • 26
semore_1267
  • 1,327
  • 2
  • 14
  • 29

1 Answers1

11

You'd have to use the Surface3d custom model example.

You won't have to write any JavaScript, but you'll have to copy over the Surface3d class and inline JavaScript, then create your own instance of it.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Luke Canavan
  • 2,107
  • 12
  • 13
  • 6
    I think the question is how to use it. And provide a minimal example. – Soerendip May 22 '18 at 19:18
  • 3
    What's linked in the docs *is* a minimal example (that's explicitly what I wrote it to be) but it is far too big to include directly inline here. However the question to me asks if there is built in 3d support, and the answer to that is "no" (but you can create your own custom extension) – bigreddot Sep 02 '18 at 14:41
  • do you know why I'm getting "SyntaxError: EOF while scanning triple-quoted string literal" error? I'm on a Mac, using VSCode. – Raksha Apr 16 '19 at 20:07
  • 3
    too sad bokeh not support 3d plotting – Jiadong Sep 12 '20 at 07:24