Skip to content

Commit 03d456d

Browse files
authored
Update plotUI.m
1 parent fa4963c commit 03d456d

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

GUI/plotUI.m

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,13 @@ function plotUI()
369369
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
370370
axpos = get(gca,'Position');
371371
cpos = get(cbar,'Position');
372-
cpos(1) = axpos(1)+axpos(3)+0.05;
373-
cpos(2) = axpos(2)+0.1;
374-
cpos(3) = 0.618*cpos(3);
372+
if isOctave
373+
cpos(1) = axpos(1)+axpos(3)+0.05;
374+
cpos(2) = axpos(2)+0.1;
375+
cpos(3) = 0.618*cpos(3);
376+
else
377+
cpos(1) = axpos(1)+axpos(3)+0.065;
378+
end
375379
set(cbar,'Position',cpos);
376380
proname = [inputData(ind(dk)).mma,char(32),inputData(ind(dk)).name];
377381

@@ -434,9 +438,13 @@ function plotUI()
434438
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
435439
axpos = get(gca,'Position');
436440
cpos = get(cbar,'Position');
437-
cpos(1) = axpos(1)+axpos(3)+0.05;
438-
cpos(2) = axpos(2)+0.1;
439-
cpos(3) = 0.618*cpos(3);
441+
if isOctave
442+
cpos(1) = axpos(1)+axpos(3)+0.05;
443+
cpos(2) = axpos(2)+0.1;
444+
cpos(3) = 0.618*cpos(3);
445+
else
446+
cpos(1) = axpos(1)+axpos(3)+0.065;
447+
end
440448
set(cbar,'Position',cpos);
441449
proname = [inputData(ind(dk)).mma,char(32),inputData(ind(dk)).name];
442450

@@ -458,9 +466,13 @@ function plotUI()
458466
set(cbar,'FontName',fontname,'FontWeight',fontweight,'FontAngle',fontangle,'FontSize',fontsize);
459467
axpos = get(gca,'Position');
460468
cpos = get(cbar,'Position');
461-
cpos(1) = axpos(1)+axpos(3)+0.05;
462-
cpos(2) = axpos(2)+0.1;
463-
cpos(3) = 0.618*cpos(3);
469+
if isOctave
470+
cpos(1) = axpos(1)+axpos(3)+0.05;
471+
cpos(2) = axpos(2)+0.1;
472+
cpos(3) = 0.618*cpos(3);
473+
else
474+
cpos(1) = axpos(1)+axpos(3)+0.065;
475+
end
464476
set(cbar,'Position',cpos);
465477

466478
% print pic
@@ -1286,4 +1298,4 @@ function plotUI()
12861298
if ishandle(hmsg)
12871299
close(hmsg);
12881300
end
1289-
end
1301+
end

0 commit comments

Comments
 (0)