Skip to content

Commit 7adbce0

Browse files
committed
Added docstrings and removed vertical gridlines in plot script
1 parent e2b609e commit 7adbce0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/scatter_plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ def create_scatter_plot(year_start=1900, year_end=2022, countries=[]):
3939
scale=alt.Scale(domain=(5.5, 10)),
4040
axis=alt.Axis(grid=False)),
4141
y=alt.Y('total_deaths',
42-
title='Total Deaths (log-transformed), per Event',
42+
title='Total Deaths (log-scale), per Event',
4343
scale=alt.Scale(type='log')),
4444
color='country',
4545
tooltip=['year', 'mercalli_intensity', 'country', 'total_deaths']
4646
).interactive(
47-
)
47+
).properties(width=180, height=150)
4848
return chart.to_html()
4949

5050

51-
def get_data(year_start=1900, year_end=2022, countries=[]):
51+
def get_data(year_start=1802, year_end=2022, countries=[]):
5252
"""
5353
The function to return the processed dataframe of original data including
5454
a new column computing the Mercalli Intensity scale per tsunami event,

0 commit comments

Comments
 (0)