File:Example for addition of functions.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 487 × 367 pixels, file size: 33 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
| DescriptionExample for addition of functions.svg |
English: Addition of the function and to the function with . |
| Date | |
| Source | Own work |
| Author | Stephan Kulla (User:Stephan Kulla) |
| SVG development InfoField | |
| Source code InfoField | Python codeimport matplotlib.pyplot as plt
import numpy as np
xs = np.linspace(-1, 1, 100)
ys1 = np.exp(xs)
ys2 = np.sin(xs)
ys3 = ys1 + ys2
fs = 13
x = 0.5
blue="#007ec1"
orange="#d77a5a"
green="#6e8334"
plt.plot(xs, ys3, color=blue, label="$\\sin+\\exp$", linewidth=2)
plt.arrow(x+2.5e-2, 0, 0, np.sin(x)-0.15, color=green, head_width=0.03, head_length=0.1)
plt.arrow(x, 0, 0, np.exp(x)-0.15, color=orange, head_width=0.03, head_length=0.1)
plt.arrow(x, np.exp(x), 0, np.sin(x)-0.15, color=green, head_width=0.03, head_length=0.1)
plt.plot(xs, ys2, color=green, label="$\\sin$")
plt.plot(xs, ys1, color=orange, label="$\\exp$")
plt.plot([x], [np.sin(x)+np.exp(x)], color=blue, marker="o")
plt.plot([x], [np.sin(x)], color=green, marker="o")
plt.plot([x], [np.exp(x)], color=orange, marker="o")
plt.text(x=0.18, y=np.sin(0.5)+0.1, s="$\\sin(0.5)$", color=green, fontsize=fs)
plt.text(x=0.55, y=np.exp(0.5)-0.1, s="$\\exp(0.5)$", color=orange, fontsize=fs)
plt.text(x=-0.3, y=np.sin(0.5)+np.exp(0.5)-0.05, s="$(\\sin+\\exp)(0.5)$", color=blue, fontsize=fs+3)
plt.legend()
plt.axhline(color="black")
plt.savefig("Example for addition of functions.svg", transparent=True, bbox_inches="tight", pad_inches=0.05)
|
Licensing
I, the copyright holder of this work, hereby publish 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
21 February 2019
34,215 byte
image/svg+xml
46aac09813b864a265239fecf864eb892f5897e1
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 00:25, 22 February 2019 | 487 × 367 (33 KB) | wikimediacommons>Stephan Kulla | User created page with UploadWizard |
File usage
There are no pages that use this file.