how can i adjust y scale in this graph

조회 수: 1 (최근 30일)
woongki park
woongki park 2018년 11월 4일
댓글: woongki park 2018년 11월 4일
in this picture 2 graph are too far from center. so i want to make these graph closer by adjusting y-scale could u let me know any solution
  댓글 수: 2
madhan ravi
madhan ravi 2018년 11월 4일
upload your code and datas to interpret
woongki park
woongki park 2018년 11월 4일
if true
if state1
yyaxis left
plot(handles.Time,handles.currentData1,'DisplayName','Vrms1');
hold on
end
if state2
yyaxis left
plot(handles.Time,handles.currentData2,'DisplayName','Vrms2');
hold on
end
if state3
yyaxis left
plot(handles.Time,handles.currentData3,'DisplayName','Vrms3');
hold on
end
if state4
yyaxis left
plot(handles.Time,handles.currentData4,'DisplayName','Vdc');
hold on
end
if state5
yyaxis right
plot(handles.Time,handles.currentData5,'DisplayName','Irms1');
hold on
end
if state6
yyaxis right
plot(handles.Time,handles.currentData6,'DisplayName','Irms2');
hold on
end
if state7
yyaxis right
plot(handles.Time,handles.currentData7,'DisplayName','Irms3');
hold on
end
if state8
yyaxis right
plot(handles.Time,handles.currentData8,'DisplayName','Idc');
hold on
end
if state9
yyaxis left
plot(handles.Time,handles.currentData9,'DisplayName','유효전력');
hold on
end
if state10
yyaxis left
plot(handles.Time,handles.currentData10,'DisplayName','무효전력');
hold on
end
if state11
yyaxis left
plot(handles.Time,handles.currentData11,'DisplayName','피상전력');
hold on
end
if state12
yyaxis left
plot(handles.Time,handles.currentData12,'DisplayName','입력전력');
hold on
end
if state13
yyaxis right
plot(handles.Time,handles.currentData14,'DisplayName','효율');
hold on
end
if state14
yyaxis right
plot(handles.Time,handles.currentData13,'DisplayName','역률');
hold on
end
if state15
yyaxis right
plot(handles.Time,handles.currentData15,'DisplayName','Ithd');
hold on
end
if state16
yyaxis left
plot(handles.Time,handles.currentData16,'DisplayName','DC-Link 전압');
hold on
end
if state17
yyaxis right
plot(handles.Time,handles.currentData17,'DisplayName','DC-Link 전류');
hold on
end
end
I use yyaxis . here is another issue. (state 1~6)-group1 (State 7~12)-group2 (state 13~17) - group 3 and i will plot up to 2 group.(more than 3 group warning alerted) so when i check some state in group 1,group2 and group3 yyaxis have to be allocated automatically . this is what i want

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 4일
편집: madhan ravi 2018년 11월 4일
use ylim()

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by