Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
42307c7a
Commit
42307c7a
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Add example file and further doc
parent
e7e5e0af
No related branches found
No related tags found
2 merge requests
!62
Introduce changes for V1.0 RC 1
,
!56
Resolve "investigate QR-Code generation as option"
Pipeline
#653151
passed
3 years ago
Stage: Run
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
+PlotID/TagPlot.m
+3
-2
3 additions, 2 deletions
+PlotID/TagPlot.m
+PlotID/plotQR.m
+1
-1
1 addition, 1 deletion
+PlotID/plotQR.m
Examples/PlotID_QRcode.m
+14
-0
14 additions, 0 deletions
Examples/PlotID_QRcode.m
with
18 additions
and
3 deletions
+PlotID/TagPlot.m
+
3
−
2
View file @
42307c7a
...
...
@@ -24,8 +24,8 @@ arguments
options
.
Position
(
1
,
2
)
{
mustBeVector
}
=
[
1
,
0.4
]
% default for east
options
.
Rotation
(
1
,
1
)
{
mustBeReal
}
=
NaN
options
.
ConfigFileName
(
1
,:)
{
mustBeText
}
=
'config.json'
options
.
QRcode
(
1
,
1
)
{
mustBeNumericOrLogical
}
=
false
%experimental
ly
options
.
QRsize
(
1
,
1
)
{
mustBeNonnegative
}
=
0.15
options
.
QRcode
(
1
,
1
)
{
mustBeNumericOrLogical
}
=
false
%experimental
options
.
QRsize
(
1
,
1
)
{
mustBeNonnegative
}
=
0.15
% size of the QRCode
end
if
isempty
(
options
.
ProjectID
)
...
...
@@ -87,6 +87,7 @@ for n = 1:numel(figs)
set
(
figs
(
n
),
'Tag'
,
IDs
{
n
});
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
]);
...
...
This diff is collapsed.
Click to expand it.
+PlotID/plotQR.m
+
1
−
1
View file @
42307c7a
function
img
=
plotQR
(
data
,
size
)
%QR reads a QR code from qrserver
%QR reads a QR code from qrserver
(depends on API)
% created by J.Stifter
arguments
data
{
mustBeTextScalar
}
=
'example'
;
...
...
This diff is collapsed.
Click to expand it.
Examples/PlotID_QRcode.m
0 → 100644
+
14
−
0
View file @
42307c7a
clear
;
close
all
;
clc
;
%% Tag the plot with a QR code (experimental)
% here the work flow for tagging the plot with a QR code is shown
% the content of the qr code is the ID
% plots and data
fig
(
1
)
=
figure
;
[
x1
,
y1
,
datapath1
]
=
createExampleData
(
'matlab'
);
plot
(
x1
,
y1
,
'-b'
);
box
off
;
hold
on
;
set
(
gca
,
'TickDir'
,
'out'
,
'YLim'
,
[
0
,
4
]);
%% 1. Tag plot with QRcode
% QR size is the relative size of the QR code (0.15 default)
[
fig
,
IDs
]
=
PlotID
.
TagPlot
(
fig
,
'Location'
,
'southeast'
,
'QRcode'
,
true
,
'QRsize'
,
0.18
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment