我想做两件事来改进演示文稿:
我希望看起来像这样的东西,除了子图之间没有任何空格。 http://blog.yhat.com/static/img/figures/diamonds_density_facet_grid.png
非常感谢任何帮助。这是我到目前为止的代码。
from bokeh.io import gridplot, output_file, show
from bokeh.plotting import figure
output_file("layout.html")
x = list(range(11))
y = x
y1 = [10-i for i in x]
y2 = [abs(i-5) for i in x]
s1 = figure(width=250, height=250, title=None)
s1.circle(x, y, size=10, color="navy", alpha=0.5)
s2 = figure(width=250, height=250, x_range=s1.x_range, y_range=s1.y_range, title=None)
s2.triangle(x, y1, size=10, color="firebrick", alpha=0.5)
s3 = figure(width=250, height=250, x_range=s1.x_range, y_range=s1.y_range, title=None)
s3.square(x, y2, size=10, color="olive", alpha=0.5)
p = gridplot([[s1, None], [s2, s3]])
show(p)