Log scale (x axis) histogram
问题 what I need is a histogram with X axis displayed on a log scale. However, I still want every bar in a histogram to be of the same width. Whatever, I came up with (or upon) display bars with higher values as narrower ones (they are of the same width on ordinary scale and not on log scale). Here is what I am doing now: edges = 10.^(c_min:0.1:c_max); h = histc(data, edges); bar(edges, h); set(gca, 'Xscale', 'log'); 回答1: Since your bars should be evenly spaced, you can plot them with x-values 1,2