logarithmic bar chart with variable bases

I would like to use a logarithmic y axis for a bar chart.
This goes with the command
set(gca,'YScale','log')
Now I want to adjust the scaling of the axis using different bases (10, 20 ...).
Is there a way to do this in Matlab?

댓글 수: 3

dpb
dpb 2020년 3월 4일
Use the named parameter 'BaseValue' It is global for all bars, however.
the cyclist
the cyclist 2020년 3월 4일
편집: the cyclist 2020년 3월 4일
I interpreted OP's question to mean he wants to change the base of the logarithm (base-10 log, base-20 log, etc), rather than setting the value of the baseline of the bars.
In that case, I think the answer is no. All one can do is to plot the logarithm of the data on a linear axis.
dpb
dpb 2020년 3월 4일
If that is the intent, then yes. You could with a lot of effort, create your own log scale axes object, but would be sizable effort for more than the most rudimentary.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Log Plots에 대해 자세히 알아보기

질문:

2020년 3월 4일

댓글:

dpb
2020년 3월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by