@@ -54,7 +54,7 @@ def get_fig(self, *args, **kwargs):
5454
5555 def save_fig (self , fig , name ):
5656 path = f'plots/{ self .name } _{ name } .pdf'
57- fig .savefig (path , bbox_inches = 'tight' )
57+ fig .savefig (path , bbox_inches = 'tight' , dpi = 300 )
5858 print (f'Saved { path !r} ' , flush = True )
5959
6060 @property
@@ -281,9 +281,11 @@ def plot_series(self, test=False):
281281 if test :
282282 indices = [0 , 1 , 2 , 3 , 4 , 5 ]
283283 process = 0
284+ layer = 0
284285 else :
285- indices = [0 , 10 , 20 , 30 , 40 , 91 ]
286- process = 96
286+ indices = [91 ] # [0, 10, 20, 30, 40, 91]
287+ process = 120 # 141#20#96 # 11
288+ layer = 6
287289
288290 from mpl_toolkits .axes_grid1 import make_axes_locatable
289291
@@ -300,14 +302,19 @@ def plot_series(self, test=False):
300302 for frame in frame_range :
301303
302304 plt .rcParams ['figure.constrained_layout.use' ] = True
303- fig , ax = plt .subplots (1 , 1 , figsize = figsize_by_journal ('TUHH_thesis' , 0.4 , 1.1 ))
305+ fig , ax = plt .subplots (1 , 1 , figsize = figsize_by_journal ('TUHH_thesis' , 0.7 , 1.1 ))
304306 divider = make_axes_locatable (ax )
305307 cax = divider .append_axes ('right' , size = '3%' , pad = 0.03 )
306308
307309 path = self .get_path (idx = frame , n_space = process )
308310 with open (path , 'rb' ) as file :
309311 data = pickle .load (file )
310- im = ax .pcolormesh (X [1 ][0 ], X [2 ][0 ], data ['u' ][0 ], cmap = 'binary' , rasterized = True )
312+
313+ # im = ax.pcolormesh(X[1][0], X[2][0], np.max(data['v'], axis=0), cmap='binary', rasterized=True, vmin=0, vmax=0.5)
314+ # im = ax.pcolormesh(X[1][layer], X[2][layer], data['v'][layer], cmap='binary', rasterized=True, vmin=0, vmax=0.5)
315+ im = ax .pcolormesh (X [1 ][layer ], X [2 ][layer ], data ['v' ][layer ], cmap = 'binary' , rasterized = True , vmin = 0 , vmax = 0.5 )
316+ ax .set_xlim ((9 , 14 ))
317+ ax .set_ylim ((- 4 , 1 ))
311318
312319 fig .colorbar (im , cax ) # , label=f'$T(t={{{t:.1f}}})$')
313320
0 commit comments