1114 |
1114 |
1115 time_cut = self.time[zoom[2]:zoom[3]] |
1115 time_cut = self.time[zoom[2]:zoom[3]] |
1116 time_last = time_cut[-1] + dt # The last element needed for pcolormesh |
1116 time_last = time_cut[-1] + dt # The last element needed for pcolormesh |
1117 time_all = time_cut + (time_last,) |
1117 time_all = time_cut + (time_last,) |
1118 t_axis = mpl.dates.date2num(time_all) |
1118 t_axis = mpl.dates.date2num(time_all) |
|
1119 |
1119 # Get the values of the z axis |
1120 # Get the values of the z axis |
1120 z_cut = self.z[hmin_idx:hmax_idx] - self.resolution / 2. |
1121 z_cut = self.z[hmin_idx:hmax_idx] - self.resolution / 2. |
1121 z_last = z_cut[-1] + self.resolution |
1122 z_last = z_cut[-1] + self.resolution |
1122 z_axis = np.append(z_cut, z_last) / 1000. + z0 / 1000. # Convert to km |
1123 z_axis = np.append(z_cut, z_last) / 1000. + z0 / 1000. # Convert to km |
1123 # Plot |
1124 # Plot |