Skip to content

Commit 408e186

Browse files
committed
Update plotting.m
1 parent dd3dbb1 commit 408e186

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

code/plotting.m

+30-9
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,37 @@
175175
nnmu = splitapply(@mean,tbltmp.nnmu,G);
176176
nnsigma = splitapply(@std,tbltmp.nnmu,G);
177177
paperfigure();
178-
errorbar(ID,nnmu,nnsigma);
178+
% errorbar(ID,nnmu,nnsigma);
179+
yyaxis left
180+
hErr = errorbar(ID,nnmu,nnsigma);
181+
% hold on
182+
% x = 388:100:50000;
183+
% f = 2.5025e-5*x-1.27396*log(x)+15.4499;
184+
% plot(x,f,'k-');
185+
set(gca,'XScale','log','ycolor','k');
186+
% xlabel('VFZO Set Size','Interpreter','latex')
187+
xlabel('Cardinality of VFZO Point Set','Interpreter','latex')
188+
% ylabel('VFZO $\omega_{\mathrm{NN}}$ ($^{\circ}$)','Interpreter','latex')
189+
ylabel('NN Distance ($d_\Omega\ \left[^{\circ}\right]$)','Interpreter','latex')
190+
ylm = ylim;
191+
yyaxis right
192+
hCorr = plot(ID,nnmu./7.5);
179193
hold on
180-
x = 388:100:50000;
181-
f = 2.5025e-5*x-1.27396*log(x)+15.4499;
182-
plot(x,f,'k-');
183-
set(gca,'XScale','log');
184-
xlabel('VFZO Set Size','Interpreter','latex')
185-
ylabel('VFZO $\omega_{\mathrm{NN}}$ ($^{\circ}$)','Interpreter','latex')
186-
legend('Data','$ax-\mathrm{log}(x)b+c$','Interpreter','latex')
187-
savefigpng(figfolder,'nndist-vs-setsize');
194+
xlm = xlim;
195+
% plot(xlm,0.25*ones(size(xlm)),'k--','color',0.8*ones(1,3))
196+
% plot(xlm,0.5*ones(size(xlm)),'k--','color',0.8*ones(1,3))
197+
% plot(xlm,0.75*ones(size(xlm)),'k--','color',0.8*ones(1,3))
198+
% plot(xlm,ones(size(xlm)),'k--','color',0.8*ones(1,3))
199+
% plot(xlm,1.25*ones(size(xlm)),'k--','color',0.8*ones(1,3))
200+
% plot(xlm,1.5*ones(size(xlm)),'k--','color',0.8*ones(1,3))
201+
ylabel('NN Distance ($l$)','Interpreter','latex')
202+
ylim(ylm/7.5);
203+
set(gca,'ycolor','k')
204+
set(hCorr,'linestyle','none')
205+
% legend('Data','$ax-\mathrm{log}(x)b+c$','Interpreter','latex')
206+
savefigpng(figfolder,'nndist-vs-setsize-final');
207+
208+
% interp1(nnmu,ID,7.5)
188209

189210
%%
190211
clear mdlparstbl

0 commit comments

Comments
 (0)