# Plot histogram with edge color in Plots.jl

**URL:** https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119
**Category:** General Usage
**Tags:** question, plots, histogram
**Created:** [June 21, 2022, 12:22pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119 "2022-06-21T12:22:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)
#### Post date: [June 21, 2022, 12:22pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119/1 "2022-06-21T12:22:36Z")

</div>

Can one plot a histogram in `Plots.jl` where only the outer line is plotted, like in this picture?  
 ![COOZE](https://global.discourse-cdn.com/julialang/original/3X/1/a/1a6ff69a94fc593b9aec0d8e9c9d61a12dfdceac.png)

In `PyPlot` this is set be `edgecolor` but I did not find a way to do this in `Plots` with `gr`.

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [June 21, 2022, 1:24pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119/2 "2022-06-21T13:24:57Z")

</div>

This should work

```julia
julia> using Plots
julia> stephist(randn(100), fill=true, fillalpha=0.5)

```

---

<div class="post-metadata">

### Author: ![Alehud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alehud/32/125128_2.png) [@Alehud](https://discourse.julialang.org/u/Alehud)
#### Post date: [October 23, 2023, 9:43pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119/3 "2023-10-23T21:43:29Z")

</div>

How do I leave the outer contour as a solid line?

---

<div class="post-metadata">

### Author: ![Alehud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alehud/32/125128_2.png) [@Alehud](https://discourse.julialang.org/u/Alehud)
#### Post date: [October 23, 2023, 9:53pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119/4 "2023-10-23T21:53:45Z")

</div>

Figured it out.

```julia
julia> using Plots
julia> stephist(randn(100), fill=true, fillalpha=0.5, color=:black, fillcolor=:red)

```
