# Plots.jl atrribute for full border

**URL:** https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934
**Category:** Visualization
**Tags:** plotting
**Created:** [October 5, 2018, 5:02pm UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934 "2018-10-05T17:02:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ecx2093](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ecx2093/32/5623_2.png) [@ecx2093](https://discourse.julialang.org/u/ecx2093)
#### Post date: [October 5, 2018, 5:02pm UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/1 "2018-10-05T17:02:13Z")

</div>

Hello

Does anybody know the plot attribute for creating a border around the entire plot (here I need borders on the top and right without ticks, just the lines) ![trajectory](https://global.discourse-cdn.com/julialang/original/3X/b/a/ba0232759e7495b3c4c9b3eab15d22c62e4fc17e.png)

---

<div class="post-metadata">

### Author: ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)
#### Post date: [October 5, 2018, 6:22pm UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/2 "2018-10-05T18:22:24Z")

</div>

Look at `plotattr(framestyle)`

---

<div class="post-metadata">

### Author: ![ecx2093](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ecx2093/32/5623_2.png) [@ecx2093](https://discourse.julialang.org/u/ecx2093)
#### Post date: [October 5, 2018, 6:56pm UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/3 "2018-10-05T18:56:16Z")

</div>

Thanks!

For future reference thats: plot(xp, legend = :none, framestyle = :box)  
 ![trajectory](https://global.discourse-cdn.com/julialang/original/3X/c/8/c8b5051c34b38b6198f04698232aff830ef569f8.png)

---

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [October 9, 2018, 10:21am UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/4 "2018-10-09T10:21:12Z")

</div>

I actually dislike the borders on the left and right within the coordinates. So, xlims=(0, 1000) should remove them.

---

<div class="post-metadata">

### Author: ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)
#### Post date: [April 10, 2019, 1:23am UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/5 "2019-04-10T01:23:56Z")

</div>

Seeing this looking for something else, but fyi the “widen=false” attribute should also get rid of the extra space at the edges of the plot area.

---

<div class="post-metadata">

### Author: ![iblis17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iblis17/32/649_2.png) [@iblis17](https://discourse.julialang.org/u/iblis17)
#### Post date: [June 3, 2019, 2:03am UTC](https://discourse.julialang.org/t/plots-jl-atrribute-for-full-border/15934/6 "2019-06-03T02:03:30Z")

</div>

`widen=false` saves my day. Thank you @BioTurboNick!
