Checked content

File:Binary logarithm plot with ticks.svg

Summary

Description
English: Binary logarithm plot with ticks.

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)
Date 5 June 2011
Source Own work
Author Krishnavedala

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 attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

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.
The following pages on Schools Wikipedia link to this image (list may be incomplete):

Metadata

What is Schools Wikipedia?

This selection has made Wikipedia available to all children. By supporting vulnerable children right through to adulthood, SOS Childrens Villages makes a lasting difference to the lives of thousands of people. Education is a key part of our work, and our schools provide high-quality teaching to the children in our care. Have you heard about child sponsorship? Visit our web site to find out.