Fil:Waveforms.png

Fra Wikisida.no
Hopp til navigering Hopp til søk

Opprinnelig fil(1 160 × 860 piksler, filstørrelse: 74 KB, MIME-type: image/png)

Denne filen er fra Wikimedia Commons og kan brukes av andre prosjekter. Beskrivelsen fra filbeskrivelsessida vises nedenfor.

En vektorversjon av dette bildet (SVG) er tilgjengelig.
Det bør brukes i stedet for punktgrafikkbildet når det er fordelaktig.

File:Waveforms.png → File:Waveforms.svg

For mer informasjon om vektorgrafikk les Commons transition to SVG.
Se også information about MediaWiki's support of SVG images.

På andre språk
Alemannisch  العربية  беларуская (тарашкевіца)  български  বাংলা  català  нохчийн  čeština  dansk  Deutsch  Ελληνικά  English  British English  Esperanto  español  eesti  euskara  فارسی  suomi  français  Frysk  galego  Alemannisch  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  Ido  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  Bahasa Melayu  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  occitan  polski  prūsiskan  português  português do Brasil  română  русский  sicilianu  Scots  slovenčina  slovenščina  српски / srpski  svenska  தமிழ்  ไทย  Türkçe  татарча / tatarça  українська  vèneto  Tiếng Việt  中文  中文(中国大陆)  中文(简体)  中文(繁體)  中文(马来西亚)  中文(新加坡)  中文(臺灣)  +/−
Nytt SVG-bilde

This shows several waveforms: sine wave, square wave, triangle wave, and rising sawtooth wave.

I think it's good to show them next to each other for context.

The fundamentals of each have the same frequency and phase.

Instructions

See Wikipedia graph-making tips.

Generated in gnuplot with the following script (save as waveforms.plt and then open in gnuplot):

 
Denne PNG rastergrafikken ble laget med Gnuplot av n.

and data files:

square.dat

#	X    Y1
	0	1
	1	1
	1	-1
	2	-1
	2	1
	3	1
	3	-1
	4	-1
	4	1
	5	1
	5	-1
	6	-1

triangle.dat

#	X    Y1
	0	0
	0.5	1
	1.5	-1
	2.5	1
	3.5	-1
	4.5	1
	5.5	-1
	6	0

sawtooth.dat

#	X    Y1
	0	0
	1	1
	1	-1
	3	1
	3	-1
	5	1
	5	-1
	7	1

Then I opened the waveforms.ps file in a text editor to edit the line colors and linestyles, as per this description archive copy at the Wayback Machine. This avoids needing to open in proprietary software, and really isn't that difficult (especially if you don't know the commands in the proprietary software either).  ;-) Identify the lines easily by their color (the arrow is currently magenta and I want it to be black. Ah, there is the entry with 1 0 1, red + blue = magenta) or by using the gnuplot linestyle−1. (For instance, gnuplot's linestyle 3 corresponds to the ps file's /LT2.) Then you can edit the colors and dashes by hand.

I changed the original:

/LT1 { PL [4 dl 2 dl] 0 1 0 DL } def

into this:

/LT1 { PL [4 dl 2 dl] 0 0.7 0 DL } def

to make the green a little less neon.

To convert the PostScript file to PNG:

  1. Open it in the GIMP (make sure you have ghostscript installed! - Windows instructions)
    • Enter 500 under Resolution (it doesn't say "DPI" but I think that's what it means)
    • Uncheck Try bounding box (since the bounding box cuts off the edge, unfortunately. You can try with the bounding box first.)
    • Enter large values for Width and Height
    • Check Color
    • Check Strong anti-aliasing for both graphics and text
  2. Crop off extra whitespace (Shift+C if you can't find it in the toolbox)
  3. Possibly need to rotate it: Click ImageTransformRotate 90 degrees clockwise
  4. FiltersBlurGaussian blur at 2.0 px (No need to blur if you use strong anti-aliasing during conversion. I see no significant difference between end results.)
  5. ImageScale Image...
    • Width and Height at 25%
    • Cubic interpolation
  6. You can view at normal size if you want by pressing 1, Ctrl+E
  7. Save as Waveforms.png

Created by User:Omegatron using gnuplot, possibly with post-processing in the GIMP (PNG) or Inkscape (SVG)

Jeg, rettighetsinnehaver av dette arbeidet, publiserer det herved under følgende lisenser:
w:no:Creative Commons
navngivelse del på samme vilkår
Denne filen er lisensiert under lisensene Creative Commons Navngivelse-DelPåSammeVilkår 3.0 Unported, 2.5 Generisk, 2.0 Generisk og 1.0 Generisk.
Du står fritt:
  • til å dele – til å kopiere, distribuere og overføre verket
  • til å blande – til å endre verket
Under de følgende betingelsene:
  • navngivelse – Du må kreditere verket på passende vis, lenke til lisensen og indikere hvorvidt det har blitt gjort endringer. Du kan gjøre det på enhver rimelig måte, men ikke på en måte som antyder at lisensgiveren støtter deg eller din bruk av verket.
  • del på samme vilkår – Dersom du remikser, omarbeider eller på annen måte bygger på dette verket, må du kun distribuere resultatet under den samme eller en samsvarende lisens som denne.
GNU head Det tillates at dette dokumentet kopieres, distribueres og/eller modifiseres under retningslinjene som beskrevet i GNU fri dokumentasjonslisens, versjon 1.2 eller senere utgave utgitt av Free Software Foundation; med alle seksjoner, uten noen forsidetekster og baksidetekster. En kopi av lisensen er inkludert i avsnittet GNU Free Documentation License.
Du kan velge lisens etter eget valg.

(In short, this means that you can copy and modify the image freely as long as you provide attribution; preferably in the form of a link back to this page.)

Bildetekster

Legg til en kort forklaring på hva filen representerer

Elementer som er med i denne fila

motiv

Filhistorikk

Klikk på et tidspunkt for å vise filen slik den var på det tidspunktet.

Dato/klokkeslettMiniatyrbildeDimensjonerBrukerKommentar
nåværende29. aug. 2005 kl. 03:42Miniatyrbilde av versjonen fra 29. aug. 2005 kl. 03:421 160 × 860 (74 KB)wikimediacommons>Omegatronless whitespace

Den følgende siden bruker denne filen: