Not logged in | Create account | Login

    Authorpædia Trademarks

    Social buttons

    Languages

    Read

    AUTHORPÆDIA is hosted by Authorpædia Foundation, Inc. a U.S. non-profit organization.

Glenn Chandler

Original file (SVG file, nominally 408 × 325 pixels, file size: 56 KB)

Summary

Description
English: Binary logarithm plot with ticks.
Date
Source Own work
Author Krishnavedala
Other versions File:Binary_logarithm_plot_with_ticks.png
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
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)

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

creator

some value

author name string: Krishnavedala
Wikimedia username: Krishnavedala

copyright status

copyrighted

copyright license

GNU Free Documentation License, version 1.2 or later

Creative Commons Attribution-ShareAlike 3.0 Unported

inception

5 June 2011

source of file

original creation by uploader

media type

image/svg+xml

checksum

0a71918e02405a88b2532aeceba77127bdcb25cf

determination method or standard: SHA-1

data size

57,241 byte

height

325 pixel

width

408 pixel

software used for creation

Matplotlib

object of statement has role: plotting library
object of statement has role: free and open-source software
object of statement has role: Python package

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:51, 5 June 2011Thumbnail for version as of 22:51, 5 June 2011408 × 325 (56 KB)Krishnavedalaremoved one '0' at the origin and kept the texts big enough like the previous edit
15:13, 5 June 2011Thumbnail for version as of 15:13, 5 June 2011408 × 325 (76 KB)JohnBlackburneMake axis labels bigger and clearer, so readable at thumbnail size
09:59, 5 June 2011Thumbnail for version as of 09:59, 5 June 2011408 × 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

Global file usage

The following other wikis use this file:

View more global usage of this file.