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 Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by