From Wikipedia, the free encyclopedia
Size of this preview: 800 × 560 pixelsFull resolution (1,250 × 875 pixels, file size: 95 KB, MIME type: image/png)
A graph of a sinusoidal linear chirp. It would be cool to show the f(t) function on the same graph. Any ideas?
[edit] Instructions
See Wikipedia graph-making tips.
Newest version created in Maxima using the command:
x(t):=sin(2*%PI*(.1+1*t)*t);
So f0 = 0.1 Hz and k = 1, according to the equation given in the article:
- x(t) = sin(2πf(t)t) = sin(2π(f0 + kt)t)
It was then plotted using Maxima's gnuplot interface through the command:
plot2d(x(t),[t,0,5],[nticks,500], [gnuplot_preamble,"set grid x; set ytics 1; set yrange [-2:2]; set nokey"], [gnuplot_ps_term_command,"set term postscript enhanced landscape color solid lw 2 'Times-Roman' 20"], [gnuplot_term,ps], [gnuplot_out_file,"linchirp.ps"]);
To convert the PostScript file to PNG:
- 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
- Crop off extra whitespace (Shift+C if you can't find it in the toolbox)
- Possibly need to rotate it: Click Image → Transform → Rotate 90 degrees clockwise
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.)
- Image → Scale Image...
- Width and Height at 25%
- Cubic interpolation
- You can view at normal size if you want by pressing 1, Ctrl+E
- Save as Linearchirp.png
Created by User:Omegatron using gnuplot, possibly with post-processing in the GIMP (PNG) or Inkscape (SVG)
I, the copyright holder of this work, hereby publish it under the following licenses:
You may select the license of your choice.
|
(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.
| Date/Time | Dimensions | User | Comment |
current | 19:30, 4 July 2005 | 1,250×875 (95 KB) | Omegatron | |
| 19:53, 26 June 2005 | 300×200 (3 KB) | Omegatron | |
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):