# Heatmap of data not on a grid

**URL:** https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022
**Category:** General Usage
**Tags:** plotting, interpolations, makie
**Created:** [February 18, 2025, 10:06am UTC](https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022 "2025-02-18T10:06:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [February 18, 2025, 12:31pm UTC](https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022/3 "2025-02-18T12:31:01Z")

</div>

You can use PyPlot.jl (or PythonPlot.jl) or GMT.jl, for example, both of which support this by triangulating irregular data onto a mesh and then linearly interpolating from that.

> [@Heatmap plots with X and Y matrix instead of vectors](https://discourse.julialang.org/t/heatmap-plots-with-x-and-y-matrix-instead-of-vectors/89665):
>
> Hi all, I want to know if it is possible to make heatmap plots type with X and Y matrix instead of using X and Y vectors. In fact my X and Y matrix are longitude and latitude and the Z matrix are geostationnary satellites radiances where all matrix have same size ; 3712x3712 up to 12000x12000. for all matrix their corners are nan (space pixels). I didnot find examples on this website [Home · Plots](https://docs.juliaplots.org/latest/) later I will have to draw the cost lines over this image plot. I used to use Matlab ( pcolor(X,Y…

(There are also various packages that can do unstructured-points interpolation, see e.g. [2D Interpolation on an irregular grid](https://discourse.julialang.org/t/2d-interpolation-on-an-irregular-grid/105247), also Dierckx.jl and BasicInterpolators.jl and KernelInterpolation mentioned above.)

---

_[View the full topic](https://discourse.julialang.org/t/heatmap-of-data-not-on-a-grid/126022)._
