From Wikipedia, the free encyclopedia
Size of this preview: 800 × 280 pixelsFull resolution (1,500 × 525 pixels, file size: 14 KB, MIME type: image/png)
[edit] Summary
| Description |
Definition of a general square wave
|
| Source |
own work, made using gnuplot 4.0
|
| Date |
7/05/06
|
| Author |
Cyril BUTTAY
|
Permission
(Reusing this image) |
one of the available licenses, see below
|
This figure was made using the following gnuplot 4.0 code:
# This file is used to generate a plot that defines the
# concept of duty cycle
# graph configuration
set terminal postscript eps enhanced "Times-Roman" 18 color solid
set encoding iso_8859_15
set size 1,0.5
unset title
set line style 1 lt 3 lw 3 pt 0 ps 0
set border 15 lt 7 lw 4
set grid xtics ytics
set ylabel "Amplitude"
set xlabel "Time"
set samples 1000
# equation of the signal
dutycycle=0.333333
signal(x) = x-floor(x)>dutycycle?0:1
set xtics ("0" 0,"D.T" dutycycle,\
"T" 1, "T+D.T" 1+dutycycle,\
"2T" 2, "2T+D.T" 2+dutycycle,\
"3T" 3, "3T+D.T" 3+dutycycle)
set ytics ("y_{min}" 0, "y_{max}" 1)
set output "duty_cycle_general.eps"
plot [0:3.5][-0.25:1.25] signal(x) ls 1 title ''
It is identical to Image:Dutycycle.png, except for the y axis labels (needed in the pwm article on en.wikipedia).
The png version is generated by the following (linux) command:
convert -density 300 duty_cycle_general.eps duty_cycle_general.png
[edit] Licensing
|
I, the copyright holder of this work, hereby publish it under the following licenses:
You may select the license of your choice.
|
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Dimensions | User | Comment |
| current | 20:55, 7 May 2006 | 1,500×525 (14 KB) | CyrilB | |
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):