-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreateComparisonfigure.m
67 lines (53 loc) · 1.87 KB
/
createComparisonfigure.m
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
61
62
63
64
65
66
function createComparisonfigure(X1, Y1, X2, Y2, X3, Y3, X4, Y4, X5, Y5, X6, Y6)
%CREATEFIGURE(X1, Y1, X2, Y2, X3, Y3, X4, Y4, X5, Y5, X6, Y6)
% X1: vector of x data
% Y1: vector of y data
% X2: vector of x data
% Y2: vector of y data
% X3: vector of x data
% Y3: vector of y data
% X4: vector of x data
% Y4: vector of y data
% X5: vector of x data
% Y5: vector of y data
% X6: vector of x data
% Y6: vector of y data
% Auto-generated by MATLAB on 04-Feb-2016 21:10:47
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Parent',figure1,'YMinorTick','on','YScale','log',...
'FontSize',12);
%% Uncomment the following line to preserve the X-limits of the axes
% xlim(axes1,[-0.25 0.05]);
%% Uncomment the following line to preserve the Y-limits of the axes
% ylim(axes1,[1e+18 1e+24]);
box(axes1,'on');
hold(axes1,'on');
% Create ylabel
ylabel({'Electron Density (cm^{-3})'},'FontSize',14);
% Create xlabel
xlabel({'Axial Position (cm)'},'FontSize',14);
% Create title
title({'Electron Density Comparison between Hyades and FLASH'});
% Create semilogy
semilogy(X1,Y1,'DisplayName','FLASH 1.5ns','Color',[0 0.498039215803146 0]);
% Create semilogy
semilogy(X2,Y2,'DisplayName','HYADES 30','LineStyle','--',...
'Color',[0 0.498039215803146 0]);
% Create semilogy
semilogy(X3,Y3,'DisplayName','FLASH 2.5ns','Color',[1 0 0]);
% Create semilogy
semilogy(X4,Y4,'DisplayName','HYADES 2.5ns','LineStyle','--',...
'Color',[1 0 0]);
% Create semilogy
semilogy(X5,Y5,'DisplayName','FLASH 3.5ns',...
'Color',[0 0.447058826684952 0.74117648601532]);
% Create semilogy
semilogy(X6,Y6,'DisplayName','HYADES 3.5ns','LineStyle','none',...
'Color',[0 0.447058826684952 0.74117648601532]);
% Create legend
legend1 = legend(axes1,'show');
set(legend1,...
'Position',[0.143142100400145 0.710727969348659 0.235788717209918 0.185823754789272],...
'FontSize',10.8);