Set the transparency of bars in a bar plot and set the y-axis to a log scale - but both don't seem to work in MATLAB
问题 In MATLAB, I want to set the transparency of bars in a bar plot to 0.3 and set the y-axis to a log scale - but both don't seem to work... subplot('Position',[0.15 0.7 0.45 0.15]); data = [1 2 5 4 7 4 1]; B = bar(data,'g'); ch = get(B,'child'); set(ch,'facea',.3) That works fine, but then add on this: set(gca,'YScale','log'); and the transparency setting doesn't work. Any ideas? Thanks! 回答1: Log Scale axis and Transparency do not work together in Matlab Why? OpenGl renderer, (which must be