From 597e2aed9e1ee8ac4265f8ec7fd3970240c5e856 Mon Sep 17 00:00:00 2001 From: Karan Gathani Date: Tue, 8 Jul 2025 16:58:14 +0530 Subject: [PATCH] Remove stat_smooth to fix example tests --- examples/static_plots/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/static_plots/app.py b/examples/static_plots/app.py index 7f17fb460..1f782b72c 100644 --- a/examples/static_plots/app.py +++ b/examples/static_plots/app.py @@ -78,7 +78,6 @@ def plotnine(): facet_wrap, geom_point, ggplot, - stat_smooth, theme, theme_bw, ) @@ -86,10 +85,10 @@ def plotnine(): color_var = input.color() if str(mtcars[color_var].dtype) == "int64": color_var = f"factor({color_var})" + return ( ggplot(mtcars, aes(input.x(), input.y(), color=color_var)) + geom_point() - + stat_smooth(method="lm") + facet_wrap("~gear") + theme_bw(base_size=16) + theme(legend_position="top")