필터 지우기
필터 지우기

plots the axis scale

조회 수: 2 (최근 30일)
Osita Onyejekwe
Osita Onyejekwe 2017년 2월 2일
답변: Star Strider 2017년 2월 2일
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