GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
latexFig.m
Go to the documentation of this file.
1 function latexFig(gca, fontSize, cbar, xtick, ytick, xticklabels, yticklabels)
2 %latexFig LaTeXify the plot axes
3 % This sets the plotting axis on supplied figure to LaTeX formatted
4 % {x,y}tick can be used to overwrite the automatically defined tick
5 % locations
6 % {x,y}ticklabels overwrites the labels at the positions defined by
7 % {x,y}tick values
8 % This assumes that the Latin Modern fonts are installed
9 % Fontsize sets the size of the text
10 % cbar enables the colorbar if needed
11 
12 % example:
13 % pcolor(rand(10,10));
14 % latexFig(gca,30,1,2:2:10,1:2:10,{'a1','b1','c1','d1','e1'},{'a2','b2','c2','d2','e2'})
15 
16 set(gca,'TickLabelInterpreter', 'latex');
17 set(gca,'DefaultTextInterpreter','Latex');
18 
19 if nargin >= 2
20  set(gca,'FontName','Latin Modern Roman','FontSize',fontSize);
21 end
22 
23 if cbar == 1
24  h=colorbar; set(h,'TickLabelInterpreter','latex');
25 end
26 
27 if nargin >= 5
28  set(gca,'XTick',xtick);
29  set(gca,'YTick',ytick);
30 end
31 
32 if nargin >= 7
33  set(gca,'XTickLabels',xticklabels);
34  set(gca,'YTickLabels',yticklabels);
35 end
36 
37 %set(gcf,'PaperUnits','normalized');
38 %set(gcf,'PaperPosition',[0 0 1 1]);
39 %set(gca,'YTickLabels',{'\fontsize{14}{0}0','\fontsize{14}{0}$\frac{\pi}{24}$','\fontsize{14}{0}$\frac{\pi}{12}$','\fontsize{14}{0}$\frac{\pi}{8}$','\fontsize{14}{0}$\frac{\pi}{6}$'})
40 
41 end
end if cbar
Definition: latexFig.m:23
locations
Definition: findNN.m:6
figure
Definition: GPE_2d.m:5
function latexFig(gca, fontSize, cbar, xtick, ytick, xticklabels, yticklabels) % latexFig LaTeXify the plot axes % This sets the plotting axis on supplied figure to LaTeX formatted %
Definition: latexFig.m:1
and extended by(Dr?) Lee James O 'Riordan. % Ek
if nargin
Definition: latexFig.m:19
colorbar
Definition: quKineticSpec.m:55
pcolor(V_opt)
and assumes too high and very sparse Start at
Definition: velField.m:5
% axis([1e4 1e7 5e-18 1e-10])
Definition: plot.py:1
hold on