# Indicate data outside the plotting area

**URL:** https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646
**Category:** Visualization
**Tags:** plotting, statistics, statsplots
**Created:** [May 6, 2021, 12:54pm UTC](https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646 "2021-05-06T12:54:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [May 6, 2021, 12:54pm UTC](https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646/1 "2021-05-06T12:54:54Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [May 6, 2021, 2:18pm UTC](https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646/2 "2021-05-06T14:18:12Z")

</div>

This [stackexchange thread](https://stats.stackexchange.com/questions/114744/how-to-present-box-plot-with-an-extreme-outlier) on this topic is very nice.

One of the suggestions looks particularly good:  
 ![Boxplot_with_outliers](https://global.discourse-cdn.com/julialang/original/3X/d/2/d2abf740e79ecfef0d9814daf5ccd8f55b91ca06.png)

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