How to set X&Y axis linear in weibull plot

7 ビュー (過去 30 日間)
Raymundo del Campo Castro
Raymundo del Campo Castro 2020 年 5 月 6 日
コメント済み: Image Analyst 2020 年 6 月 1 日
Hia everybody, im using the function wblplot but i cant handle axis to make them linear does anybody knows how to do it, im a new matlab user, thanks in advance

回答 (1 件)

David Hill
David Hill 2020 年 5 月 6 日
ax=gca;
ax.XScale='linear';
ax.YScale='linear';
  2 件のコメント
Raymundo del Campo Castro
Raymundo del Campo Castro 2020 年 5 月 6 日
Thanks David, i've already try that, it works for the X axis but the Y axis is not affected
Image Analyst
Image Analyst 2020 年 6 月 1 日
Can you please upload a screenshot so we can see? Also can you please upload your code, and data file (if needed), so that we can reproduce your situation and try to help you better? Such as something like
rng('default') % For reproducibility
r = wblrnd(1.2,1.5,50,1);
% Create a Weibull probability plot to visually determine if the data comes from a Weibull distribution.
subplot(2, 1, 1);
h = wblplot(r)
% ax=gca;
% ax.XScale='linear';
% ax.YScale='linear';
% Plot data linearly.
subplot(2, 1, 2);
x = h(1).XData
y = h(1).YData
plot(x, y, 'b+');
hold on;
x = h(2).XData
y = h(2).YData
plot(x, y, 'r-');
x = h(3).XData
y = h(3).YData
plot(x, y, 'r-.');
grid on;

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by