File:Binary logarithm plot with ticks.svg

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

原始文件(SVG文件,尺寸为408 × 325像素,文件大小:56 KB)


摘要

描述
English: Binary logarithm plot with ticks.
日期
来源 自己的作品
作者 Krishnavedala
其他版本 File:Binary_logarithm_plot_with_ticks.png
SVG开发
InfoField
 
SVG的源代码为有效代码
 
矢量图使用Matplotlib创作。
源代码
InfoField

Python code

Created using python
from numpy import linspace,log2
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero

x = linspace(0,10,150)
y = log2(x)

fig = figure(figsize=(5,4))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
ax.grid(True)
for direction in ["xzero","left"]:
	ax.axis[direction].set_axisline_style("-|>")
	ax.axis[direction].set_visible(True)
for direction in ["right","bottom","top"]:
	ax.axis[direction].set_visible(False)
ax.plot(x,y,linewidth=2)
ax.plot([1,2,4,8],[0,1,2,3],'ko')
ax.text(10,-1,r"$x$")
ax.text(0.2,3.5,r"$y=\log_2(x)$")
ax.minorticks_on()
#fig.show()
fig.savefig("Binary_logarithm_plot_with_ticks.svg",bbox_inches="tight",\
	pad_inches=.15)

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
w:zh:知识共享
署名 相同方式共享
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
您可以选择您需要的许可协议。

说明

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

此文件中描述的项目

描繪內容

image/svg+xml

0a71918e02405a88b2532aeceba77127bdcb25cf

57,241 字节

325 像素

408 像素

文件历史

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

日期/时间缩⁠略⁠图大小用户备注
当前2011年6月5日 (日) 22:512011年6月5日 (日) 22:51版本的缩略图408 × 325(56 KB)Krishnavedalaremoved one '0' at the origin and kept the texts big enough like the previous edit
2011年6月5日 (日) 15:132011年6月5日 (日) 15:13版本的缩略图408 × 325(76 KB)JohnBlackburneMake axis labels bigger and clearer, so readable at thumbnail size
2011年6月5日 (日) 09:592011年6月5日 (日) 09:59版本的缩略图408 × 325(56 KB)Krishnavedala{{Information |Description ={{en|1=Binary logarithm plot with ticks. Created using python. <syntaxhighlight lang="python"> from numpy import linspace,log2 from matplotlib.pyplot import * from mpl_toolkits.axes_grid

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

查看本文件的更多全域用途