Indicate data outside the plotting area

I was doing some boxplots using StatsPlots and I had some outliers.
To show the boxes I used ylims! to better show their distribution, but the outliers were off the plot.

Is it possible to show a marker at the side of the plotting window indicating invisible points.

Maybe doing outliers = max.(outliers,plot_height), but color them differently.

Is something like this common in other plotting systems?

This stackexchange thread on this topic is very nice.

One of the suggestions looks particularly good:
Boxplot_with_outliers

NB:
Another idea could be to create a subplot to break the y-scale and display the outliers, possibly on a log scale.

1 Like