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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
f45b94d1
Commit
f45b94d1
authored
2 years ago
by
nugget
Browse files
Options
Downloads
Patches
Plain Diff
Prevent merge conflicts.
parent
25824cce
No related branches found
No related tags found
2 merge requests
!12
v.0.1 for alpha release
,
!8
First OOP implementation of tagplot.py.
Pipeline
#724224
passed with warnings
2 years ago
Stage: linting
Stage: testing
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Test0.tiff
+0
-0
0 additions, 0 deletions
Test0.tiff
Test1.tiff
+0
-0
0 additions, 0 deletions
Test1.tiff
tagplot.py
+11
-2
11 additions, 2 deletions
tagplot.py
with
11 additions
and
2 deletions
Test0.tiff
deleted
100644 → 0
+
0
−
0
View file @
25824cce
486 KiB
This diff is collapsed.
Click to expand it.
Test1.tiff
deleted
100644 → 0
+
0
−
0
View file @
25824cce
486 KiB
This diff is collapsed.
Click to expand it.
tagplot.py
+
11
−
2
View file @
f45b94d1
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tag your plot with an ID.
For publishing the tagged plot along your research data have a look at the
module publish.
Functions:
TagPlot(figure object, string) -> list
"""
import
warnings
from
plotoptions
import
PlotOptions
...
...
@@ -17,10 +26,10 @@ def tagplot(figs, engine, prefix='', id_method=1, location='east'):
----------
figs : list
Figures that should be tagged.
prefix : string
Will be added as prefix to the ID.
engine : string
Plot engine which should be used to tag the plot.
prefix : string
Will be added as prefix to the ID.
id_method : int, optional
id_method for creating the ID. Create an ID by Unix time is referenced
as 1, create a random ID with id_method=2. The default is 1.
...
...
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