arim.plot.common_dynamic_db_scale#
- arim.plot.common_dynamic_db_scale(data_list, area=None, db_range=40.0, ref_db=None)[source]#
- Scale such as:
0 dB corresponds to the maximum value in the area for all data arrays,
the clim for each data array are bound by the maximum value in the area.
- Parameters:
data_list
db_range (float)
- Yields:
ref_db
(clim_min, clim_max)
Examples
>>> area = grid.points_in_rectbox(xmin=10, xmax=20) >>> common_db_scale_iter = common_dynamic_db_scale(data_list, area) >>> for data in data_list: ... ref_db, clim = next(common_db_scale_iter) ... plot_oxz(data, grid, scale='db', ref_db=ref_db, clim=clim)