Bestand:Sinc function (both).svg

Uit testwiki
Naar navigatie springen Naar zoeken springen
Oorspronkelijk bestand (SVG-bestand, nominaal 1.300 × 975 pixels, bestandsgrootte: 42 kB)

Dit bestand is afkomstig van Wikimedia Commons en kan ook in andere projecten gebruikt worden. De bestandsbeschrijvingspagina wordt hieronder weergegeven.

Beschrijving

Beschrijving
English: Graph of both the normalized (sin(πx)/(πx)) and unnormalized (sin(x)/x) definitions of the sinc function.

These are on the same scale. The second axis is just to clarify that the zero crossings occur on multiples of pi instead of integers.

Sinc Function -- from Wolfram MathWorld. mathworld.wolfram.com. Retrieved on 2025-12-13.

Instructions

Then I opened the resulting SVG file in Inkscape, copy and pasted the Unicode π characters and modified those labels by hand, changed the line colors, brought the plot lines to the top, made all the lines 3 px wide, made the grid lines 2px wide and 50% transparency. I also manually reconnected the grid lines that were cut by the legend function, moved the legends down next to the graph, converted their example lines into directional arrow type lines, and put a white box behind the text instead of trying to cut the graph lines like gnuplot does.
Datum
Bron Eigen werk
Auteur Omegatron
Andere versies
SVG ontwikkeling
InfoField
 De broncode van dit SVG-bestand is deugdelijk.
 Deze vectorafbeelding is gemaakt met gnuplot
  This plot uses embedded text that can be easily translated using a text editor.

Source code

# Set 1300×975 SVG output and filename
# The font size (fsize) sets the size for the circles, too.
set samples 400
set terminal svg enhanced size 1300 975 fname "Times" fsize 36
set output "sinc function (both).svg"

# Set y axis limits so the plot doesn't go right to the edges of the graph 
set yrange [-0.3:1.1]
set xrange [-6*pi:6*pi]

set lmargin 5
set bmargin -10

# No legend needed
#set nokey

# Add lightly-colored axis lines
set yzeroaxis
set xzeroaxis

# Put a y-axis tic at every 0.2
set ytics 0.2
set mytics 4

# Put an x-axis tic at every integer
set xtics 5
set format x "%2.0f"
set mxtics 5

# Put a second x-axis tic at every multiple of 2*pi

set x2tics 2*pi
set format x2 "%2.0f"
set mx2tics 2
set grid x x2 y
set xtics nomirror

# Format tics as digit with one decimal place
set format y "%2.1f"

# Plot as lines
plot sin(x)/x with lines, sin(pi*x)/(pi*x) with lines
 
# Close the file (so I don't have to close gnuplot to view it)
set output

Licentie

Ik, de auteursrechthebbende van dit werk, maak het hierbij onder de volgende licenties beschikbaar:
w:nl:Creative Commons
naamsvermelding Gelijk delen
Dit bestand is gelicenseerd onder de Creative Commons-licenties Naamsvermelding-Gelijk delen 3.0 Unported, 2.5 Algemeen, 2.0 Algemeen en 1.0 Algemeen.
De gebruiker mag:
  • Delen – het werk kopiëren, verspreiden en doorgeven
  • Remixen – afgeleide werken maken
Onder de volgende voorwaarden:
  • naamsvermelding – U moet op een gepaste manier aan naamsvermelding doen, een link naar de licentie geven, en aangeven of er wijzigingen in het werk zijn aangebracht. U mag dit op elke redelijke manier doen, maar niet zodanig dat de indruk wordt gewekt dat de licentiegever instemt met uw werk of uw gebruik van zijn werk.
  • Gelijk delen – Als u het materiaal remixt, transformeert of erop voortbouwt, moet u uw bijdragen verspreiden onder dezelfde licentie als die van het origineel, of een licentie die daarmee verenigbaar is.
GNU head Toestemming wordt verleend voor het kopiëren, verspreiden en/of wijzigen van dit document onder de voorwaarden van de GNU-licentie voor vrije documentatie, versie 1.2 of enige latere versie als gepubliceerd door de Free Software Foundation; zonder Invariant Sections, zonder Front-Cover Texts, en zonder Back-Cover Texts. Een kopie van de licentie is opgenomen in de sectie GNU-licentie voor vrije documentatie.
U mag zelf één van de licenties kiezen.

Bijschriften

Beschrijf in één regel wat dit bestand voorstelt

Items getoond in dit bestand

beeldt af

image/svg+xml

42.792 byte

38e652d7c451759bd7c5f3525f71fa73338035f2

Bestandsgeschiedenis

Klik op een datum/tijd om het bestand te zien zoals het destijds was.

Datum/tijdMiniatuurAfmetingenGebruikerOpmerking
huidige versie24 mrt 2020 18:12Miniatuurafbeelding voor de versie van 24 mrt 2020 18:121.300 × 975 (42 kB)wikimediacommons>AkanoToEItalicized variables

Dit bestand wordt op de volgende pagina gebruikt: