From 762fd00c662d4aa6bd3a23e2d75da3dc1ae06bdb Mon Sep 17 00:00:00 2001 From: "M. Hock" <martin.hock@fst.tu-darmstadt.de> Date: Tue, 15 Mar 2022 11:09:36 +0100 Subject: [PATCH] Fixxed QR Code size option not having any effect as well as scaling for the axes object --- +PlotID/TagPlot.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/+PlotID/TagPlot.m b/+PlotID/TagPlot.m index d36e691..f8e54db 100644 --- a/+PlotID/TagPlot.m +++ b/+PlotID/TagPlot.m @@ -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 -- GitLab