python - Scatter plot with arrows using matplotlib -
I'm trying to create a scatter plot in matplotlib with an arrow coming out of the points to indicate the upper limit At the end I have done the following:
arrow = u '$ \ u2193 $' ax.plot (x, y, linestyle = 'none', marker size = 20, marker = Arrow) Ax.plot (x, y, linestyle = 'none', markersize = 10, marker = 'o')
However, I am not completely satisfied with the results - / P>
to come to me Arrow is out of the middle of the point, then that point + arrow looks like a shape, is there any way to do this?
Thank you!
You can do this with Thiracer
to create a plot filled with arrows For situation and direction takes data. But they will start at x, y instead of being centered (as you have been found in the plot)
x = [4.07.0,4.5] y = [3.0,1.0,5.5] Ax = ([0,0,0] V = [1,1,1] fig, ax = subdivision () ax (x, y, u, v) ax.scatter (x, y, color = 'k') ax .axis ([0,10,0,10])
Comments
Post a Comment