Original file(SVG file, nominally 424 × 408 pixels, file size: 44 KB)

This is a file from the Wikimedia Commons. The description on its description page there is shown below.

Commons is a freely licensed media file repository. You can help.

Summary

Description
English: The plot of hyperbola xy=1 and the area under the curve (integral).
Date
Source Own work
Author Krishnavedala
Other versions 1 over x integral.png
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
from matplotlib.pyplot import *
from numpy import linspace, arange
from matplotlib.patches import Polygon

rcParams['font.size'] = 15
rcParams['text.usetex'] = True

x1 = linspace(0,9,100)
y1 = 1./x1
x2 = linspace(1,8,8)
y2 = 1./x2
x3 = arange(1,6,0.01)
y3 = 1./x3
verts = [(1.,0)] + [*zip(x3,y3)] + [(6,0)]
poly = Polygon(verts, facecolor='orange',edgecolor='k')

fig = figure(figsize=(5,5))
ax = fig.add_subplot(111)
ax.grid(True)
ax.plot(x1,y1)
ax.plot(x2,y2,'ro')
ax.add_patch(poly)
ax.text(1,1,r"$\displaystyle f(x)=\frac{1}{x}$", fontdict={'size':20})
ax.text(1.5,.05,r"$\displaystyle\int_1^6f(x)\mathrm{d}x$", fontdict={'size':20})

ax.set_ylim(0,1.2)
ax.set_yticks(linspace(0,1,6))
ax.minorticks_on()
ax.set_xlabel("x", fontsize=18)
ax.set_ylabel("y", fontsize=18)

fig.savefig("1_over_x_integral.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

5 June 2011

image/svg+xml

87df0ca197f40f30034ac7210531aac969a8471b

45,403 byte

408 pixel

424 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:23, 16 May 2020Thumbnail for version as of 13:23, 16 May 2020424 × 408 (44 KB)Krishnavedalarecreated using matplotlib with increased font sizes
15:18, 5 June 2011Thumbnail for version as of 15:18, 5 June 2011424 × 418 (107 KB)JohnBlackburneMake text bigger so clearer in thumbnail
10:27, 5 June 2011Thumbnail for version as of 10:27, 5 June 2011424 × 418 (80 KB)Krishnavedala{{Information |Description ={{en|1=The plot of hyperbola xy=1 and the area under the curve (integral). Created using python. <source lang="python"> from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polyg

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata