Skip to content
Snippets Groups Projects
Commit 9ba326ba authored by Nicola VIGANO's avatar Nicola VIGANO
Browse files

Small improvements to the figure generating functions


Signed-off-by: default avatarNicola VIGANO <N.R.Vigano@cwi.nl>
parent 5cd01bf1
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ function [f, ax, img] = gtFigureCreateFromPicture(img, mask, varargin) ...@@ -2,6 +2,7 @@ function [f, ax, img] = gtFigureCreateFromPicture(img, mask, varargin)
conf = struct( ... conf = struct( ...
'filename', '', ... 'filename', '', ...
'figure_name', '', ...
'lims_u', [], ... 'lims_u', [], ...
'lims_v', [], ... 'lims_v', [], ...
'flip_ud', false, ... 'flip_ud', false, ...
...@@ -71,7 +72,7 @@ function [f, ax, img] = gtFigureCreateFromPicture(img, mask, varargin) ...@@ -71,7 +72,7 @@ function [f, ax, img] = gtFigureCreateFromPicture(img, mask, varargin)
img_size = [size(img, 2), size(img, 1)]; img_size = [size(img, 2), size(img, 1)];
f = figure(); f = figure('name', conf.figure_name);
ax = axes('parent', f); ax = axes('parent', f);
if (use_mask) if (use_mask)
......
...@@ -37,7 +37,7 @@ function gtFigureSetSize(f, ax, conf, img_size) ...@@ -37,7 +37,7 @@ function gtFigureSetSize(f, ax, conf, img_size)
else else
if (conf.axes_ticks) if (conf.axes_ticks)
size_padding = 1.5; size_padding = 1.5;
lower_offsets = [1, 1]; lower_offsets = [1.5, 1];
else else
size_padding = 1; size_padding = 1;
lower_offsets = [0.5, 0.5]; lower_offsets = [0.5, 0.5];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment