Skip to content

Commit cb626b7

Browse files
committed
docs with favicon.
1 parent 60de3d8 commit cb626b7

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
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".

docs/favicon/favicon.ico

2.69 KB
Binary file not shown.

docs/favicon/plot_shannon.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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()

0 commit comments

Comments
 (0)