File:Sierpinski triangle.svg
出自Wikimedia Commons
跳至導覽
跳至搜尋
此 SVG 檔案的 PNG 預覽的大小:692 × 599 像素。 其他解析度:277 × 240 像素 | 554 × 480 像素 | 887 × 768 像素 | 1,182 × 1,024 像素 | 2,364 × 2,048 像素 | 1,024 × 887 像素。
原始檔案 (SVG 檔案,表面大小:1,024 × 887 像素,檔案大小:3 KB)
檔案資訊
結構化資料
說明
摘要
[編輯]本向量圖形使用Matplotlib創作。
原始碼
InfoField
Python code
from __future__ import division
import matplotlib.pyplot as plt
plt.figure()
plt.subplot(1,1,1)
plt.axis('off')
def drawBlue(p1,p2,p3):
plt.fill([p1[0],p2[0],p3[0]],[p1[1],p2[1],p3[1]],facecolor='b',edgecolor='none')
def drawWhite(p1,p2,p3):
plt.fill([p1[0],p2[0],p3[0]],[p1[1],p2[1],p3[1]],facecolor='w',edgecolor='none')
def midpoint(p1,p2):
return ((p1[0]+p2[0])/2,(p1[1]+p2[1])/2)
def sierpinski(p1,p2,p3,repeat):
drawWhite(midpoint(p1,p2),midpoint(p2,p3),midpoint(p3,p1))
if (repeat <= 8):
sierpinski(p1,midpoint(p1,p2),midpoint(p1,p3),repeat+1)
sierpinski(p2,midpoint(p1,p2),midpoint(p2,p3),repeat+1)
sierpinski(p3,midpoint(p1,p3),midpoint(p2,p3),repeat+1)
drawBlue((0,0),(7,0),(3.5,6.0621778265))
sierpinski((0,0),(7,0),(3.5,6.0621778265),0)
plt.show()
授權條款
[編輯]此檔案採用創用CC 姓名標示-相同方式分享 3.0 未在地化版本授權條款。
姓名標示: Beojan Stanislaus
- 您可以自由:
- 分享 – 複製、發佈和傳播本作品
- 重新修改 – 創作演繹作品
- 惟需遵照下列條件:
- 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
- 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
原始上傳日誌
[編輯]The original description page was here. All following user names refer to en.wikipedia.
Transferred to Commons.
Upload date | User | Bytes | Dimensions | Comment |
---|---|---|---|---|
2007-10-21 06:40:53 | Marco Polo | 2976 | 1774×1536 | typo |
2007-10-21 06:39:47 | Marco Polo | 2976 | 1774×1536 | Recursive algorithm for generation |
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 使用者 | 備註 | |
---|---|---|---|---|---|
目前 | 2013年3月4日 (一) 01:12 | 1,024 × 887(3 KB) | Perhelion(留言 | 貢獻) | rev: unnecessary excessive code, used original code | |
2012年8月2日 (四) 10:23 | 720 × 540(3.61 MB) | Renamed user 5zaev7b64wx8mg6ty(留言 | 貢獻) | remove axes | ||
2012年8月1日 (三) 15:51 | 720 × 540(4.35 MB) | Renamed user 5zaev7b64wx8mg6ty(留言 | 貢獻) | Fully remade image | ||
2012年6月8日 (五) 07:12 | 1,774 × 1,536(3 KB) | OgreBot(留言 | 貢獻) | (BOT): Reverting to most recent version before archival | ||
2012年6月8日 (五) 07:12 | 1,774 × 1,536(3 KB) | OgreBot(留言 | 貢獻) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2007-10-21 06:40:53 by Marco Polo | ||
2012年6月8日 (五) 07:12 | 1,774 × 1,536(3 KB) | OgreBot(留言 | 貢獻) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2007-10-21 06:39:47 by Marco Polo | ||
2009年12月30日 (三) 08:35 | 1,774 × 1,536(3 KB) | Tgr(留言 | 貢獻) | {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} == Summary == Recursive algorithm for generation == Licensing == {{PD-self|date = October 2007}} == Original upload history == This fi |
無法覆蓋此檔案。
檔案用途
沒有使用此檔案的頁面。
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- ar.wikipedia.org 的使用狀況
- bg.wikipedia.org 的使用狀況
- ca.wikipedia.org 的使用狀況
- da.wikipedia.org 的使用狀況
- el.wikipedia.org 的使用狀況
- en.wikipedia.org 的使用狀況
- en.wikiversity.org 的使用狀況
- en.wiktionary.org 的使用狀況
- fa.wikipedia.org 的使用狀況
- fr.wikipedia.org 的使用狀況
- he.wikipedia.org 的使用狀況
- hu.wikipedia.org 的使用狀況
- hy.wikipedia.org 的使用狀況
- id.wikipedia.org 的使用狀況
- ja.wikipedia.org 的使用狀況
- ro.wikipedia.org 的使用狀況
- sr.wikipedia.org 的使用狀況
- sr.wiktionary.org 的使用狀況
- zh.wikipedia.org 的使用狀況
詮釋資料
此檔案中包含其他資訊,這些資訊可能是由數位相機或掃描器在建立或數位化過程中所新增的。若檔案自原始狀態已被修改,一些詳細資料可能無法完整反映出已修改的檔案。
寬度 | 1024px |
---|---|
高度 | 886.6px |