how can i adjust y scale in this graph

1 次查看(过去 30 天)
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 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by