Skip to content

Commit 5ca6143

Browse files
andyl7anThe Meridian Authors
authored andcommitted
Update explicitly sized ticks for mark_boxplot after Vega-Lite upgrade.
PiperOrigin-RevId: 947187991
1 parent 4ccef3f commit 5ca6143

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

meridian/analysis/visualizer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,13 @@ def plot_rhat_boxplot(self) -> alt.Chart:
368368

369369
boxplot = (
370370
alt.Chart(rhat, width=c.VEGALITE_FACET_DEFAULT_WIDTH)
371-
.mark_boxplot(median={'color': c.BLUE_300}, outliers={'filled': True})
371+
.mark_boxplot(
372+
size=14,
373+
ticks={'size': 14},
374+
extent=1.5,
375+
median={'color': c.BLUE_300, 'stroke': c.BLUE_300},
376+
outliers={'filled': True},
377+
)
372378
.encode(
373379
x=alt.X(c.PARAMETER, axis=alt.Axis(labelAngle=-45)),
374380
y=alt.Y(c.RHAT, scale=alt.Scale(zero=False)),

meridian/model/eda/meridian_eda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def _plot_boxplots(
916916

917917
charts.append((
918918
alt.Chart(plot_data)
919-
.mark_boxplot(ticks=True, size=40, extent=1.5)
919+
.mark_boxplot(ticks={'size': 40}, size=40, extent=1.5)
920920
.encode(
921921
x=alt.X(
922922
f'{eda_constants.VARIABLE}:N',

0 commit comments

Comments
 (0)