File:The function x^2*sin(1 over x).svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 575 × 431 pixels, file size: 26 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionThe function x^2*sin(1 over x).svg |
English: Graph of the function .
Deutsch: Graph der Funktion . |
| Date | |
| Source | Own work |
| Author | Stephan Kulla (User:Stephan Kulla) |
| Other versions |
|
| SVG development InfoField | |
| Source code InfoField | Python codeimport matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset
blue="#007ec1"
xs1 = np.linspace(-1.1, 1.1, 10002)
xs2=1/(np.arange(1.,1001,1.)*np.pi/2)
xs = np.union1d(np.union1d(xs1,xs2),-xs2)
ys = np.sin(1/xs)*xs*xs
f, ax = plt.subplots()
ax.plot(xs,ys, color=blue)
ax.set_xlim(-1,1)
ax.set_ylim(-1.1,1.1)
axins = zoomed_inset_axes(ax,4,loc=4)
axins.plot(xs,ys)
axins.set_xlim(-0.2,0.2)
axins.set_ylim(-0.05,0.05)
mark_inset(ax, axins, loc1=2, loc2=1, fc="0.95", ec="0.7")
plt.xticks(visible=False)
plt.yticks(visible=False)
plt.savefig("The function x^2*sin(1 over x).svg")
|
Licensing
Stephan Kulla (User:Stephan Kulla), the copyright holder of this work, hereby publishes it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
10 October 2016
26,689 byte
image/svg+xml
47421fabf2794a62b7e88d4fe5859214033c66d6
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 19:37, 21 May 2018 | 575 × 431 (26 KB) | wikimediacommons>Stephan Kulla | update |
File usage
There are no pages that use this file.