Raj
Raj

Reputation: 3462

matplotlib Dashed arrow in 3D plots

I am drawing a 3D plot and thinking what is the best way to plot an arrow from one point to another for a given set of co-ordinates.

I found a method in this forum. I wanted to know if it is possible to have a dashed arrow instead of a solid one in this example

Upvotes: 4

Views: 5689

Answers (1)

Raj
Raj

Reputation: 3462

I found out that we can add an option as linestyle="dashed" to the same example in Arrow3D as

a = Arrow3D([0,1],[0,1],[0,1], mutation_scale=20, lw=1, arrowstyle="-|>", color="k", linestyle="dashed")

linestyle = "--" does not work because of reason mentioned here in the forum.

Upvotes: 7

Related Questions