Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visualizer-embed
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
Owen Graham
visualizer-embed
Commits
cc256d1e
Verified
Commit
cc256d1e
authored
2 years ago
by
Owen Graham
Browse files
Options
Downloads
Patches
Plain Diff
Remove "Station" suffix from names in plots
parent
b9ca6f63
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
visualizer/plotting.py
+5
-5
5 additions, 5 deletions
visualizer/plotting.py
with
5 additions
and
5 deletions
visualizer/plotting.py
+
5
−
5
View file @
cc256d1e
...
...
@@ -95,7 +95,7 @@ class TimeSeries(Plotter):
)
name
=
station
[
'
name
'
]
plt
.
suptitle
(
f
'
{
meas
.
title
.
capitalize
()
}
measurements,
'
f
'
{
name
}
Station
,
{
data
[
0
,
0
].
year
}
'
)
f
'
{
name
}
,
{
data
[
0
,
0
].
year
}
'
)
return
savefig_response
(
fig
,
filename
=
(
f
'
{
cls
.
name
}
.
{
meas
.
slug
}
.
{
station_id
}
.
{
year
}
.png
'
))
...
...
@@ -176,16 +176,16 @@ class Overlay(Plotter):
axes
.
grid
(
True
)
axes
.
set_title
(
(
f
'
Max
{
meas
.
title
}
:
{
max_dset
.
name
}
Station
,
'
(
f
'
Max
{
meas
.
title
}
:
{
max_dset
.
name
}
,
'
f
'
{
max_dset
.
max
[
meas
.
field
]
}
{
meas
.
units
}
'
f
'
on
{
max_dset
.
max
[
0
]
:
%
F
at
%
R
}
/
'
f
'
Min
{
meas
.
title
}
:
{
min_dset
.
name
}
Station
,
'
f
'
Min
{
meas
.
title
}
:
{
min_dset
.
name
}
,
'
f
'
{
min_dset
.
min
[
meas
.
field
]
}
{
meas
.
units
}
'
f
'
on
{
min_dset
.
min
[
0
]
:
%
F
at
%
R
}
'
),
fontsize
=
'
small
'
)
axes
.
legend
()
axes
.
tick_params
(
labelbottom
=
False
)
title_dsets
=
'
/
'
.
join
(
f
'
{
dset
.
name
}
Station
,
{
dset
.
data
[
0
,
0
].
year
}
'
title_dsets
=
'
/
'
.
join
(
f
'
{
dset
.
name
}
,
{
dset
.
data
[
0
,
0
].
year
}
'
for
dset
in
datasets
)
plt
.
suptitle
(
f
'
{
meas
.
title
.
capitalize
()
}
measurements,
'
f
'
{
title_dsets
}
'
)
...
...
@@ -262,7 +262,7 @@ class Boxplot(Plotter):
)
name
=
station
[
'
name
'
]
plt
.
suptitle
(
f
'
{
meas
.
title
.
capitalize
()
}
measurements,
'
f
'
{
name
}
Station
,
{
start_year
}
-
{
end_year
}
.
'
)
f
'
{
name
}
,
{
start_year
}
-
{
end_year
}
.
'
)
return
savefig_response
(
fig
,
filename
=
(
f
'
{
cls
.
name
}
.
{
meas
.
slug
}
.
{
station_id
}
.
{
year1
}
.
{
year2
}
.png
'
))
...
...
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