Skip to content

Commit

Permalink
Update plotUI.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ranzhengcode authored Jul 30, 2022
1 parent fa4963c commit 03d456d
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions GUI/plotUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,13 @@ function plotUI()
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
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 @@ -434,9 +438,13 @@ function plotUI()
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
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 @@ -458,9 +466,13 @@ function plotUI()
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
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 @@ -1286,4 +1298,4 @@ function plotUI()
if ishandle(hmsg)
close(hmsg);
end
end
end

0 comments on commit 03d456d

Please sign in to comment.