Bokeh visualization extension
get_lyp_path()
lyp = read_lyp()
{k: v for k, v in lyp.items() if k in [(19, 0), (10001, 0)]}
get_lyp((19, 0))
box = pya.Box(0.0, 0.0, 5.0, 2.5)
_get_range(box)
box = pya.DBox(0.0, 0.0, 5.0, 2.5)
#box = box.enlarge(pya.DVector(0.5, 0.5))
_get_range(box)
p = new_plot(box)
p.line([0, 1], [0, 1])
bio.show(p)
fig = adjust_plot(p, pya.DBox(-1.0, -1.0, 5.0, 3.0))
bio.show(fig)
fig = new_plot(box)
draw_polys(fig, [pya.DPolygon([pya.DPoint(0, 0), pya.DPoint(2, 0), pya.DPoint(3, 1)])])
bio.show(fig)
fig = new_plot(box)
draw_poly(fig, pya.DPolygon([pya.DPoint(0, 0), pya.DPoint(2, 0), pya.DPoint(3, 1)]), layer=(19, 0))
bio.show(fig)
fig = new_plot(box)
path = pya.DPath([pya.Point(0, 0), pya.Point(10, 0)], 3.0)
draw_path(fig, path)
bio.show(fig)
fig = new_plot(box)
draw_point(fig, pya.Point(0, 0))
bio.show(fig)
fig = new_plot(box)
draw_vector(fig, pya.DVector(3, 4))
bio.show(fig)
fig = new_plot(box)
draw_box(fig, pya.DBox(1.0, 2.0, 4.0, 3.0))
bio.show(fig)