Skip to content
Snippets Groups Projects
Commit 762fd00c authored by M. Hock's avatar M. Hock
Browse files

Fixxed QR Code size option not having any effect as well as scaling for the axes object

parent fb67ed5f
No related branches found
No related tags found
No related merge requests found
Pipeline #667045 failed
......@@ -26,7 +26,7 @@ arguments
options.ConfigFileName (1,:) {mustBeText} = 'config.json'
options.PinToLegend (1,1) {mustBeNumericOrLogical} = false % Pins ID on Legend
options.QRcode (1,1) {mustBeNumericOrLogical} = false %experimental
options.QRsize (1,1) {mustBeNonnegative} = 0.15 % size of the QRCode
options.QRsize (1,1) {mustBeInteger} = 150 % size of the QRCode
end
if isempty(options.ProjectID)
......@@ -108,11 +108,11 @@ for n = 1:numel(figs)
if options.QRcode
% this should be seen and use as a proof of concept
qrCode = PlotID.plotQR(IDs{n});
size = options.QRsize;
axes('Position',[position(1)-.05 position(2)+0.1 size size]);
qrCode = PlotID.plotQR(IDs{n},[options.QRsize,options.QRsize]);
size = options.QRsize/1000;
qraxes = axes('Position',[position(1)-.1 position(2)+0.1 size size]);
imshow(qrCode);
t.Visible = 'off';
t.Visible = 'off'; % Set text ID to invisible
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment