PLOTTING MULTIPLE Y AXES
72 ビュー (過去 30 日間)
古いコメントを表示
Good afternoon,
How could I create a graph with multiple y-axes: Millitm, PIT, TIT, PD, FIT
T2022_1 = readtable('data.csv', 'VariableNamingRule','preserve');
MyDateTime = T2022_1.Date + T2022_1.Time;
MyDateTime.Format = 'yyyy-MM-dd HH:mm:ss';
T2022_2 = [T2022_1(:,1) table(MyDateTime) T2022_1(:,[3:end])];
figure(1)
plot(T2022_2.MyDateTime, T2022_2.('PIT'), '-k', 'LineWidth',1, 'DisplayName', 'Pressure Separador')
grid on
xlabel('Date & Time')
ylabel('Pressure - Psig')
lgd = legend;
lgd.NumColumns = 1;
![Similar like this plot](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1741696/Similar%20like%20this%20plot.jpeg)
for the help, thank you in advance
11 件のコメント
Umar
2024 年 7 月 28 日 17:55
@dpb,
Thank you for sharing your feedback regarding mobile formatting. I understand that writing code on a phone can be challenging, especially for those who are not accustomed to it. Your perspective as someone who primarily uses a phone for communication is valuable and help me consider different user experiences.
dpb
2024 年 7 月 28 日 18:20
編集済み: dpb
2024 年 7 月 28 日 20:57
" Your perspective as someone who primarily uses a phone for communication ..."
More accurately, that is "as someone who uses a phone for only communication (and even then reluctantly)..." :)
In my former life I was 25+ years a single consultant tied to always having to be available. When I returned to the family farm and gave up the consulting gig, one prime life objective was to not be tied to a pager or other means of being at another's beck and call. The phone mostly resides on the buffet in the dining room unless I do on (the fairly rare) occasion have something for which I do want to stay in touch. But, that's just me and I recognize that any more that is an anachronism.
ADDENDUM
I had really noticed what seemed to me to be a marked decline in the percentage of postings in which code was being formatted but had never thought to tie that to the increasing use of mobile devices. I do think if this is the root or major cause (and given Walter's description of doing so I can see why almost nobody would/does) then Mathworks needs to seriously consider the user intrface for those devices to try to make it less cumbersome. Having essentially no experience in the area, I'm certainly in no position to indicate how they are to do that, but it does seem to be an issue that hampers the functionality of the forum for all, not just mobile users.
PS
"as someone who uses a phone for only communication ..."
I stand corrected. I do find the camera of value to take pictures of equipment as disassembling for repair, etc., and in the same arena the flashlight can be helpful in dark crannies as well...
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!