Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luis Ricardez-Sandoval Research Group
RAS
Commits
900682bb
Commit
900682bb
authored
10 months ago
by
Gabriel Patron
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
c600d764
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plot_data.py
+47
-0
47 additions, 0 deletions
plot_data.py
with
47 additions
and
0 deletions
plot_data.py
0 → 100644
+
47
−
0
View file @
900682bb
# -*- coding: utf-8 -*-
"""
Created on Fri May 24 12:33:12 2024
@author: g2patron
"""
import
matplotlib.pyplot
as
plt
#plots below: note that the first 15 elements of each variable are skipped, these correspond to the initialization stage mentioned in the manuscript, which was not shown
fig
,
ax
=
plt
.
subplots
(
7
,
1
,
figsize
=
(
5
,
15
),
dpi
=
100
,
sharex
=
True
)
#y[43] is the raw date variable for oxygen concentration
ax
[
0
].
plot
(
time
,
y
[
43
][
15
:],
'
g
'
)
ax
[
0
].
set_title
(
'
Oxygen concentration in the fish tank
'
)
ax
[
0
].
set_ylabel
(
'
mg/L
'
)
#y[40] is the raw date variable for ammonia concentration
ax
[
1
].
plot
(
time
,
y
[
40
][
15
:],
'
y
'
)
ax
[
1
].
set_title
(
'
Ammonia concentration in the fish tank
'
)
ax
[
1
].
set_ylabel
(
'
mg/L
'
)
#y[53] is the raw date variable for nitrate concentration (units denoted in g/L instead of mg/L as in the paper)
ax
[
2
].
plot
(
time
,
y
[
53
][
15
:],
'
c
'
)
ax
[
2
].
set_title
(
'
Nitrate concentration in the fish tank
'
)
ax
[
2
].
set_ylabel
(
'
g/L
'
)
#uu3 is the raw date variable for makeup water flow
ax
[
3
].
plot
(
time
,
uu3
[
15
:],
'
b
'
)
ax
[
3
].
set_title
(
'
Make-up water flowrate
'
)
ax
[
3
].
set_ylabel
(
'
m3/day
'
)
#uu1 is the raw date variable for oxygen addition to fish tank (units denoted in gO2/(L-day) instead of kg/L as in the paper)
ax
[
4
].
plot
(
time
,
uu1
[
15
:],
'
m
'
)
ax
[
4
].
set_title
(
'
Oxygen addition to the fish tank
'
)
ax
[
4
].
set_ylabel
(
'
g/ L-day
'
)
#uu2 is the raw date variable for air flow to BR1 (units denoted in gO2/(L-day) instead of m3/L as in the paper)
ax
[
5
].
plot
(
time
,
uu2
[
15
:],
'
r
'
)
ax
[
5
].
set_title
(
'
Air flow to MBBR1
'
)
ax
[
5
].
set_ylabel
(
'
g/ L-day
'
)
#uu5 is the raw date variable for air flow to BR2 (units denoted in gO2/(L-day) instead of m3/L as in the paper)
ax
[
6
].
plot
(
time
,
uu5
[
15
:],
'
k
'
)
ax
[
6
].
set_title
(
'
Air flow to MBBR2
'
)
ax
[
6
].
set_ylabel
(
'
g/ L-day
'
)
\ No newline at end of file
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