Plik:Butterworth response.png

Z testwiki
Przejdź do nawigacji Przejdź do wyszukiwania
    Rozmiar pierwotny (1240 × 880 pikseli, rozmiar pliku: 86 KB, typ MIME: image/png)

    Ten plik znajduje się w Wikimedia Commons i może być używany w innych projektach. Poniżej znajdują się informacje ze strony opisu tego pliku.

    Opis

    Opis
    English: The frequency response of a Butterworth filter with logarithmic axes (Bode plot) and various labels. Cutoff frequency is normalized to 1 rad/s. Gain is normalized to 0 dB in the passband.

    Many orders on one plot: File:Butterworth orders.png.

    Version with no text available at File:Butterworth plain.png, though you should probably just modify the source code and regenerate it in your own language.

    See Wikipedia graph-making tips.
     Ta PNG grafika rastrowa została stworzona za pomocą gnuplot przez n.

    Generated in gnuplot with the script below (save as butterworth.plt and then open in gnuplot). Then I opened the butterworth.ps file in a text editor to edit the line colors and linestyles, as per this description. This avoids needing to open in proprietary software, and really isn't that difficult (especially if you don't know the commands in the proprietary software either). ;-) Identify the lines easily by their color (the arrow is currently magenta and I want it to be black. Ah, there is the entry with 1 0 1, red + blue = magenta) or by using the gnuplot linestyle−1. (For instance, gnuplot's linestyle 3 corresponds to the ps file's /LT2.) Then you can edit the colors and dashes by hand. I changed the original:

    /LT0 { PL [] 1 0 0 DL } def
    /LT1 { PL [4 dl 2 dl] 0 1 0 DL } def
    /LT2 { PL [2 dl 3 dl] 0 0 1 DL } def
    /LT3 { PL [1 dl 1.5 dl] 1 0 1 DL } def
    

    into this:

    /LT0 { PL [] 0 0 1 DL } def
    /LT1 { PL [4 dl 2 dl] 0.5 0.5 0.5 DL } def
    /LT2 { PL [6 dl 3 dl] 0.3 0.3 1 DL } def
    /LT3 { PL [] 0 0 0 DL } def
    
    /LT4–/LT8 I left unchanged. (I don't know what they're used for anyway.) /LTw, /LTb, and /LTa are for the grid lines and such.

    To convert the PostScript file to PNG:

    1. Open it in the GIMP (make sure you have ghostscript installed! - Windows instructions)
      • Enter 500 under Resolution (it doesn't say "DPI" but I think that's what it means)
      • Uncheck Try bounding box (since the bounding box cuts off the edge, unfortunately. You can try with the bounding box first.)
      • Enter large values for Width and Height
      • Check Color
      • Check Strong anti-aliasing for both graphics and text
    2. Crop off extra whitespace (Shift+C if you can't find it in the toolbox)
    3. Possibly need to rotate it: Click Image → Transform → Rotate 90 degrees clockwise
    4. Filters → Blur → Gaussian blur at 2.0 px (No need to blur if you use strong anti-aliasing during conversion. I see no significant difference between end results.)
    5. Image → Scale Image...
      • Width and Height at 25%
      • Cubic interpolation
    6. You can view at normal size if you want by pressing 1, Ctrl+E
    7. Save as Butterworth response.png
    Data 26 czerwca 2005 (data przesłania)
    Źródło Praca własna
    Autor Omegatron
    Inne wersje
    gnuplot source
    InfoField
    click to expand
    set samples 2001
    set terminal postscript enhanced landscape color lw 2 "Times-Roman" 20
    set output "butterworth.ps"
    
    # 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))
    
    # Gridlines
    set grid
    
    # Set x axis to logarithmic scale
    set logscale x 10
    
    # 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
    
    # Use 10 x-axis minor divisions per major division
    set mxtics 10
    
    # Axis labels
    set xlabel "Angular frequency (rad/s)"
    set ylabel "Gain (dB)"
    
    # No need for a key
    set nokey #0.1,-25
    
    # Frequency response's line plotting style
    set style line 1 lt 1 lw 2
    
    # Draw a separator between passband and stopband and label them
    set style line 2 lt 2 lw 1 
    set style arrow 2 nohead ls 2
    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
    
    # 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
    
    # 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 style and arrow
    set style line 4 lt 4 lw 1
    set style arrow 4 head filled size screen 0.02,15,45 ls 4
    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 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,-18 c
    
    # Plot the filter response
    plot \
         dB(G(x,1)) ls 1  title "1st-order response"
    
    Ta ilustracja ma także wersję wektorową („SVG”).
    Zaleca się wykorzystywanie w galeriach dostępnej wersji wektorowej zamiast obecnej.

    File:Butterworth response.png → File:Butterworth response.svg

    Więcej o grafice wektorowej przeczytasz w artykule Przenoszenie grafik Commons do formatu SVG.
    Dostępna jest także informacja o obsłudze grafik SVG przez MediaWiki.

    W innych językach
    Alemannisch ∙ العربية ∙ беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ нохчийн ∙ čeština ∙ dansk ∙ Deutsch ∙ Ελληνικά ∙ English ∙ British English ∙ Esperanto ∙ español ∙ eesti ∙ euskara ∙ فارسی ∙ suomi ∙ français ∙ Frysk ∙ galego ∙ Alemannisch ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ հայերեն ∙ Bahasa Indonesia ∙ Ido ∙ italiano ∙ 日本語 ∙ ქართული ∙ 한국어 ∙ lietuvių ∙ македонски ∙ മലയാളം ∙ Bahasa Melayu ∙ မြန်မာဘာသာ ∙ norsk bokmål ∙ Plattdüütsch ∙ Nederlands ∙ norsk nynorsk ∙ norsk ∙ occitan ∙ polski ∙ prūsiskan ∙ português ∙ português do Brasil ∙ română ∙ русский ∙ sicilianu ∙ Scots ∙ slovenčina ∙ slovenščina ∙ српски / srpski ∙ svenska ∙ தமிழ் ∙ ไทย ∙ Türkçe ∙ татарча / tatarça ∙ українська ∙ vèneto ∙ Tiếng Việt ∙ 中文 ∙ 中文(中国大陆) ∙ 中文(简体) ∙ 中文(繁體) ∙ 中文(马来西亚) ∙ 中文(新加坡) ∙ 中文(臺灣) ∙ +/−
    Nowa grafika

    Licencja

    Ja, właściciel praw autorskich do tego dzieła, udostępniam je na poniższych licencjach
    w:pl:Licencje Creative Commons
    uznanie autorstwa na tych samych warunkach
    Ten plik udostępniony jest na licencji Creative Commons Uznanie autorstwa–na tych samych warunkach 3.0 niezlokalizowana, 2.5 zlokalizowana, 2.0 zlokalizowana oraz 1.0 zlokalizowana.
    Wolno:
    • dzielić się – kopiować, rozpowszechniać, odtwarzać i wykonywać utwór
    • modyfikować – tworzyć utwory zależne
    Na następujących warunkach:
    • uznanie autorstwa – musisz określić autorstwo utworu, podać link do licencji, a także wskazać, czy utwór został zmieniony. Możesz to zrobić w każdy rozsądny sposób, o ile nie będzie to sugerować, że licencjodawca popiera Ciebie lub Twoje użycie utworu.
    • na tych samych warunkach – Jeśli zmienia się lub przekształca niniejszy utwór, lub tworzy inny na jego podstawie, można rozpowszechniać powstały w ten sposób nowy utwór tylko na podstawie tej samej lub podobnej licencji.
    GNU head Udziela się zgody na kopiowanie, rozpowszechnianie oraz modyfikowanie tego dokumentu zgodnie z warunkami GNU Licencji Wolnej Dokumentacji, w wersji 1.2 lub nowszej opublikowanej przez Free Software Foundation; bez niezmiennych sekcji, bez treści umieszczonych na frontowej lub tylnej stronie okładki. Kopia licencji załączona jest w sekcji zatytułowanej GNU Licencja Wolnej Dokumentacji.
    Możesz wybrać, którą licencję chcesz zastosować.

    Podpisy

    Dodaj jednolinijkowe objaśnienie tego, co ten plik pokazuje

    Obiekty przedstawione na tym zdjęciu

    przedstawia

    image/png

    9b24a2d3b8167e387d3d622b7b936cc44990929f

    87 607 bajt

    880 piksel

    1240 piksel

    Historia pliku

    Kliknij datę lub czas, aby zobaczyć, jak plik wyglądał w tamtej chwili.

    Data i czasMiniaturaWymiaryUżytkownikOpis
    aktualny18:45, 23 lip 2005Miniatura wersji z 23 lip 2005, 18:451240 × 880 (86 KB)wikimediacommons>Omegatronsplit the cutoff frequency markers

    Żadna strona nie korzysta z tego pliku.