File:Archimedean_spiral_polar.svg
維基百科,自由的 encyclopedia
此 SVG 檔案的 PNG 預覽的大小:591 × 600 像素。 其他解析度:236 × 240 像素 | 473 × 480 像素 | 757 × 768 像素 | 1,009 × 1,024 像素 | 2,018 × 2,048 像素 | 609 × 618 像素。
原始檔案 (SVG 檔案,表面大小:609 × 618 像素,檔案大小:91 KB)
摘要
描述Archimedean spiral polar.svg |
Français : Spirale d'Archimède représentée sur un graphe polaire English: Archimedean spiral represented on a polar graph |
日期 | |
來源 | 自己的作品 |
作者 | Guillaume Jacquenot |
Source code (Python)
# -*- coding: utf-8 -*-
#
# Script to plot an Archimedean spiral
#
# http://en.wikipedia.org/wiki/Archimedean_spiral
#
# The Archimedean spiral (also known as the arithmetic spiral
# or spiral of Archimedes) is a spiral named after the 3rd
# century BC Greek mathematician Archimedes. It is the locus
# of points corresponding to the locations over time of a
# point moving away from a fixed point with a constant speed
# along a line which rotates with constant angular velocity.
#
# Text under the
# Creative Commons Attribution-ShareAlike License
# **************************************************************
#
#
# Guillaume Jacquenot
# 2013/03/17
import numpy as np
from fractions import Fraction
import matplotlib
from matplotlib.pyplot import figure, show, rc, grid
def updateThetaAxis(ax):
thetaFractions = [Fraction.from_float(item/np.pi) for item in ax.get_xticks()]
labels=[]
for f in thetaFractions:
if f.numerator==0:
labels.append('0')
elif f.numerator==f.denominator:
labels.append('\\pi')
elif f.numerator==1:
labels.append('\\frac{{\\pi }}{'+str(f.denominator)+'}')
else:
labels.append('\\frac{{'+str(f.numerator)+'\\pi }}{'+str(f.denominator)+'}')
labels = ['$\\Large'+l+'$' for l in labels]
ax.set_xticklabels(labels,fontsize=20)
def updateRAxis(ax):
thetaFractions = [Fraction.from_float(item) for item in ax.get_yticks()]
labels=[]
for f in thetaFractions:
if f.numerator==0:
labels.append('0')
elif f.numerator==f.denominator:
labels.append('1')
elif f.denominator==1:
labels.append(str(f.numerator))
else:
labels.append('\\frac{{'+str(f.numerator)+'}}{'+str(f.denominator)+'}')
labels = ['$'+l+'$' for l in labels]
ax.set_yticklabels(labels,fontsize=20)
def makePlot(outputFilename = r'Archimedean_spiral_polar.svg'):
rc('grid', linewidth=1, linestyle='-') # color='#316931'
rc('xtick', labelsize=15)
rc('ytick', labelsize=15)
rc('font',**{'family':'serif','serif':['Palatino'],'size':14})
rc('text', usetex=True)
width, height = matplotlib.rcParams['figure.figsize']
size = min(width, height)
fig = figure(figsize=(size, size))
ax = fig.add_axes([0.12, 0.12, 0.76, 0.76], polar=True, )#axisbg='#d5de9c'
r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
ax.plot(theta, r, color='#ee8d18', lw=3)
ax.set_rmax(2.0)
updateThetaAxis(ax)
updateRAxis(ax)
grid(True)
ax.set_title('$\\rho=\\frac{1}{2\\pi}\\theta$',fontsize=20)
fig.savefig(outputFilename)
fig.show()
makePlot()
授權條款
我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
此檔案採用共享創意 姓名標示-相同方式分享 3.0 未在地化版本授權條款。
- 您可以自由:
- 分享 – 複製、發佈和傳播本作品
- 重新修改 – 創作演繹作品
- 惟需遵照下列條件:
- 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
- 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
在此檔案描寫的項目
描繪內容
沒有維基數據項目的某些值
17 3 2013
多媒體型式 繁體中文 (已轉換拼寫)
image/svg+xml
93,021 位元組
618 像素
609 像素
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2013年3月18日 (一) 18:17 | 609 × 618(91 KB) | AnonMoos | move formula to side, adjust margins | |
2013年3月17日 (日) 12:49 | 540 × 540(103 KB) | Gjacquenot | User created page with UploadWizard |
檔案用途
下列頁面有用到此檔案:
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- ckb.wikipedia.org 的使用狀況
- de.wikipedia.org 的使用狀況
- en.wikipedia.org 的使用狀況
- eo.wikipedia.org 的使用狀況
- es.wikipedia.org 的使用狀況
- fi.wikipedia.org 的使用狀況
- fr.wikipedia.org 的使用狀況
- gl.wikipedia.org 的使用狀況
- he.wikipedia.org 的使用狀況
- hr.wikipedia.org 的使用狀況
- la.wikipedia.org 的使用狀況
- pt.wikipedia.org 的使用狀況
- ru.wikipedia.org 的使用狀況
- sl.wikipedia.org 的使用狀況
- sq.wikipedia.org 的使用狀況
- sv.wikipedia.org 的使用狀況
- tr.wikipedia.org 的使用狀況
- tt.wikipedia.org 的使用狀況
詮釋資料
此檔案中包含擴展的資訊。這些資訊可能是由數位相機或掃描器在建立時或數位化過程中所加入。
如果此檔案的來源檔案已被修改,一些資訊在修改後的檔案中將不能完全反映出來。
寬度 | 609 |
---|---|
高度 | 618 |