File:Triangular function.svg

From Knowino
Jump to: navigation, search
Triangular_function.svg(SVG file, nominally 695 × 485 pixels, file size: 2 KB)

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

Triangular function.svg

Graph of the Triangular function.

Instructions[edit]

See Wikipedia graph-making tips.

Lissajous small.svg
This vector image was created with gnuplot:

Gnuplot code

# 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

Data code

#   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.

Licensing[edit]

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

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 attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

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.

(In short, this means that you can copy and modify the image freely as long as you provide attribution; preferably in the form of a link back to this page.)

External links[edit]

File history

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

Date/TimeThumbnailDimensionsUserComment
current05:47, 6 June 2014Thumbnail for version as of 05:47, 6 June 2014695×485 (2 KB)Aflafla1 (Fix axis problems)

The following page links to this file:

Metadata

Personal tools
Namespaces
Variants
Views
Actions
Navigation
Community
Toolbox