File:Small-angle approximation for sine function.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为720 × 540像素,文件大小:36 KB)


摘要

描述
English: Diagram showing the small-angle approximation of the sine function.
日期
来源 自己的作品
作者 Stephan Kulla (User:Stephan Kulla)
其他版本
SVG开发
InfoField
 
SVG的源代码为有效代码
 
矢量图使用Matplotlib创作。
源代码
InfoField

Python code

import matplotlib.pyplot as plt
import numpy as np

from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset

xs = np.linspace(-7, 7, 10001)
sin_ys = np.sin(xs)

f, ax = plt.subplots()

ax.plot(xs,sin_ys, label="$\\sin(x)$")
ax.plot(xs, xs, label="$f(x)=x$")
ax.set_xlim(-7,7)
ax.set_ylim(-1.6,1.6)
ax.legend(loc=2)

axins = zoomed_inset_axes(ax,3.1,loc=4)
axins.plot(xs,sin_ys)
axins.plot(xs,xs)
axins.set_xlim(-0.6,0.6)
axins.set_ylim(-0.5,0.5)

mark_inset(ax, axins, loc1=3, loc2=2, fc="0.95", ec="0.7")

plt.xticks(visible=False)
plt.yticks(visible=False)

plt.savefig("Small-angle approximation for sine function.svg")

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
Creative Commons CC-Zero 本作品采用知识共享CC0 1.0 通用公有领域贡献许可协议授权。
采用本宣告发表本作品的人,已在法律允许的范围内,通过在全世界放弃其对本作品拥有的著作权法规定的所有权利(包括所有相关权利),将本作品贡献至公有领域。您可以复制、修改、传播和表演本作品,将其用于商业目的,无需要求授权。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2016年8月11日 (四) 08:442016年8月11日 (四) 08:44版本的缩略图720 × 540(36 KB)Stephan KullaUser created page with UploadWizard

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据