From Wikipedia, the free encyclopedia

The Haar wavelet. Replacement for ASCII art:
|
1 ****O
|
| 1/2
0 *****O---+---*****
|
|
-1 | ****O
0
[edit] Instructions
See Wikipedia graph-making tips.
Generated in gnuplot with the following script:
# Set 1300×975 SVG output and filename
# The font size (fsize) sets the size for the circles, too.
set terminal svg enhanced size 1300 975 fname "Times" fsize 36
set output "haar wavelet.svg"
# Set the text value for missing entries in the data file, so we can plot a discontinuous function
set datafile missing "Skip"
# Set y axis limits so the plot doesn't go right to the edges of the graph
set yrange [-1.5:1.5]
set xrange [-0.5:1.5]
set lmargin 5
set bmargin -5
# No legend needed
set nokey
# Add lightly-colored axis lines
set yzeroaxis
set xzeroaxis
# Put a tic at every integer
set xtics 1
set mxtics 10
# Format x-axis tics as single digits
set format x "%g"
# Format y-axis tics as digit with one decimal place
set format y "%2.1f"
set mytics 4
# Plot as lines and also points
# Different line styles are plotted as separate lines for ease of post-processing
plot "haarlines1.dat" with lines, "haarlines2.dat" with lines, "haarpoints1.dat" with points pt 6, "haarpoints2.dat" with points pt 6
# with points:
# 1 = color red (linestyle 1?)
# 6 = point style 6 (render as circles in SVG)
# Close the file (so I don't have to close gnuplot to view it)
set output
and data files:
haarlines1.dat
# X Y
-0.5 0
0 0
Skip
0 1
0.5 1
Skip
0.5 -1
1 -1
Skip
1 0
1.5 0
haarlines2.dat
# X Y
0 0
0 1
Skip
0.5 1
0.5 -1
Skip
1 -1
1 0
haarpoints1.dat
# X Y
0 1
0.5 -1
1 0
haarpoints2.dat
# X Y
0 0
0.5 1
1 -1
Then I opened the resulting SVG file in Inkscape, changed the fill style for the circles (either blue or white fill), line styles (to do dashed lines), brought the plot lines to the top, and then brought the circles to the top (over the lines).
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:
 |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
|
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.)
[edit] External links
File history
File usage
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on bg.wikipedia.org
- Usage on cs.wikipedia.org
- Usage on de.wikipedia.org
- Usage on eo.wikipedia.org
- Usage on es.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on id.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on lt.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on ru.wikipedia.org
- Usage on sv.wikipedia.org
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.