setsamples3001#set terminal postscript enhanced landscape color solid lw 2 "Times-Roman" 20setterminalsvgsize1000750 fname "Times New Roman" fsize 20setoutput"waveforms.svg"# Define the four curves
sine(x)=sin(x*pi)#(Originally was going to graph others as functions, but data files are easier)# Set up a four-pane multiplotsetsize1,1setorigin0,0setgrid# Set range of x axissetxrange[0:6]# Gridlines at every cyclesetytics1# Ticks distract from wave shapessetticscale0# Show extents but don't waste spacesetyrange[-1.5:1.5]# No numbers needed; these are for shape comparisonsetformatx""setformaty""setnokey#I dont undertand how this workssetbmargin0settmargin0g=.04setmultiplot# Plot each graph# I don't understand how the labels work in multiplot, but this gives the right outputsetsize1,0.25-g
setorigin0,0.75+ g/2setlabel1"Sine"at5.5,0.5 c
plot sine(x)1setsize1,0.25-g
setorigin0,0.5+ g/2setlabel1"Square"at5.5,0.5 c
plot"square.dat"withlines2setsize1,0.25-g
setorigin0,0.25+ g/2setlabel1"Triangle"at5.5,0.5 c
plot"triangle.dat"withlines3setsize1,0.25-g
setorigin0,0+ g/2setlabel1"Sawtooth"at5.5,0.5 c
plot"sawtooth.dat"withlines4unsetmultiplot
Created by User:Omegatron using gnuplot, possibly with post-processing in the GIMP (PNG) or Inkscape (SVG) (actually no GIMP for SVG images)
I, the copyright holder of this work, hereby publish it under the following licenses:
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.
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.
(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.)
File history
Click on a date/time to view the file as it appeared at that time.
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.