Opacity misleading when plotting two histograms at the same time with matplotlib
问题 Let's say I have two histograms and I set the opacity using the parameter of hist: 'alpha=0.5' I have plotted two histograms yet I get three colors! I understand this makes sense from an opacity point of view. But! It makes is very confusing to show someone a graph of two things with three colors. Can I just somehow set the smallest bar for each bin to be in front with no opacity? Example graph 回答1: The usual way this issue is handled is to have the plots with some small separation. This is