|
4 | 4 |
|
5 | 5 | import myfilemanager as mfm |
6 | 6 |
|
7 | | -tag = 'noecloud' |
| 7 | +# tag = 'HL_1.1e11_144b' |
| 8 | +# tag = 'HL_1.1e11_144b_fb' |
| 9 | + |
| 10 | +# tag = 'HL_2.3e11_144b' |
| 11 | +# tag = 'HL_2.3e11_144b_fb' |
| 12 | +# tag = 'HL_2.3e11_144b_fb_100t' |
| 13 | + |
| 14 | +# tag = 'HL_2.3e11_144b_Qp15' |
| 15 | +# tag = 'HL_2.3e11_144b_Qp15_fb' |
| 16 | + |
| 17 | +tag = 'HL_2.3e11_144b_Koct-4.5' |
| 18 | +tag = 'HL_2.3e11_144b_Koct-4.5_fb' |
| 19 | + |
| 20 | +tag = 'HL_2.3e11_144b_Qp15_Koct-4.5' |
| 21 | +tag = 'HL_2.3e11_144b_Qp15_Koct-4.5_fb' |
| 22 | + |
| 23 | +# tag = 'HL_2.3e11_144b_sey1.5' |
| 24 | +# tag = 'HL_2.3e11_144b_sey1.5_xy' |
8 | 25 |
|
9 | 26 | ob = mfm.myloadmat_to_obj(tag+'_matrices.mat') |
10 | 27 |
|
11 | 28 | x_mat = ob.mean_x |
12 | 29 | y_mat = ob.mean_y |
| 30 | +ex_mat = ob.epsn_x |
| 31 | +ey_mat = ob.epsn_y |
13 | 32 | n_mat = ob.macroparticlenumber |
14 | 33 |
|
15 | 34 | n_turns = x_mat.shape[0] |
|
18 | 37 |
|
19 | 38 | plt.close('all') |
20 | 39 |
|
21 | | -fig1 = plt.figure(1) |
22 | | -axx = plt.subplot(3,1,1) |
| 40 | +fig1 = plt.figure(1, figsize=(8*1.5, 6*1.3)) |
| 41 | +axx = plt.subplot(3,2,1) |
23 | 42 | axx.plot(x_mat[:,mask_bunch]) |
24 | | -axy = plt.subplot(3,1,2, sharex=axx) |
| 43 | +axy = plt.subplot(3,2,3, sharex=axx) |
25 | 44 | axy.plot(y_mat[:,mask_bunch]) |
26 | | -axn = plt.subplot(3,1,3, sharex=axx) |
| 45 | +axn = plt.subplot(3,2,5, sharex=axx) |
27 | 46 | axn.plot(n_mat[:,mask_bunch]) |
28 | 47 |
|
| 48 | +mask_e = np.logical_and(ex_mat[:,mask_bunch] > 0, ey_mat[:,mask_bunch] > 0) |
| 49 | + |
| 50 | +axex = plt.subplot(3,2,2) |
| 51 | +axex.plot(ex_mat[:,mask_bunch]) |
| 52 | +# axex.ticklabel_format(axis='y', style='sci', scilimits=(0,0)) |
| 53 | +axey = plt.subplot(3,2,4, sharex=axx) |
| 54 | +axey.plot(ey_mat[:,mask_bunch]) |
| 55 | +# axey.ticklabel_format(axis='y', style='sci', scilimits=(0,0)) |
| 56 | +axen = plt.subplot(3,2,6, sharex=axx) |
| 57 | +axen.plot(n_mat[:,mask_bunch]) |
| 58 | + |
| 59 | +for ax in [axex, axey]: |
| 60 | + ax.ticklabel_format(axis='y', style='sci', scilimits=(0,0)) |
| 61 | + ax.set_ylim(bottom=2.4e-6) |
| 62 | +plt.savefig('Overview_%s.png'%(tag), dpi=200) |
| 63 | + |
29 | 64 |
|
30 | | -i_turn = 3 |
| 65 | +i_turn = 800 |
31 | 66 |
|
32 | 67 | figm = plt.figure(10, figsize=(8,6*1.3)) |
33 | 68 | axm1 = figm.add_subplot(3,1,1) |
|
0 commit comments