Skip to content

Commit

Permalink
iss #7 Fixed displaying title issue in xp_handles_newfig.m
Browse files Browse the repository at this point in the history
  • Loading branch information
davestanley committed Apr 7, 2017
1 parent eadb3c7 commit 391421d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library_plots/xp_handles_newfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
hxp.hcurr(i) = figure('Units','normalized','Position',pos,'visible',op.visible); hxp.hsub{i} = xp.data{i}();

% Add a title to the current figure
if isa(hxp.hsub(i),'subplot_grid') && ~strcmp(xp.axis(1).name(1:3),'Dim')
if isa(hxp.hsub{i}.hcurr,'subplot_grid') && ~strcmp(xp.axis(1).name(1:3),'Dim')
mytitle = [figformat_str(xp.axis(1).name) ': ' figformat_str(xp.axis(1).getvaluestring(i))];
hxp.hsub(i).figtitle(mytitle);
hxp.hsub{i}.hcurr.figtitle(mytitle);
end

if op.save_figures
Expand Down

0 comments on commit 391421d

Please sign in to comment.