Bokeh Square Glyph


In [2]:
from bokeh.plotting import figure, output_file, show
from bokeh.models import Range1d
from bokeh.io import export_png

fill_color = '#af8dc3'
line_color = '#7fbf7b'
output_file("../../figures/square.html")

p = figure(plot_width=400, plot_height=400)
p.square(x=0,y=0,size=100, fill_alpha=1,fill_color=fill_color,
         line_alpha=1, line_color=line_color, line_dash='dashed', line_width=5)
p.square(x=0,y=1,size=100, fill_alpha=0.8, fill_color=fill_color,
         line_alpha=1, line_color=line_color, line_dash='dotdash', line_width=8)
p.square(x=1,y=0,size=100, fill_alpha=0.6, fill_color = fill_color,
         line_alpha=1, line_color=line_color, line_dash='dotted', line_width=13)
p.square(x=1,y=1,size=100, fill_alpha=0.4, fill_color = fill_color,
         line_alpha=1, line_color=line_color, line_dash='solid', line_width=17)
p.x_range = Range1d(-0.5,1.5, bounds=(-1,2))
p.y_range = Range1d(-0.5,1.5, bounds=(-1,2))
show(p)
export_png(p, filename="../../figures/square.png");


E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='2e0bf7a1-deed-4d4a-bd5f-80808a842066', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='7a8f73f8-1e47-4a92-b09d-71e3fd2eb190', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='c9615949-8d76-473f-b3ae-55d9c9dde2ba', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='d4042967-3518-4da4-896c-cfb01803858b', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='2e0bf7a1-deed-4d4a-bd5f-80808a842066', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='7a8f73f8-1e47-4a92-b09d-71e3fd2eb190', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='c9615949-8d76-473f-b3ae-55d9c9dde2ba', ...)]
E-1001 (BAD_COLUMN_NAME): Glyph refers to nonexistent column name: #black [renderer: GlyphRenderer(id='d4042967-3518-4da4-896c-cfb01803858b', ...)]
WARNING:bokeh.io:The webdriver raised a TimeoutException while waiting for                      a 'bokeh:idle' event to signify that the layout has rendered.                      Something may have gone wrong.