# Blank subplot in Plots.jl

**URL:** <https://discourse.julialang.org/t/blank-subplot-in-plots-jl/16453>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [October 17, 2018, 5:39pm UTC](https://discourse.julialang.org/t/blank-subplot-in-plots-jl/16453 "2018-10-17T17:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [October 17, 2018, 5:39pm UTC](https://discourse.julialang.org/t/blank-subplot-in-plots-jl/16453/1 "2018-10-17T17:39:37Z")

</div>

Is there a way to have a totally blank space in a subplot “slot” using `Plots.jl`? i.e. instead of `plot(rand(10), layout=2)`, which gives a set of axes, labels, etc. for the second subplot, nothing would be shown in that space at all.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [October 17, 2018, 6:10pm UTC](https://discourse.julialang.org/t/blank-subplot-in-plots-jl/16453/2 "2018-10-17T18:10:18Z")

</div>

This is perhaps not so elegant, but it works

```julia
p11 = plot(x,y,title="a. first",legend=false,color=:red) #create subplot [1,1]
p12 = plot(x,log.(y),title="b. second",legend=false,color=:blue) #create subplot [1,2]
p21 = plot(x,log.(y).^2,title="c. third",legend=false,color=:black) #create subplot [2,1]
p22 = plot(legend=false,grid=false,foreground_color_subplot=:white) #create subplot [2,2] to be blank

p1 = plot(p11,p12,p21,p22,layout=(2,2),size=(600,400)) #set up subplots    
xlabel!("x")

```

See https://github.com/PaulSoderlind/JuliaTutorial/blob/master/Tutorial\_04\_Plots.ipynb

---

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [October 17, 2018, 6:15pm UTC](https://discourse.julialang.org/t/blank-subplot-in-plots-jl/16453/3 "2018-10-17T18:15:14Z")

</div>

That works for me, thanks.
