logarithmic bar chart with variable bases

1 Ansicht (letzte 30 Tage)
Mepe
Mepe am 4 Mär. 2020
Kommentiert: dpb am 4 Mär. 2020
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 Kommentare
the cyclist
the cyclist am 4 Mär. 2020
Bearbeitet: the cyclist am 4 Mär. 2020
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 am 4 Mär. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by