File:Butterworth filter bode plot.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为1,250 × 875像素,文件大小:31 KB)

生成本图像。


摘要

描述
English: The Bode plot of a Butterworth filter with logarithmic axes and various labels. Cutoff frequency is normalized to 1 rad/s. Gain is normalized to 0 dB in the passband. Phase is in degrees because that's typical.

The code is kind of kludgy, but makes a good output. Generated in gnuplot with the script below (save as butterworth_bode_plot.plt and then open in gnuplot). Then it was postprocessed with Inkscape. See Wikipedia graph-making tips.

Many orders on one plot: Image:Butterworth orders.png
此檔案使用SVG <switch>元素翻譯。所有的譯文都儲存在同一檔案中!了解更多

請在lang參數中填寫正確的語言代碼,將此檔案内嵌到您的語言中(若可用),例如:對於英語版本請使用[[File:Butterworth filter bode plot.svg|lang=en]]

要將此檔案中的文字翻譯成您的語言,您可以使用SVG 翻譯工具。或者,您可以將該檔案下載至您的電腦中,使用您熟悉的任何軟體進行翻譯,然後使用「相同」名稱重新上傳。如果不確定如何進行此操作,您能在圖像實驗室中找到幫助。

 
SVG的源代码为有效代码
 
矢量图使用Gnuplot创作。
Multilingual: 英语; 西班牙语; 俄语
日期 2006年4月26日 (上传日期)
来源 自己的作品
作者 Alejo2083
其他版本

[编辑]


.svg:

.png:

gnuplot source
InfoField
click to expand
set terminal svg enhanced size 1250 875 fname "Times" fsize 25
set output "Butterworth_filter_bode_plot.svg"

# Butterworth amplitude response and decibel calculation.  n is the order, which is just 1 in this image.
G(w,n) = 1 / (sqrt(1 + w**(2*n)))
dB(x) = 20 * log10(abs(x))
# Phase is for first order
P(w) = -atan(w)*180/pi


# Gridlines
set grid

# Set x axis to logarithmic scale
set logscale x 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 [-60:10]

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

# No need for two sets of numbers
set format x ""

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

# Axis labels
set ylabel "Gain (dB)"

# Draw asymptote lines
set arrow 1 from 1,0 to 1000,-60 as 3
set arrow 2 from .001,0 to 1,0 as 3

# -3 dB arrow
set arrow 4 from 2,3 to 1,0 as 4

# "Cutoff frequency" label uses same coordinates as the function
set label 3 "Cutoff frequency" at 2,4 l

# "-3 dB" label
set arrow 5 from 0.5,-6 to 1,-3 as 4   
set label 4 "-3.01 dB" at 0.5,-7 r

# Draw a separator between passband and stopband and label them
set arrow 3 from 1,-60 to 1,10 as 2

# Label coordinates are relative to the graph window, not to the function, centered at the 1/4 and 3/4 width points
set label 1 "Passband" at graph 0.25, graph 0.1 c
set label 2 "Stopband" at graph 0.75, graph 0.1 c

# Draw slope lines and label
set arrow 6 from 100,-20 to 12,-20 as 3
set arrow 7 from 100,-20 to 100,-39 as 3
set label 5 "Slope: -20 dB/decade" at 100,-15 c

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




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

# Set range of x and y axes
set yrange [-105:15]

# Create y-axis tic marks every 15 degrees
set ytics 30

# Regular numbers
set format x "% g"

# Axis labels
set ylabel "Phase (degrees)"
set xlabel "Angular frequency (rad/s)"

# Draw asymptote lines
set arrow 1 from 0.1,0 to 10,-90 as 3
set arrow 2 from 0.001,0 to 0.1,0 as 3
set arrow 10 from 10,-90 to 1000,-90 as 3

# -3 dB arrow
unset arrow 4 #from 2,3 to 1,0 as 4

# "Cutoff frequency" label uses same coordinates as the function
unset label 3 #"Cutoff frequency" at 2,4 l

# "-3 dB" label
unset arrow 5 #from 0.5,-6 to 1,-3 as 4   
unset label 4 #"-3.01 dB" at 0.5,-7 r

# Draw a separator between passband and stopband and label them
set arrow 3 from 1,-105 to 1,15 as 2

# Label coordinates are relative to the graph window, not to the function, centered at the 1/4 and 3/4 width points
set label 1 "Passband" at graph 0.25, graph 0.5 c
set label 2 "Stopband" at graph 0.75, graph 0.5 c

# Draw slope lines and label
unset arrow 6 #from 100,-20 to 12,-20 as 3
unset arrow 7 #from 100,-20 to 100,-39 as 3
unset label 5 #"Slope: -20 dB/decade" at 100,-18 c

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



unset multiplot
此图片的光栅版本可用。如果效果更好,那么该栅格图片应当替换本图片。
File:Butterworth filter bode plot.svgFile:Butterworth filter bode plot.png

通常,最好使用好的矢量版本(SVG)。


位图图片

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
本许可协议标签作为GFDL许可协议更新的组成部分被添加至本文件。
w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享2.5 通用2.0 通用1.0 通用许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

image/svg+xml

c95609425720ed894a5ccd286d73784d3e0d20db

31,508 字节

875 像素

1,250 像素

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2023年10月12日 (四) 02:392023年10月12日 (四) 02:39版本的缩略图1,250 × 875(31 KB)Mikhail Ryazanov+ru translation
2023年10月12日 (四) 02:192023年10月12日 (四) 02:19版本的缩略图1,250 × 875(30 KB)Mikhail Ryazanovtrying Glrx's advice
2023年10月12日 (四) 02:012023年10月12日 (四) 02:01版本的缩略图1,250 × 875(30 KB)Glrxtry fixing two -30 labels // Editing SVG source code using c:User:Rillke/SVGedit.js
2023年10月11日 (三) 23:462023年10月11日 (三) 23:46版本的缩略图1,250 × 875(30 KB)Mikhail Ryazanovwrong rendering
2023年10月11日 (三) 23:452023年10月11日 (三) 23:45版本的缩略图1,250 × 875(30 KB)Mikhail Ryazanovhyphens → minuses
2021年9月27日 (一) 16:152021年9月27日 (一) 16:15版本的缩略图1,250 × 875(30 KB)R2d21024File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for es.
2006年4月26日 (三) 19:102006年4月26日 (三) 19:10版本的缩略图1,250 × 875(32 KB)Alejo2083bigger fonts
2006年4月26日 (三) 18:552006年4月26日 (三) 18:55版本的缩略图1,250 × 875(32 KB)Alejo2083''This picture is the SVG version of Image:Butterworth_filter_bode_plot.png'' The Bode plot of a Butterworth filter with logarithmic axes and various labels. Cutoff frequency is normal

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据