Image:Sinc function (normalized).svg

From Wikipedia, the free encyclopedia

Sinc_function_(normalized).svg (23KB, MIME type: image/svg+xml)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Unnormalized
Enlarge
Unnormalized
Normalized
Enlarge
Normalized
Both
Enlarge
Both

Graph of the normalized sinc function sin(πx)/(πx).

[edit] Instructions

See Wikipedia graph-making tips.

Generated in gnuplot with the following script:

# 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 (normalized).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:6]

set lmargin 5
set bmargin -5

# 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

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

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

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

Then I opened the resulting SVG file in Inkscape, 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.

[edit] License

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

I, the author of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

العربية | Česky | Deutsch | English | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Slovenčina | Svenska | עברית +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0
You may select the license of your choice.


[edit] External links

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):