File:Sinc function (normalized).svg

Summary

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

Mathworld's version.

The original was generated by gnuplot, while the more recent one was generated with matplotlib. File size was reduced by efficient coding of the axis drawing and labeling and by a reworking of the graph's path. The resulting path is smoother even though fewer points are used in its determination.

Omegatron's instructions

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.
Date
Source Own work
Author Omegatron
Other versions
SVG development
InfoField
 The SVG code is valid.
 This plot was created with gnuplot.
Category:Valid SVG created with Gnuplot#Sinc%20function%20(normalized).svg
 Category:Translation possible - SVGThis plot uses embedded text that can be easily translated using a text editor.
 The SVG code is valid.
Category:Valid SVG created with Text Editor
 This 10.81 was created with a text editor.
Previous version had been created with Matplotlib (37888 bytes)     now 10.81% of previous size
 Please do not replace the simplified code of this file with a version created with Inkscape or any other graphical vector graphics editor
Category:Matplotlib SVG substitution#%2010.81

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 (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

Licensing

Omegatron, the copyright holder of this work, hereby publishes it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0,2.5,2.0,1.0#Sinc%20function%20(normalized).svg
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.
Category:License migration redundant#Sinc%20function%20(normalized).svgCategory:GFDL#Sinc%20function%20(normalized).svg
You may select the license of your choice.
Category:Self-published work
Category:Sinc function
Category:CC-BY-SA-3.0,2.5,2.0,1.0 Category:GFDL Category:License migration redundant Category:Matplotlib SVG substitution Category:Self-published work Category:Sinc function Category:Translation possible - SVG Category:Valid SVG created with Gnuplot Category:Valid SVG created with Text Editor