Skip to content

Commit

Permalink
set visualized images to fill the width
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkey300 committed Sep 27, 2024
1 parent 63127c1 commit 886625c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ body {
flex: 2;
}

.visualization img {
width: 100%;
height: auto;
display: block;
}

.bar {
width: 100%;
/* min-height: calc(1em + 5px); */
Expand Down
2 changes: 1 addition & 1 deletion visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def name_frequency_plot(df, starts=None, show=None, season=None, transform=None,
if transform:
xy[:, 1:] = transform(xy[:, 1:])
row_count = xy.shape[1] - 1
plt.rcParams["figure.figsize"] = (7.5, row_count * stretch_factor)
plt.rcParams["figure.figsize"] = (8, row_count * stretch_factor)
height_ratios = [stretch_factor] * row_count

# thanks stackoverflow:
Expand Down

0 comments on commit 886625c

Please sign in to comment.