File:Catenoid.gif
頁面內容不支援其他語言。
Catenoid.gif (800 × 600 像素,檔案大小:1.47 MB,MIME 類型:image/gif、循環、31 畫格、6.2秒)
摘要
描述Catenoid.gif |
English: Construction of a catenoid as the rotation of a catenary arc.
Español: Construcción de un catenoide como la rotación de un arco de catenaria.
Türkçe: Bir katenoidin zincir eğrisinin dönüşü ile yapımı. |
日期 | |
來源 | 自己的作品 |
作者 | Nicoguaro |
GIF開發 InfoField | 本GIF 點陣圖使用Matplotlib創作。 |
原始碼 InfoField | Python codeimport numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import rcParams
# In Windows the next line should provide the full path to convert.exe
# since convert is a Windows command
rcParams['animation.convert_path'] = "C:\Program Files\ImageMagick-6.9.3-Q16\convert.exe"
rcParams['font.size'] = 12
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plot_args = {'rstride': 3, 'cstride': 1, 'cmap':"Spectral",
'linewidth': 0.1, 'antialiased': True, 'color': 'k',
'shade': True, 'alpha': 0.5}
u = np.linspace(0, 2*np.pi, 30)
v = np.linspace(-1, 1, 30)
c = 1
x = c * np.outer(np.cosh(v/c), np.cos(u))
y = c * np.outer(np.cosh(v/c), np.sin(u))
z = np.outer(v, np.ones_like(u))
surf = ax.plot_surface(x[:, 0], y[:, 0], z[:, 0], **plot_args)
line = ax.plot(x[:, 0], y[:, 0], z[:, 0], 'k', lw=2)
ax.set_xlim(-2, 2)
ax.set_ylim(-2, 2)
ax.set_zlim(-1, 1)
plt.xlabel(r"$x$", fontsize=16)
plt.ylabel(r"$y$", fontsize=16)
ax.set_zlabel(r"$z$", fontsize=16)
def data_gen(num):
surf = ax.plot_surface(x[:, :num], y[:, :num], z[:, :num], **plot_args)
line = ax.plot(x[:, num-1], y[:, num-1], z[:, num-1], 'k', lw=2)
ax.view_init(elev=35, azim=45)
return surf, line
ani = animation.FuncAnimation(fig, data_gen, range(31), blit=False)
ani.save("Catenoid.gif", writer='imagemagick')
plt.show()
|
授權條款
我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
此檔案採用創用CC 姓名標示 4.0 國際授權條款。
- 您可以自由:
- 分享 – 複製、發佈和傳播本作品
- 重新修改 – 創作演繹作品
- 惟需遵照下列條件:
- 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
在此檔案描寫的項目
描繪內容
共享創意署名4.0國際 Chinese (Hong Kong) (已轉換拼寫)
14 2 2016
多媒體型式 繁體中文 (已轉換拼寫)
image/gif
資料大小 Chinese (Hong Kong) (已轉換拼寫)
1,539,690 位元組
6.200000000000003 秒
600 像素
800 像素
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2016年2月14日 (日) 17:15 | 800 × 600(1.47 MB) | Nicoguaro | User created page with UploadWizard |
檔案用途
下列頁面有用到此檔案:
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- en.wikipedia.org 的使用狀況
- es.wikipedia.org 的使用狀況
- id.wikipedia.org 的使用狀況
隱藏分類: