Skip to content
Snippets Groups Projects
Verified Commit cc256d1e authored by Owen Graham's avatar Owen Graham
Browse files

Remove "Station" suffix from names in plots

parent b9ca6f63
No related branches found
No related tags found
No related merge requests found
......@@ -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'
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment