Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
313d66c5
Commit
313d66c5
authored
Dec 22, 2022
by
Mayr, Hannes
Browse files
Options
Downloads
Patches
Plain Diff
Include custom IDs in unittests.
parent
edb701b4
Branches
Branches containing commit
Tags
Tags containing commit
5 merge requests
!65
Release v0.3.0
,
!64
New year developments
,
!63
Improve handling of long IDs
,
!62
Export imported modules
,
!61
Custom IDs
Pipeline
#878128
passed
Dec 22, 2022
Stage: linting
Stage: testing
Stage: security
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
plotid/tagplot.py
+3
-0
3 additions, 0 deletions
plotid/tagplot.py
tests/test_tagplot_image.py
+2
-1
2 additions, 1 deletion
tests/test_tagplot_image.py
tests/test_tagplot_matplotlib.py
+1
-0
1 addition, 0 deletions
tests/test_tagplot_matplotlib.py
with
6 additions
and
1 deletion
plotid/tagplot.py
+
3
−
0
View file @
313d66c5
...
...
@@ -39,6 +39,9 @@ def tagplot(
Other Parameters
----------------
figure_ids: list of str, optional
IDs that will be printed on the plot. If empty, IDs will be generated for each
plot. Default: [].
location : str, optional
Location for ID to be displayed on the plot. Default is
"
east
"
.
rotation: float or int, optional
...
...
This diff is collapsed.
Click to expand it.
tests/test_tagplot_image.py
+
2
−
1
View file @
313d66c5
...
...
@@ -43,11 +43,12 @@ class TestTagplotImage(unittest.TestCase):
IMGS_AS_LIST
,
ROTATION
,
POSITION
,
figure_ids
=
[
"
test123456
"
,
"
654321tset
"
],
prefix
=
PROJECT_ID
,
id_method
=
METHOD
,
qrcode
=
True
,
fontsize
=
10
,
font
=
"
fonts/xolonium-fonts-4.1/ttf/Xolonium-Bold.ttf
"
,
font
=
"
tests/
fonts/xolonium-fonts-4.1/ttf/Xolonium-Bold.ttf
"
,
fontcolor
=
(
0
,
1
,
0
),
)
options
.
validate_input
()
...
...
This diff is collapsed.
Click to expand it.
tests/test_tagplot_matplotlib.py
+
1
−
0
View file @
313d66c5
...
...
@@ -33,6 +33,7 @@ class TestTagplotMatplotlib(unittest.TestCase):
FIGS_AS_LIST
,
ROTATION
,
POSITION
,
figure_ids
=
[
"
test123456
"
,
"
654321tset
"
],
prefix
=
PROJECT_ID
,
id_method
=
METHOD
,
qrcode
=
True
,
...
...
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