...
 
Commits (4)
......@@ -13,7 +13,11 @@
"from scipy.optimize import curve_fit\n",
"\n",
"\n",
"data_path = '../../data/CN_cylindric_complex_'\n",
"data_path = '../data/CN_cylindric_complex_'\n",
"sigma = 1e-3\n",
"lambd = 700 * 10 ** -9\n",
"k = 2 * np.pi / lambd\n",
"\n",
"\n",
"def import_data(path):\n",
" data_array = np.loadtxt(path + 'E.dat', dtype=float)\n",
......
......@@ -33,6 +33,15 @@
"data_ary, r_pts, z_pts = import_data(data_path)\n",
"plot_data(r_pts, z_pts, data_ary)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plt.plot(r_pts, data_ary[-1, :])"
]
}
],
"metadata": {
......
This diff is collapsed.