File:Dirac distribution CDF.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 512 × 384 pixels, file size: 3 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Attempt at an SVG replacement for Dirac distribution CDF.png. Created with gnuplot. 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.
    Date 22 May 2006 (upload date)
    Source Own work
    Author Omegatron
    Other versions
    A raster version of this image is available. It should be used in place of this vector image when superior.
    File:Dirac distribution CDF.svg → File:Dirac distribution CDF.png

    In general, it is better to use a good SVG version.


    Bitmap image
    SVG development
    InfoField
     The SVG code is valid.
     This plot was created with gnuplot.
      This plot uses embedded text that can be easily translated using a text editor.

    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
    

    Licensing

    I, the copyright holder of this work, hereby publish 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.
    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.
    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.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    22 May 2006

    2,811 byte

    image/svg+xml

    d996ae98b8116e3883a9dfb04e7d174d406c9026

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current14:48, 9 April 2014Thumbnail for version as of 14:48, 9 April 2014512 × 384 (3 KB)wikimediacommons>Perhelionpath to text

    There are no pages that use this file.