File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -250,26 +250,33 @@ def nesh_timelines_season_summary_plot() -> pn.ggplot:
250
250
ymax = "closing_date_offset_mean" ,
251
251
),
252
252
)
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
+ )
254
256
+ pn .geom_point (
255
257
mapping = pn .aes (y = "opening_date_offset_mean" , color = "opening_date_count" ),
256
258
stroke = 0 ,
257
259
size = 2.5 ,
260
+ na_rm = True ,
258
261
)
259
262
+ pn .geom_point (
260
263
mapping = pn .aes (y = "closing_date_offset_mean" , color = "closing_date_count" ),
261
264
stroke = 0 ,
262
265
size = 2.5 ,
266
+ na_rm = True ,
263
267
)
264
268
+ pn .scale_x_continuous (breaks = np .arange (1930 , 2050 , 10 ), name = "" )
265
269
+ pn .scale_y_continuous (
266
270
breaks = date_offset_breaks ,
267
271
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"
269
277
)
270
- + pn .scale_color_cmap (cmap_name = "Blues" , name = "Ski Areas" , trans = "sqrt" )
271
278
+ pn .theme_bw ()
272
- + pn .theme (figure_size = (10 , 5 ))
279
+ + pn .theme (figure_size = (10 , 4 ))
273
280
)
274
281
275
282
You can’t perform that action at this time.
0 commit comments