I am trying to build a plot in 3d with matplotlib which has a dot at [0,0,0] and a quiver (vector) "looking" to it from [10, 10, 10]. But when I run the code I only get the dot. Why is that and how can I fix it? Code:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.axes(projection="3d")
ax.set_xlim3d(0, 20)
ax.set_ylim3d(0, 20)
ax.set_zlim3d(0, 20)
ax.quiver(10, 10, 10, 0, 0, 0, length=2)
ax.scatter(0,0,0)
plt.show()
source https://stackoverflow.com/questions/71653186/matplotlib-not-showing-quiver-to-0-0-0
Comments
Post a Comment