From Wikipedia, the free encyclopedia
Attempt at an SVG replacement for Image:Dirac distribution CDF.png.
Source code:
# Set 1000×750 SVG output and filename
# The font size (fsize) sets the size for the circles, too.
set terminal svg enhanced size 1300 975 fname "Times" fsize 36
set output "Dirac distribution CDF.svg"
# Set the text value for missing entries in the data file, so we can plot a discontinuous function
set datafile missing "Skip"
# Set y axis limits so the plot doesn't go right to the edges of the graph
set yrange [-0.2:1.2]
set lmargin 5
set bmargin -5
# No legend needed
set nokey
# Add lightly-colored axis lines
set yzeroaxis
set xzeroaxis
# Put a tic at every integer
set xtics 1
set mxtics 10
# Format x-axis tics as single digits
set format x "%g"
# Format y-axis tics as digit with one decimal place
set format y "%2.1f"
set mytics 4
# Plot as lines and also points
# Different line styles are plotted as separate lines for ease of post-processing
plot "solidlines.dat" with lines, "dashedlines.dat" with lines, "filledpoints.dat" with points pt 6, "hollowpoints.dat" with points pt 6
# with points:
# 1 = color red (linestyle 1?)
# 6 = point style 6 (render as circles in SVG)
# Close the file (so I don't have to close gnuplot to view it)
set output
Then I modified it in Inkscape; I made all the lines 3px wide, changed the line colors and filled in the circles, made sure the things on top were supposed to be on top, and changed the grid lines to half opacity.
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:
You may select the license of your choice.
|
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):