I am confused by the figure output on the webpage
http://www.k-wave.org/documentation/example_ivp_heterogeneous_medium.php
I don't understand why the proportion of the white bar in the forth panel (Density) of Figure 1 is not 1/4 of the whole area.
If the medium.density is set using the following formulas, one fourth of the medium is 1000, and three fourths are 1200:
medium.density = 1000 * ones(Nx, Ny); % [kg/m^3]
medium.density(:, Ny/4:Ny) = 1200; % [kg/m^3]
In the output figure generated by:
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, 'PlotLayout', true, 'PlotPML', false), I expect one-forth of the Density output is white, and three-fourths are dark. However, the figure on that page is not like this, it seems the white part is too narrow. I tried the code myself, and the result also indicates that the white part is too narrow.