Skip to content

Commit

Permalink
Update velasPlot.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ranzhengcode authored Jul 30, 2022
1 parent 79ebdf0 commit fa4963c
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions velasPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
mpctrl = true; % true or false
flag = 'Mollweide'; % flag = {'Gall-Peters','Robinson','Hammer-Aitoff','Mollweide'};
nmesh = 7;
cmap = 'jet';
cmapname = 'jet';
cmap = colormapdata(cmapname);
lineStyle = '--';

%% Basic setting
Expand All @@ -51,7 +52,15 @@
% Font setting
fontname = 'Times New Roman';
fontweight = 'bold';
fontsize = 20;
fontangle = 'normal';
fontcolor = 'k';
fontsize = 20;

font.fontname = fontname;
font.fontweight = fontweight;
font.fontangle = fontangle;
font.fontcolor = fontcolor;
font.fontsize = fontsize;

hmsg = msgbox('Plotting start!', 'VELAS reminder','help');
pause(0.8);
Expand Down Expand Up @@ -342,9 +351,13 @@
set(cbar,'FontName',fontname,'FontSize',fontsize,'FontWeight',fontweight);
axpos = get(gca,'Position');
cpos = get(cbar,'Position');
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
if isOctave
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
else
cpos(1) = axpos(1)+axpos(3)+0.065;
end
set(cbar,'Position',cpos);
proname = [inputData(ind(dk)).mma,char(32),inputData(ind(dk)).name];

Expand Down Expand Up @@ -405,9 +418,13 @@
set(cbar,'FontName',fontname,'FontSize',fontsize,'FontWeight',fontweight);
axpos = get(gca,'Position');
cpos = get(cbar,'Position');
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
if isOctave
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
else
cpos(1) = axpos(1)+axpos(3)+0.065;
end
set(cbar,'Position',cpos);
proname = [inputData(ind(dk)).mma,char(32),inputData(ind(dk)).name];

Expand All @@ -429,9 +446,13 @@
set(cbar,'FontName',fontname,'FontSize',fontsize,'FontWeight',fontweight);
axpos = get(gca,'Position');
cpos = get(cbar,'Position');
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
if isOctave
cpos(1) = axpos(1)+axpos(3)+0.05;
cpos(2) = axpos(2)+0.1;
cpos(3) = 0.618*cpos(3);
else
cpos(1) = axpos(1)+axpos(3)+0.065;
end
set(cbar,'Position',cpos);

% print pic
Expand Down Expand Up @@ -1236,4 +1257,4 @@
if ishandle(hmsg)
close(hmsg);
end
end
end

0 comments on commit fa4963c

Please sign in to comment.