# What is a similar function of \`Grid\` in Mathematica for plotting?

**URL:** <https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 18, 2021, 1:49pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860 "2021-07-18T13:49:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![powerzf](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@powerzf](https://discourse.julialang.org/u/powerzf)\
**Post date:** [July 18, 2021, 1:49pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860/1 "2021-07-18T13:49:54Z")

</div>

What is the Julia function corresponding to the Grid function in Mathematica

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [July 18, 2021, 2:02pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860/2 "2021-07-18T14:02:57Z")

</div>

not everything in Julia is “expression” (as in Mathematica) but maybe you’re just looking for concatenation?

```julia
julia> hcat([1,2,3],[4,5,6])
3×2 Matrix{Int64}:
 1 4
 2 5
 3 6
julia> hcat([1,2,3],'x':'z')
3×2 Matrix{Any}:
 1 'x'
 2 'y'
 3 'z'

```

notice Julia is column-major, so when you type `[1,2,3]` it means a column.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 18, 2021, 2:04pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860/3 "2021-07-18T14:04:55Z")

</div>

I would’t even use `hcat` in the answer, just use the `;` and whitespace to arrange things into an array:

```julia
julia> [1 2 3
        4 5 6]
2×3 Matrix{Int64}:
 1 2 3
 4 5 6

julia> [1 2 3; 4 5 6]
2×3 Matrix{Int64}:
 1 2 3
 4 5 6
```

---

<div class="post-metadata">

**Author:** ![powerzf](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@powerzf](https://discourse.julialang.org/u/powerzf)\
**Post date:** [July 18, 2021, 2:47pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860/4 "2021-07-18T14:47:23Z")

</div>

I think you have misunderstood what I mean！In Mathematica “Grid”

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

---

<div class="post-metadata">

**Author:** ![powerzf](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@powerzf](https://discourse.julialang.org/u/powerzf)\
**Post date:** [July 18, 2021, 2:49pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860/5 "2021-07-18T14:49:14Z")

</div>

I think it can be a feature in Makie！
