# Who said we don't do irregular grids?

**URL:** <https://forum.generic-mapping-tools.org/t/who-said-we-dont-do-irregular-grids/2648>\
**Category:** Showcase\
**Created:** [February 21, 2022, 6:14pm UTC](https://forum.generic-mapping-tools.org/t/who-said-we-dont-do-irregular-grids/2648 "2022-02-21T18:14:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [February 21, 2022, 6:14pm UTC](https://forum.generic-mapping-tools.org/t/who-said-we-dont-do-irregular-grids/2648/1 "2022-02-21T18:14:45Z")

</div>

```auto
using GMT

X,Y = GMT.meshgrid(-3:6/17:3);
XX = 2*X .* Y; YY = X.^2 .- Y.^2;
pcolor(XX,YY, reshape(repeat([1:18; 18:-1:1], 9,1), size(XX)), lc=:black, show=true)

```

 ![GMTjl_tmp-fs8](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/f/ffe45a1fbe73f6fbb721f49b18c3546382356382.png)

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [February 21, 2022, 7:52pm UTC](https://forum.generic-mapping-tools.org/t/who-said-we-dont-do-irregular-grids/2648/2 "2022-02-21T19:52:46Z")

</div>

Is this some julia black magic or native gmt?

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [February 21, 2022, 8:05pm UTC](https://forum.generic-mapping-tools.org/t/who-said-we-dont-do-irregular-grids/2648/3 "2022-02-21T20:05:13Z")

</div>

At the end there is only a call to `psxy` but the Julia middle-men have the work to pave the way, but not that much

> <https://github.com/GenericMappingTools/GMT.jl/blob/master/src/pcolor.jl#L41>
