plots the axis scale
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Osita Onyejekwe
le 2 Fév 2017
Réponse apportée : Star Strider
le 2 Fév 2017
I have two plots with the same x-axis but their y-axis are scaled differently. how do I make them the same scale?
Here is my plots command
zero_vector = zeros(size(Standard_error_positive_INFLP)); % just the straight line
% zero_vector = zeros(1,min(size(Z_pbw,1),size(W,1)));
figure(1)
plot(Confidence_interval_Negative_INFLPS(1,:), '-b')
title('Negative Inflection Points Confidence Interval')
hold on
plot(Confidence_interval_Negative_INFLPS(2,:), '-b')
%plot(, 'rp')
plot(zero_vector) % plot straight line at zero
hold off
figure(2)
plot(Confidence_interval_Positive_INFLPS(1,:), '-b')
title('Positive Inflection Points Confidence Interval')
hold on
plot(Confidence_interval_Positive_INFLPS(2,:), '-b')
% plot(, 'rp')
plot(zero_vector) % plot straight line at zero
hold off
0 commentaires
Réponse acceptée
Star Strider
le 2 Fév 2017
You may have to use two y-axes, with the new yyaxis or older plotyy functions.
Also see the documentation on Axes Properties (link) if you need to adjust either one to create the scaling you want.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Two y-axis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!