-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdf.m
More file actions
60 lines (45 loc) · 1.74 KB
/
df.m
File metadata and controls
60 lines (45 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
openfig("3.fig");
title_font_size = 15;
axis_font_size = 15;
tick_font_size = 15;
line_width = 1;
% Get the handle to the current figure
h = gcf;
% Get the handle to the axes of the figure
ax = get(h, 'Children');
% Loop through all axes (in case there are subplots)
for i = 1:length(ax)
% Get the title handle and change its FontSize
title_handle = get(ax(i), 'Title');
set(title_handle, 'FontSize', title_font_size);
set(title_handle, 'String', strcat('Membrane Potential of the Input Layer: \color{red}', "No Color Circle"), 'Interpreter', 'tex');
% Get the x and y label handles and change their FontSize
xlabel_handle = get(ax(i), 'XLabel');
ylabel_handle = get(ax(i), 'YLabel');
set(xlabel_handle, 'FontSize', axis_font_size);
set(ylabel_handle, 'FontSize', axis_font_size);
% Get all line objects in the axes and change their LineWidth
lines = findall(ax(i), 'Type', 'Line');
for j = 1:length(lines)
set(lines(j), 'LineWidth', line_width);
end
end
% Check if the figure uses a tiled layout
if isa(h.Children, 'matlab.graphics.layout.TiledChartLayout')
% Get the handle to the axes of the tiled layout
ax = h.Children.Children;
else
% Get the handle to the axes of the figure
ax = h.Children;
end
for i = 1:length(ax)
% Change the FontSize of the tick labels
set(ax(i), 'FontSize', tick_font_size);
end
% Loop through all axes
% for i = 1:length(ax)
% % Change the FontSize of the tick labels
% set(ax(i), 'FontSize', tick_font_size);
% end
%
% Determine the new filename