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")