plots the axis scale

2 次查看(过去 30 天)
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

采纳的回答

Star Strider
Star Strider 2017-2-2
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 个)

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by