-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyPlot_3window.m
More file actions
31 lines (27 loc) · 1.01 KB
/
MyPlot_3window.m
File metadata and controls
31 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function stc = MyPlot_3window(X, Y_1, Y_2, Y_3)
stc.fig = figure('Color', [1 1 1]);
stc.layout = tiledlayout(1, 3, 'Parent', stc.fig);
stc.layout.TileSpacing = 'compact';
stc.layout.Padding = 'compact';
stc.ax1 = nexttile(stc.layout);
stc.ax1.Title.Interpreter = 'latex';
stc.plot1 = MyPlot_ax(stc.ax1, X, Y_1);
%stc.plot1.label.x.Visible = 'off';
stc.plot1.label.y.String = '$y$ ()';
stc.ax2 = nexttile(stc.layout);
stc.ax2.Title.Interpreter = 'latex';
if Y_2 ~= 0
stc.plot2 = MyPlot_ax(stc.ax2, X, Y_2);
%stc.plot2.axes.XScale = 'log';
%stc.plot2.leg.Visible = 'off';
stc.plot2.label.x.String = '$x$ ()';
stc.plot2.label.y.String = '$y$ ()';
%stc.ax2.YTick = -180:45:180;
%stc.plot2.plot.plot_2.Color = c{5};
end
stc.ax3 = nexttile(stc.layout);
stc.ax3.Title.Interpreter = 'latex';
stc.plot3 = MyPlot_ax(stc.ax3, X, Y_3);
%stc.plot3.label.x.Visible = 'off';
stc.plot3.label.y.String = '$y$ ()';
end