# How to create layouts in Julia plotting packages?

**URL:** <https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586>\
**Category:** Visualization\
**Tags:** question\
**Created:** [October 29, 2021, 12:54am UTC](https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586 "2021-10-29T00:54:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [October 29, 2021, 4:07am UTC](https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586/2 "2021-10-29T04:07:36Z")

</div>

I would appreciate an explanation of what does each command mean for those not familiar with matlab.

Julia by itself doesn’t plot, so you first must pick one of the different plotting packages and then we can discuss how to use them. Some that come to mind are Makie.jl, Plots.jl, GR.jl, PyPlot.jl, Gadfly.jl and VegaLite.jl.

For example, in Makie, you could do something like:

```julia
using GLMakie
fig = Figure()
ax = Axis(fig[1,1]) #create an axis in positiion 1,1
lines!(ax,rand(10),rand(10)) # plot a line into that axis
ax2 = Axis(fig[1,2]) #create new axis, now in position 1,2
scatter!(ax2,rand(10),rand(10)) #do a scatter line in the second axis

```

And this will give you something like:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/4/e4c77e368160028997a090c80766fbb0dab789c0.png)

You can see a layouting tutorial for Makie here [Layout Tutorial](https://makie.juliaplots.org/stable/tutorials/layout-tutorial/)

For other packages, the syntax and layouting will be different.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586)._
