I’m wondering if it is possible to change titles for @x and @y values depending if they are possitive or negative.
This is what I have
TOOLTIPS = [("Point ", "$index"), (pressure, "@y"), (axial_force, "@x")]
fig = figure(sizing_mode='stretch_both', tooltips=TOOLTIPS)
And this is what I need:
if @x>0:
pressure = "Internal Pressure"
else:
pressure = "External Pressure"
if @y>0:
axial_force = "Tension"
else:
axial_force = "Compression"