this is my code # Decel phase
ax1.plot(x_DMAX, y_DMAX, label=f"Decelartion Phase", linestyle="-")
ax1.scatter(x_DMAX[-1], y_DMAX[-1], color="orange", s=100, marker="*")
ax1.annotate(
"Dmax",
(x_DMAX[-1], y_DMAX[-1]),
textcoords="offset points",
color="orange",
xytext=(0, 10),
ha="center",
fontsize=10,
)
Infl phase
ax1.plot(
x_SPEED_OF_INFLEXION,
y_SPEED_OF_INFLEXION,
label=f"Inflexion Phase",
linestyle="-",
)
ax1.scatter(
x_SPEED_OF_INFLEXION[-1], y_SPEED_OF_INFLEXION[-1], color="blue", s=100, marker="*"
)
ax1.annotate(
"Inf_Spd",
(x_SPEED_OF_INFLEXION[-1], y_SPEED_OF_INFLEXION[-1]),
textcoords="offset points",
color="blue",
xytext=(0, 10),
ha="center",
fontsize=10,
)
ax1.plot(
[x_SPEED_OF_INFLEXION[-1], x_SPEED_OF_INFLEXION[-1]],
[y_lim, y_SPEED_OF_INFLEXION[-1]],
color="blue",
linestyle=":",
)
Stop phase
ax1.plot(x_STOP, y_STOP, label=f"Stop Phase", linestyle="-")
ax1.scatter(x_GPP[-1], y_GPP[-1], color="green", s=100, marker="*")
ax1.annotate(
"Gpp",
(x_GPP[-1], y_GPP[-1]),
textcoords="offset points",
color="green",
xytext=(0, 10),
ha="center",
fontsize=10,
)
Stop approach phase
ax1.plot(
x_DECEL_GRADIENT, y_DECEL_GRADIENT, label=f"Stop approach Phase", linestyle="-"
)
ax1.scatter(x_DECEL_GRADIENT[-1], y_DECEL_GRADIENT[-1], color="blue", s=100, marker="*")
ax1.annotate(
"G1s",
(x_DECEL_GRADIENT[-1], y_DECEL_GRADIENT[-1]),
textcoords="offset points",
color="blue",
xytext=(0, 10),
ha="center",
fontsize=10,
)
ax1.plot(
[x_values[-1], x_values[-1]],
[0, y_lim],
color="black",
linestyle=":",
)
ax1.set_ylim(y_lim, -y_lim)
ax1.legend()
ax1.grid(True)
ax2 = ax1.twinx()
ax2.plot(x_values, integral_values, linestyle="-", color="#6699FF")
ax2.set_ylabel("Vehicle Speed [km/h]", color="#6699FF")
ax2.yaxis.set_major_locator(MultipleLocator(5))
ax2.tick_params(axis="y", colors="#6699FF")
st.pyplot(fig) how to make it with bokeh