Skip to content

Commit 9d789be

Browse files
committed
nesh_timelines_season_summary_plot refinements
1 parent 50a8260 commit 9d789be

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

openskistats/nesh/timelines.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,26 +250,33 @@ def nesh_timelines_season_summary_plot() -> pn.ggplot:
250250
ymax="closing_date_offset_mean",
251251
),
252252
)
253-
+ pn.geom_linerange(mapping=pn.aes(color="season_duration_count"), size=1.3)
253+
+ pn.geom_linerange(
254+
mapping=pn.aes(color="season_duration_count"), size=1.3, na_rm=True
255+
)
254256
+ pn.geom_point(
255257
mapping=pn.aes(y="opening_date_offset_mean", color="opening_date_count"),
256258
stroke=0,
257259
size=2.5,
260+
na_rm=True,
258261
)
259262
+ pn.geom_point(
260263
mapping=pn.aes(y="closing_date_offset_mean", color="closing_date_count"),
261264
stroke=0,
262265
size=2.5,
266+
na_rm=True,
263267
)
264268
+ pn.scale_x_continuous(breaks=np.arange(1930, 2050, 10), name="")
265269
+ pn.scale_y_continuous(
266270
breaks=date_offset_breaks,
267271
labels=date_offset_labels,
268-
name="Mean Opening to Closing Date",
272+
name="",
273+
)
274+
+ pn.scale_color_cmap(cmap_name="Purples", name="Ski Areas", trans="sqrt")
275+
+ pn.ggtitle(
276+
"Mean opening & closing dates by season for ski areas in New England Ski History"
269277
)
270-
+ pn.scale_color_cmap(cmap_name="Blues", name="Ski Areas", trans="sqrt")
271278
+ pn.theme_bw()
272-
+ pn.theme(figure_size=(10, 5))
279+
+ pn.theme(figure_size=(10, 4))
273280
)
274281

275282

0 commit comments

Comments
 (0)