Skip to content

Commit 39d65e2

Browse files
committed
plots finished
1 parent 7aeeda9 commit 39d65e2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

postprocessing/plotting/imseq_vecex.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ function imseq_vecex(y, cfg, nfmax, view_dim)
6969
% Draw and get frame
7070
drawnow
7171

72-
% https://www.mathworks.com/matlabcentral/answers/1615265-physical-size-of-exportgraphics
72+
% https://www.mathworks.com/matlabcentral/answers/363832-some-figures-not-saving-as-vector-graphics-svg
73+
% https://www.mathworks.com/matlabcentral/answers/471164-print-pdf-to-a-specific-size
7374
hf = gcf;
74-
set(hf, 'Units', 'centimeters',...
75-
'OuterPosition', [4 4 12 12])
76-
exportgraphics(hf, fullfile("anim", cfg.casename, sprintf("anim-%d.pdf", ii)), 'ContentType', 'vector')
75+
hf.Units = 'centimeters'; % set figure units to cm
76+
hf.PaperUnits = 'centimeters'; % set pdf printing paper units to cm
77+
hf.PaperSize = hf.Position(3:4); % assign to the pdf printing paper the size of the figure
78+
print(hf,'-vector','-dpdf',fullfile("anim", cfg.casename, sprintf("anim-%d.pdf", ii))) % pdf
7779
ii = ii + 1; % JANK but works
7880
end
7981
end

sim/propulsion/thrust_magnitude.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
% Sail/Sun parameters
77
P = 4.56e-6; % N/m^2
8-
sigma = 0.002; % kg/m^2
8+
sigma = 0.005; % kg/m^2
99
eta = 0.85;
1010

1111
T = 2 * P * eta / sigma;

0 commit comments

Comments
 (0)