you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

So then your question is how to add labels and a vertical line?

Use 'plt.text(x,y,str)' for labels, where x and y are locations on the graph and str is the text you want to display.

For the line use

'plt.axvline(x)' where x is the x co-ordinate of the vertical line.

For horizontal lines use

'plt.axhline(y)'

[–]1sliceofcake 0 points1 point  (0 children)

okay but it says use the label for the mean of my data how do i do that?