File:Rectangular function.svg

Summary

Graph of the Rectangular function. Attempt at better version of w:Image:rect function.png

Instructions

See Wikipedia graph-making tips.

 
This plot was created with Gnuplot by v.
Category:Valid SVG created with Gnuplot#Rectangular%20function.svg

and data files:

solidlines.dat

#   X       Y
    -1.5    0
    -0.5    0
    Skip
    -0.5    1
    0.5     1
    Skip
    0.5     0
    1.5     0

dashedlines.dat

#   X       Y
    -0.5    0
    -0.5    1
    Skip
    0.5     1
    0.5     0

filledpoints.dat

#   X       Y
    -0.5    0.5
    0.5     0.5

hollowpoints.dat

#   X       Y
    -0.5    0
    -0.5    1
    0.5     1
    0.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

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 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#Rectangular%20function.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#Rectangular%20function.svgCategory:GFDL#Rectangular%20function.svg
You may select the license of your choice.
Category:Self-published work

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

Category:SVG x-y functions Category:Media missing infobox template Category:Rectangular function
Category:CC-BY-SA-3.0,2.5,2.0,1.0 Category:Files with no machine-readable author Category:Files with no machine-readable source Category:GFDL Category:License migration redundant Category:Media missing infobox template Category:Rectangular function Category:SVG x-y functions Category:Self-published work Category:Valid SVG created with Gnuplot