Image:Triangular function.svg
From Wikipedia, the free encyclopedia
No higher resolution available.
Triangular_function.svg (1300 × 975 pixel, file size: 13 KB, MIME type: image/svg+xml)
This is a file from the Wikimedia Commons. The description on its description page there is shown below. | |
Graph of the Triangular function.
[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 terminal svg enhanced size 1300 975 fname "Times" fsize 36 set output "Triangular function.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.5:1.5] set xrange [-1.5:1.5] 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 half integer set xtics 0.5 set ytics 0.5 set mxtics 4 set mytics 4 # Format tics as digit with one decimal place set format x "%2.1f" set format y "%2.1f" # Plot as lines plot "solidlines.dat" with lines # Close the file (so I don't have to close gnuplot to view it) set output
and data files:
solidlines.dat
# X Y -1.5 0 -1 0 0 1 1 0 1.5 0
Then I opened the resulting SVG file in Inkscape, changed the fill style for the circles (either blue or white fill), line styles (to do dashed lines), brought the plot lines to the top, and then brought the circles to the top (over the lines).
I also made all the lines 2 px wide, and made the axes 50% transparency.
[edit] License
Source: Created by User:Omegatron using gnuplot, possibly with post-processing in the GIMP (PNG) or Inkscape (SVG)
[edit] External links
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):