0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

matplotlib ~ 3Dグラフに点を書く

Posted at

pythonで3Dデータを描画するには以下のように書きます.

prot_3d.py
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = Axes3D(fig)

ax.set_xlabel("X")
ax.set_ylabel("Y")
ax.set_zlabel("Z")

ax.set_xlim(-300,300)
ax.set_ylim(-300,300)
ax.set_zlim(-200,200)

x = 0
y = 0
z = 0
ax.plot([x],[y],[z],marker="o",linestyle='None')

plt.show()

Figure_1.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?