@@ -592,6 +592,7 @@ def mountain_plot(
592592 width = ratinabox .MOUNTAIN_PLOT_WIDTH_MM ,
593593 overlap = ratinabox .MOUNTAIN_PLOT_OVERLAP ,
594594 shift = ratinabox .MOUNTAIN_PLOT_SHIFT_MM ,
595+ shade_kwargs = dict (),
595596 ** kwargs ,
596597):
597598 """Make a mountain plot.
@@ -615,6 +616,7 @@ def mountain_plot(
615616 width: width of figure in mm
616617 overlap: how much each plots overlap by (> 1 = overlap, < 1 = no overlap) (overlap is not relevant if you also set "norm_by")
617618 shift: distance between lines in mm
619+ shade_kwargs: keyword arguments passed to the fill_between function for the mountain plot shading
618620
619621 Returns:
620622 fig, ax: _description_
@@ -644,7 +646,7 @@ def mountain_plot(
644646 for i in range (len (NbyX )):
645647 ax .plot (X_ , NbyX [i ] + i + 1 + global_shift , c = c , zorder = zorder , lw = linewidth )
646648 zorder -= 0.01
647- ax .fill_between (X_ , NbyX [i ] + i + 1 + global_shift , i + 1 + global_shift , color = fc , zorder = zorder , alpha = 0.8 , linewidth = 0 )
649+ ax .fill_between (X_ , NbyX [i ] + i + 1 + global_shift , i + 1 + global_shift , color = fc , zorder = zorder , alpha = 0.8 , linewidth = 0 , ** shade_kwargs )
648650 zorder -= 0.01
649651 ax .spines ["left" ].set_bounds (1 , len (NbyX ))
650652 ax .spines ["bottom" ].set_position (("outward" , 1 ))
0 commit comments