Image:Bode plot template.pdf

From Wikipedia, the free encyclopedia

Bode_plot_template.pdf (file size: 4 KB, MIME type: application/pdf)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

[edit] Summary

Description

bode plot created with gnuplot

Source

self-made

Date

11. June 2007

Author

Mik81

Permission
(Reusing this image)

see below


# set terminal svg enhanced size 875 1250 fname "Times" fsize 25
set terminal postscript enhanced portrait dashed lw 1 "Helvetica" 14
set output "bode.ps"

# ugly part of something
G(w,n) = 0 * w * n + 100000 # 1 / (sqrt(1 + w**(2*n)))
dB(x) = 0 + x + 100000
# 20 * log10(abs(x))
P(w) = w * 0 + 200 # -atan(w)*180/pi

# Gridlines
set grid

# Set x axis to logarithmic scale
set logscale x 10
set logscale y 10
# No need for a key
set nokey #0.1,-25

# Frequency response's line plotting style
set style line 1 lt 1 lw 2

# Asymptote lines and slope lines are the same "arrow" style
set style line 3 lt 3 lw 1
set style arrow 3 nohead ls 3

# -3 dB arrow style
set style line 4 lt 4 lw 1
set style arrow 4 head filled size screen 0.02,15,45 ls 4

# Separator between passband and stopband line style
set style line 2 lt 2 lw 1 
set style arrow 2 nohead ls 2



set multiplot

# Magnitude response
# =============================================
set size 1,0.5
set origin 0,0.5

# Set range of x and y axes
set xrange [0.001:1000]
set yrange [0.001:100]
#set yrange [-50:150]

# Create x-axis tic marks once per decade (every multiple of 10)
set xtics 10
set ytics 10

# Use 10 x-axis minor divisions per major division
set mxtics 10
set mytics 10

# Axis labels
set ylabel "Gain"

plot dB(G(x,1)) ls 1  title "1st-order response"



#Phase response
# =============================================
set size 0.967,0.45
set origin 0.033,0.05

unset logscale y
# Set range of x and y axes
set yrange [-285:105]

# Create y-axis tic marks every 15 degrees
set ytics 45
set mytics 3 


# Axis labels
set ylabel "Phase"
set xlabel "Frequency"

plot P(x) ls 1 title "Phase response"


unset multiplot

[edit] Licensing

Public domain I, Mik81, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

File history

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

Date/TimeDimensionsUserComment
current18:40, 11 June 2007 (4 KB)Mik81 ({{Information |Description=bode plot created with gnuplot |Source=self-made |Date=11. June 2007 |Author= Mik81 }} # set terminal svg enhanced size 875 1250 fname "Times" fsize 25 set terminal postscript enhanced portrait dashed lw 1 "Hel)
No pages on the English Wikipedia link to this file. (Pages on other projects are not counted.)