Effacer les filtres
Effacer les filtres

scaling y-axis

1 vue (au cours des 30 derniers jours)
Lionel Amuzu
Lionel Amuzu le 26 Juil 2019
Commenté : Lionel Amuzu le 26 Juil 2019
Could anyone Re-scale the y-axis so the first plot '' plot(data1(:,1),data1(:,2),'r--o')'' on line 3 can appear better on the graph?
data1=[300 3.257e-06 9.375e-05; 380 2.543e-06 3.556e-04;400 9.655e-06 1.743e-03;450 3.119e-06 9.897e-05;...
500 3.257e-06 2.115e-03;540 9.611e-06 3.450e-04;560 2.512e-06 1.345e-03;600 5.164e-05 1.666e-04];
plot(data1(:,1),data1(:,2),'r--o')
%set(H,'YTickLabels',{'1^{-1}'})
hold on
plot(data1(:,1),data1(:,3),'b--*')
hold off

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 26 Juil 2019
Modifié(e) : KALYAN ACHARJYA le 26 Juil 2019
Could anyone Re-scale the y-axis so the first plot '' plot(data1(:,1),data1(:,2),'r--o')'' on line 3 can appear better on the graph?
twoset=[300 3.257e-06; 380 2.543e-06;400 9.655e-06;450 3.119e-06;500 3.257e-06;540 9.611e-06;560 2.512e-06;600 5.164e-05];
oneset=[300 9.375e-05; 380 3.556e-04;400 1.743e-03;450 9.897e-05;500 2.115e-03;540 3.450e-04;560 1.345e-03;600 1.666e-04];
loglog(twoset(:,1),twoset(:,2),'r--o')
%set(H,'YTickLabels',{'1^{-1}'})
hold on
loglog(oneset(:,1),oneset(:,2),'b--*')
hold off
  1 commentaire
Lionel Amuzu
Lionel Amuzu le 26 Juil 2019
That works perfectly thank you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by