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>

this is the result

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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -