-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_plot.m
More file actions
50 lines (41 loc) · 1.15 KB
/
set_plot.m
File metadata and controls
50 lines (41 loc) · 1.15 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
function set_plot( current_fig, current_axes )
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
% To avoid figures with random size (matlab bug)
pause(0.1);
drawnow;
colors = [
1.00 0.00 0.00
0.00 0.50 0.00
0.00 0.00 1.00
0.93 0.69 0.13
0.50 0.00 0.50
];
lineStyle = {'-','--',':','-.'};
assignin('caller','lineStyle',lineStyle);
set(current_fig, ...
'Position',[100 100 800 600], ...
'Color','white', ...
'DefaultTextInterpreter', 'latex', ...
'DefaultLegendInterpreter', 'latex', ...
'DefaultAxesTickLabelInterpreter', 'latex')
% set(current_axes, ...
% 'Box', 'On', ...
% 'XGrid', 'On', ...
% 'YGrid', 'On', ...
% 'GridAlpha', 0.5, ...
% 'FontSize', 24, ...
% 'NextPlot','replacechildren', ...
% 'TickLabelInterpreter','latex', ...
% 'ColorOrder', colors)
set(current_axes, ...
'Box', 'On', ...
'XGrid', 'On', ...
'YGrid', 'On', ...
'GridAlpha', 0.5, ...
'FontSize', 24, ...
'NextPlot','replacechildren', ...
'TickLabelInterpreter','latex')
current_axes.XLabel.Color = [0 0 0];
current_axes.YLabel.Color = [0 0 0];
end