Text on the middle of a line plot scatter

Plotting text with your data (mode=β€˜text’) only allows the data to appear at your data points. To add text to your graph between your data points you could add an annotation: https://plot.ly/python/text-and-annotations/#simple-annotation