Why does this happen when using the log scale for the y-axis?
Show older comments
Hello,
I am trying to build a bar chart and to neatly represent the errors for both, the methods of Lagrange and linear spline, for interpolation.
however whenever I run the code, I am getting bars that tend to infinty from below.
I want them to start from
so that error bars higher than that go up, and error bars lower than that go down.
so that error bars higher than that go up, and error bars lower than that go down. How can I solve this problem?
Thank you for your help.
figure
L_err_X = [5.58766454362922 21.1118153882187 15.7457248117304 9056.59448225290 737241807.345839]
S_err_X = [5.58766454362922 15.9092058567649 9.79528785926242 1.18154028820416 0.481370143021060]
bar([L_err_X; S_err_X]')
legend('lagrange','Spline')
title('Erreurs de Calcul pour les 2 Methodes')
ylabel('error X')
set(gca,'YScale','log')
grid on
Accepted Answer
More Answers (0)
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

