6 matplotlib.rcParams[
'font.family'] =
"CMU Serif" 11 import matplotlib.pyplot
as plt
12 from pylab
import genfromtxt;
13 plt.style.use([
'presentation.mplstyle',
'grayscale'])
15 import matplotlib.pyplot
as plt
16 plt.style.use([
'presentation.mplstyle',
'grayscale'])
18 mat0 = genfromtxt(
"../data/Ex_01.txt");
19 plt.plot(mat0[:,0], mat0[:,1],
"-k",fillstyle=
"none")
20 plt.xlabel(
"$y$", fontsize=20)
21 plt.ylabel(
"$u(y)$", fontsize=20)
22 plt.xticks(fontsize = 18)
23 plt.yticks(fontsize = 18)
24 plt.savefig(
'../pics/Ex_01.svg', bbox_inches=
'tight')
29 import matplotlib.pyplot
as plt
30 from pylab
import genfromtxt;
31 plt.style.use([
'presentation.mplstyle',
'grayscale'])
33 import matplotlib.pyplot
as plt
34 plt.style.use([
'presentation.mplstyle',
'grayscale'])
36 mat0 = genfromtxt(
"../data/Ex_02.txt");
37 plt.plot(mat0[:,0], mat0[:,1],
"-k",fillstyle=
"none")
38 plt.xlabel(
"$y$", fontsize=20)
39 plt.ylabel(
"$u(y)$", fontsize=20)
40 plt.xticks(fontsize = 18)
41 plt.yticks(fontsize = 18)
42 plt.savefig(
'../pics/Ex_02.svg', bbox_inches=
'tight')
49 import matplotlib.pyplot
as plt
50 from pylab
import genfromtxt;
51 plt.style.use([
'presentation.mplstyle',
'grayscale'])
52 mat0 = genfromtxt(
"../data/Ex_03.txt")
54 lineA = plt.plot(mat0[0:-1:3,0], mat0[0:-1:3,1],
"-k",fillstyle=
"none",markeredgewidth=2)
55 lineB = plt.plot(mat0[0:-1:3,0], mat0[0:-1:3,2],
"ok",markeredgewidth = 2)
56 plt.legend([
'Analytical',
'SISC++'],fontsize = 20)
57 plt.xlabel(
"$y$", fontsize=20)
58 plt.ylabel(
"$u(y)$", fontsize=20)
59 plt.xticks(fontsize = 18)
60 plt.yticks(fontsize = 18)
63 plt.savefig(
'../pics/Ex_03.svg', bbox_inches=
'tight')
69 import matplotlib.pyplot
as plt
70 from pylab
import genfromtxt;
71 plt.style.use([
'presentation.mplstyle',
'grayscale'])
72 mat1 = genfromtxt(
"../data/Ex12.txt")
74 lineA = plt.semilogy(mat1[:,0], mat1[:,1],
"-ok",fillstyle=
"none",markeredgewidth=2,markersize=9)
75 lineB = plt.semilogy(mat1[:,0], mat1[:,2],
"-^k",fillstyle=
"none",markeredgewidth = 2,markersize=9)
76 plt.legend([
'$\sigma_0$',
'$\sigma_1$'],fontsize = 20)
77 plt.xlabel(
"$\omega$", fontsize=20)
79 plt.title(
'Singular values')
80 plt.xticks(fontsize = 18)
81 plt.yticks(fontsize = 18)
83 plt.savefig(
'../pics/Ex_12.svg', bbox_inches=
'tight')
87 import matplotlib.pyplot
as plt
88 from matplotlib.font_manager
import FontProperties
93 font.set_file(
'/Users/gokul/Library/Fonts/cmunbx.ttf')
100 from pylab
import genfromtxt;
101 plt.style.use([
'presentation.mplstyle',
'grayscale'])
102 mat1 = genfromtxt(
"../data/Ex_12_2.txt")
104 lineA = plt.semilogy(mat1[:,0], mat1[:,1],
"-ok",fillstyle=
"none",markeredgewidth=2,markersize=9)
106 plt.xlabel(
"$\omega$", fontsize=20)
108 plt.title(
'Power spectral density',FontProperties=font)
109 plt.xticks(fontsize = 18)
110 plt.yticks(fontsize = 18)