symmetrical logarithmic (positive only) x axis

2 ビュー (過去 30 日間)
Kristen Rahilly
Kristen Rahilly 2021 年 7 月 13 日
コメント済み: Kristen Rahilly 2021 年 7 月 15 日
Hello!
I'm trying to plot flux values on the Y axis versus cumulative probability on the X axis. I've figured out the following code:
xdata = probability; %data I've entered as a variable
ydata = flux; %data I've entered as a variable
scatter(xdata,ydata);
set(gca,'xscale','log','yscale','log');
xticks([0.01 0.5 2 10 30 50 70 90 98 99.5 99.99]);
xlim([0 120]);
xlabel('cumulative probability')
ylabel('flux CO2')
which produces this graph:
but the issue is, I would like to recreate the following X axis (ignore the Y axis below) where there is more space between intervals at lower and higher probabilities:
Any help in doing this would be greatly appreciated!
  6 件のコメント
dpb
dpb 2021 年 7 月 14 日
Oh, I see you did say a lognormal distribution above...missed it on the first reading.
BTW, with probplot default puts y on x-axis, to put the probability axis on x, use
view(90,90)
to rotate the view.
Kristen Rahilly
Kristen Rahilly 2021 年 7 月 15 日
Hi dpb,
That works perfectly! Thank you very much for all your help.

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by