Catenoid.gif(800 × 600 像素,檔案大小:1.47 MB,MIME 類型:image/gif、​循環、​31 畫格、​6.2秒)


摘要

描述
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 code

import 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()

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示
此檔案採用創用CC 姓名標示 4.0 國際授權條款。
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案來源 Chinese (Taiwan) (已轉換拼寫)

83e56f0cc574713323154989f6328be0ba7eb166

斷定方法:​SHA-1 中文 (已轉換拼寫)

1,539,690 位元組

6.200000000000003

600 像素

800 像素

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2016年2月14日 (日) 17:15於 2016年2月14日 (日) 17:15 版本的縮圖800 × 600(1.47 MB)NicoguaroUser created page with UploadWizard

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: