Fitxategi:Sine quads 01 Pengo.svg
testwikitik
Nabigaziora joan
Bilaketara joan
SVG fitxategi honen PNG aurreikuspenaren tamaina: 800 × 345 pixel. Bestelako bereizmenak: 320 × 138 pixel | 640 × 276 pixel | 1.024 × 441 pixel | 1.280 × 552 pixel | 2.560 × 1.103 pixel | 1.065 × 459 pixel.
Jatorrizko fitxategia (SVG fitxategia, nominaldi 1.065 × 459 pixel, fitxategiaren tamaina: 59 KB)
Fitxategi hau Wikimedia Commons biltegikoa da, eta beste proiektu batzuetan erabil daiteke. Behean dago fitxategiaren deskribapeneko orria.
| DeskribapenaSine quads 01 Pengo.svg | Quadrants for sin(x) |
| Data | |
| Jatorria | Norberak egina |
| Egilea | Pengo |
| SVG genesis InfoField | |
| Iturburu kode InfoField | Python codeimport numpy as np
import matplotlib.pyplot as plt
from math import pi
import math
# HACKISH WARNING: this version internally uses 0 to 2 for the sine wave x axis, but labels it 0 to 2pi
# This is so the two graphs can be the same size. I couldn't work out how to otherwise within pyplot.
# (Actually only wanted the height of the two graphs to be the same, and was originally aiming to have the second x axis with the same scale as the first, which would have made it 3.14x longer.)
def addLines(quad, color):
incr = 1.0/1000.0
start = quad/2.0
end = start + 0.5 + incr
x = np.arange(start, end, incr)
lines = plt.plot(x, np.sin(pi*x), '')
plt.setp(lines, color=color, linewidth=2.5, solid_capstyle='butt', solid_joinstyle='miter')
def addPolar(quad, color):
incr = pi/1000.0
start = quad*pi/2.0
end = start + pi/2.0 + incr
x = np.arange(start, end, incr)
lines = plt.plot(np.cos(x), np.sin(x), '')
plt.setp(lines, color=color, linewidth=2.0, solid_capstyle='butt', solid_joinstyle='miter')
def addTicks():
start = 0 # in pi
end = 3 # in pi
tickPoints = []
tickNames = []
done = [] # in units of pi
#denoms = [1, 2, 4, 8] # show more
denoms = [1, 2]
for denom in denoms:
for numer in range(denom * start, denom * end):
val = (numer+0.0)/(denom+0.0)
if val not in done:
#tickPoints.append(val * pi) # this is preferred
tickPoints.append(val) # dodgy hack to help make the graph square.
done.append(val)
pich = u'\u03C0'
strTop = str(numer) + pich
if numer == 0:
strTop = "0"
elif numer == 1:
strTop = pich
if denom == 1:
tickNames.append(strTop)
else:
tickNames.append(strTop + "/" + str(denom))
plt.xticks(tickPoints, tickNames)
def drawSine():
addLines(-1, 'yellow')
addLines(0, 'brown')
addLines(1, 'r')
addLines(2, 'orange')
addLines(3, 'yellow')
addLines(4, 'brown')
addTicks()
slack = .1
plt.axis('scaled')
plt.xlim(-slack, 2.0 + slack)
plt.ylim(-1.1, 1.1)
plt.grid(True)
plt.xlabel('$x$')
plt.ylabel('$y$')
plt.title(r'$y = \sin x$')
plt.text( .25, 0, 'I', family='serif', fontsize=26, ha='center', va='center')
plt.text(.75, 0, 'II', family='serif', fontsize=26, ha='center', va='center')
plt.text(1.25, 0, 'III', family='serif', fontsize=26, ha='center', va='center')
plt.text( 1.75, 0, 'IV', family='serif', fontsize=26, ha='center', va='center')
def drawUnitCircle():
addPolar(0, 'brown')
addPolar(1, 'r')
addPolar(2, 'orange')
addPolar(3, 'yellow')
edge = 1.1
plt.axis('scaled')
plt.axis([-edge, edge, -edge, edge])
plt.grid(True)
plt.xlabel('$x$')
plt.ylabel('$y$')
plt.title(r'$x^2 + y^2 = 1$')
lo = .85 #label offset
plt.text( lo, lo, 'I', family='serif', fontsize=26, ha='center', va='center')
plt.text(-lo, lo, 'II', family='serif', fontsize=26, ha='center', va='center')
plt.text(-lo, -lo, 'III', family='serif', fontsize=26, ha='center', va='center')
plt.text( lo, -lo, 'IV', family='serif', fontsize=26, ha='center', va='center')
def twoInOne():
plt.subplot(121)
drawUnitCircle()
plt.subplot(122)
drawSine()
twoInOne()
plt.savefig("Sine_quads_01_Pengo.svg")
plt.show()
|
Lizentzia
Image credit: Peter Halasz. (User:Pengo)
Nik, lan honen egileak, argitaratzen dut ondorengo lizentzia pean:
Fitxategi hau Creative Commons Attribution-Share Alike 3.0 Unported lizentziapean dago.
- Askea zara:
- partekatzeko – lana kopiatzeko, banatzeko eta bidaltzeko
- birnahasteko – lana moldatzeko
- Ondorengo baldintzen pean:
- eskuduntza – Egiletza behar bezala aitortu behar duzu, lizentzia ikusteko esteka gehitu, eta ea aldaketak egin diren aipatu. Era egokian egin behar duzu hori guztia, baina inola ere ez egileak zure lana edo zure erabilera babesten duela irudikatuz.
- berdin partekatu – Lan honetan oinarrituta edo aldatuta berria eraikitzen baduzu, emaitza lana hau bezalako lizentzia batekin argitaratu behar duzu.
When employing the Creative Commons license, give attribution to:
- Peter Halasz
- and/or, link to this image page of Wikimedia Commons:
http://commons.wikimedia.org/wiki/File:Sine_quads_01_Pengo.svg
Although not a requirement of the license, if you use this image in print or media other than the web, I would appreciate it if you let me know. Please contact me if you require alternate licensing.
Irudi-oineko testuak
Add a one-line explanation of what this file represents
Fitxategi honetan agertzen diren itemak
honako hau irudikatzen du
20 iraila 2010
data size ingelesa
60.692 Byte
459 pixel
1.065 pixel
media type ingelesa
image/svg+xml
checksum ingelesa
a0c36764fd723a21716b69115be2cafacd783b8b
Fitxategiaren historia
Data/orduan klik egin fitxategiak orduan zuen itxura ikusteko.
| Data/Ordua | Iruditxoa | Neurriak | Erabiltzailea | Iruzkina | |
|---|---|---|---|---|---|
| oraingoa | 02:55, 21 iraila 2010 | 1.065 × 459 (59 KB) | wikimediacommons>Pengo | add quadrant labels |
Fitxategiaren erabilera
Fitxategi hau darabil ondorengo orri honek: