how can i adjust y scale in this graph

1 view (last 30 days)
woongki park
woongki park on 4 Nov 2018
Commented: woongki park on 4 Nov 2018
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 Comments
madhan ravi
madhan ravi on 4 Nov 2018
upload your code and datas to interpret
woongki park
woongki park on 4 Nov 2018
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

Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 4 Nov 2018
Edited: madhan ravi on 4 Nov 2018
use ylim()

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!