Im trying to build an application in which I need to extract the x,y value of a bokeh line. Im able to do this for a bokeh circle (see below, where I find the x value of the circle is tmp1.glyph.x = 2), but the same syntax doesnt work for a line between two points (tmp1.glyph.x ="x"). I would hope to see [-3,3]. Would be grateful for any advice.
from bokeh.plotting import figure, show
fig = figure(x_range=(-5,5),y_range=(-5, 5))
tmp1=fig.circle(x=2, y=-3, size=5)
tmp=fig.line(x = [-3,3], y = [4,-4])
print(tmp1.glyph.x)
# output: 2
print(tmp.glyph.x)
# output: x
show(fig)