File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 7676}
7777
7878
79+ html_favicon = 'favicon/favicon.ico'
80+
7981# Add any paths that contain custom static files (such as style sheets) here,
8082# relative to this directory. They are copied after the builtin static files,
8183# so a file named "default.css" will overwrite the builtin "default.css".
Original file line number Diff line number Diff line change 1+ import numpy as np
2+ import matplotlib .pyplot as plt
3+
4+ if __name__ == '__main__' :
5+ bandwidth = 1
6+ center = 0
7+ grid_values = np .linspace (- 6 , 6 , 500 )
8+ shannon = (
9+ np .sqrt (bandwidth )
10+ * (
11+ np .sin (np .pi * bandwidth * grid_values )
12+ / (np .pi * bandwidth * grid_values )
13+ )
14+ * np .exp (1j * 2 * np .pi * center * grid_values )
15+ )
16+ plt .plot (shannon , linewidth = 20.0 )
17+ plt .axis ("off" )
18+ plt .savefig ("shannon.png" )
19+ plt .show ()
You can’t perform that action at this time.
0 commit comments