Skip to content

Commit

Permalink
iss #7 Added option to xp_handles_newfig.m for controlling figure dim…
Browse files Browse the repository at this point in the history
…ensions.
  • Loading branch information
davestanley committed Apr 3, 2017
1 parent 71cbb90 commit 035b8ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library_plots/xp_handles_newfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
op = struct_addDef(op,'supersize_me',false);
op = struct_addDef(op,'supersize_me_factor',2);
op = struct_addDef(op,'max_num_newfigs',5);
op = struct_addDef(op,'figwidth',[]);
op = struct_addDef(op,'figheight',[]);


% Postpend date/time to save path
Expand Down Expand Up @@ -58,7 +60,7 @@
break
end

pos = [0,0,1,1];
pos = [0,0,op.figwidth,op.figheight];
if op.supersize_me
pos(3:4) = pos(3:4) * op.supersize_me_factor;
end
Expand Down

0 comments on commit 035b8ee

Please sign in to comment.