Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VILLASdataprocessing
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
ACS
Public
VILLASframework
VILLASdataprocessing
Commits
d47dd169
Commit
d47dd169
authored
7 years ago
by
Markus Mirz
Browse files
Options
Downloads
Patches
Plain Diff
plot_timeseries takes lists and scalars now; renamed old dpsim scripts
parent
3c8ada4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dataprocessing/plotdpsim_deprecated.py
+0
-0
0 additions, 0 deletions
dataprocessing/plotdpsim_deprecated.py
dataprocessing/plottools.py
+12
-12
12 additions, 12 deletions
dataprocessing/plottools.py
with
12 additions
and
12 deletions
dataprocessing/plot
toolsDPsim
.py
→
dataprocessing/plot
dpsim_deprecated
.py
+
0
−
0
View file @
d47dd169
File moved
This diff is collapsed.
Click to expand it.
dataprocessing/plottools.py
+
12
−
12
View file @
d47dd169
...
...
@@ -3,20 +3,20 @@ import numpy as np
from
.timeseries
import
*
def
plot_
single_t
s
(
figure_id
,
time
_
series
,
plt_linestyle
=
'
-
'
):
def
plot_
timeserie
s
(
figure_id
,
timeseries
,
plt_linestyle
=
'
-
'
):
plt
.
figure
(
figure_id
)
plt
.
plot
(
time_series
.
time
,
time_series
.
values
,
linestyle
=
plt_linestyle
,
label
=
time_series
.
label
)
plt
.
gca
().
autoscale
(
axis
=
'
x
'
,
tight
=
True
)
plt
.
legend
()
def
plot_in_subplots
(
figure_id
,
time_series
,
plt_linestyle
=
'
-
'
):
plt
.
figure
(
figure_id
)
for
ts
in
time_series
:
plt
.
subplot
(
len
(
time_series
),
1
,
time_series
.
index
(
ts
)
+
1
)
plt
.
plot
(
ts
.
time
,
ts
.
values
,
linestyle
=
plt_linestyle
,
label
=
ts
.
label
)
if
not
isinstance
(
timeseries
,
list
):
plt
.
plot
(
timeseries
.
time
,
timeseries
.
values
,
linestyle
=
plt_linestyle
,
label
=
timeseries
.
label
)
plt
.
gca
().
autoscale
(
axis
=
'
x
'
,
tight
=
True
)
plt
.
legend
()
else
:
for
ts
in
timeseries
:
plt
.
subplot
(
len
(
timeseries
),
1
,
timeseries
.
index
(
ts
)
+
1
)
plt
.
plot
(
ts
.
time
,
ts
.
values
,
linestyle
=
plt_linestyle
,
label
=
ts
.
label
)
plt
.
gca
().
autoscale
(
axis
=
'
x
'
,
tight
=
True
)
plt
.
legend
()
def
set_time_series_labels
(
time_series
,
time_series_labels
):
for
ts
in
time_series
:
ts
.
label
=
time_series_labels
[
time_series
.
index
(
ts
)]
\ No newline at end of file
def
set_time_series_labels
(
timeseries_list
,
time_series_labels
):
for
ts
in
timeseries_list
:
ts
.
label
=
time_series_labels
[
timeseries_list
.
index
(
ts
)]
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