# Change the color and shape of boxplot objects (mean, flier) by PyPlot

**URL:** https://discourse.julialang.org/t/change-the-color-and-shape-of-boxplot-objects-mean-flier-by-pyplot/14287
**Category:** General Usage
**Tags:** pyplot
**Created:** [August 30, 2018, 3:37am UTC](https://discourse.julialang.org/t/change-the-color-and-shape-of-boxplot-objects-mean-flier-by-pyplot/14287 "2018-08-30T03:37:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HSFengWang](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@HSFengWang](https://discourse.julialang.org/u/HSFengWang)
#### Post date: [August 30, 2018, 3:37am UTC](https://discourse.julialang.org/t/change-the-color-and-shape-of-boxplot-objects-mean-flier-by-pyplot/14287/1 "2018-08-30T03:37:08Z")

</div>

How to change the color and shape of boxplot objects by PyPlot.  
There some parameters like whiskerprops and meanprops, but I did not find any examples.  
Thank you!

```julia
data = [[1,2,3],[2,5,6],[2,4,2,3,2]]
fig = figure("pyplot_boxplot",figsize=(5,5))
boxplot(data,positions=[1,1.5,3],showmeans=true);

```

How to use “Other Parameters” of boxplot()

```julia
Other Parameters
----------------
showcaps : bool, optional (True)
    Show the caps on the ends of whiskers.
showbox : bool, optional (True)
    Show the central box.
showfliers : bool, optional (True)
    Show the outliers beyond the caps.
showmeans : bool, optional (False)
    Show the arithmetic means.
capprops : dict, optional (None)
    Specifies the style of the caps.
boxprops : dict, optional (None)
    Specifies the style of the box.
whiskerprops : dict, optional (None)
    Specifies the style of the whiskers.
flierprops : dict, optional (None)
    Specifies the style of the fliers.
medianprops : dict, optional (None)
    Specifies the style of the median.
meanprops : dict, optional (None)
    Specifies the style of the mean.

```

---

<div class="post-metadata">

### Author: ![HSFengWang](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@HSFengWang](https://discourse.julialang.org/u/HSFengWang)
#### Post date: [August 30, 2018, 6:14am UTC](https://discourse.julialang.org/t/change-the-color-and-shape-of-boxplot-objects-mean-flier-by-pyplot/14287/2 "2018-08-30T06:14:25Z")

</div>

This may be a proper choice to change the style of boxplot object

```julia
meanpointprops = Dict("marker"=>:*,"markersize"=>10,"markeredgecolor"=>:black, "markerfacecolor"=>:red)

boxplot(data,positions=[1,1.5,3],meanprops=meanpointprops,showmeans=true);

```
