# GLMakie heatmap and certain input matrix sizes

**URL:** https://discourse.julialang.org/t/glmakie-heatmap-and-certain-input-matrix-sizes/134704
**Category:** New to Julia
**Tags:** glmakie
**Created:** [December 23, 2025, 9:07am UTC](https://discourse.julialang.org/t/glmakie-heatmap-and-certain-input-matrix-sizes/134704 "2025-12-23T09:07:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mahmah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mahmah/32/214326_2.png) [@mahmah](https://discourse.julialang.org/u/mahmah)
#### Post date: [December 23, 2025, 9:07am UTC](https://discourse.julialang.org/t/glmakie-heatmap-and-certain-input-matrix-sizes/134704/1 "2025-12-23T09:07:04Z")

</div>

Hi,

I’m trying to do the following:

`using GLMakie`  
`m = randn(45825,3)`  
`r,c = size(m)`  
`fig = Figure()`  
`ax = Axis(fig[1,1])`  
`h = heatmap!(ax,1:r,1:c,m)`

But I get this error in my heatmap call:

`UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_1D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable`  
`Heatmap{Tuple{Vector{Float64}, Vector{Float64}, Matrix{Float32}}}`

Any ideas on what could be causing this issue? It works perfectly fine with other sizes e.g. `m = randn(12800,3)`.

Thanks a lot for your help!

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 23, 2025, 9:59am UTC](https://discourse.julialang.org/t/glmakie-heatmap-and-certain-input-matrix-sizes/134704/2 "2025-12-23T09:59:52Z")

</div>

I see a different error:

```julia-auto
julia> m = randn(16_383, 3);

julia> r, c = size(m);

julia> heatmap(1:r, 1:c, m) # works

julia> m = randn(16_384, 3);

julia> r, c = size(m);

julia> heatmap(1:r, 1:c, m)
Error showing value of type Makie.FigureAxisPlot:

SYSTEM (REPL): showing an error caused an error
ERROR: 1-element ExceptionStack:
Failed to resolve gl_renderobject:
(...)
Due to ERROR: glTexImage 1D: width too large. Width: 16385

```

so it seems to be a restriction on the maximum input size.

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [December 23, 2025, 10:44am UTC](https://discourse.julialang.org/t/glmakie-heatmap-and-certain-input-matrix-sizes/134704/3 "2025-12-23T10:44:09Z")

</div>

I get the message: “_ERROR: glTexImage 1D: width too large. Width: 45826_”.

A workaround, consisting in tiling the plot, is provided in the manual:

> **[Dimensions too large ​ - Frequently Asked Questions | Makie](https://docs.makie.org/dev/explanations/faq#Dimensions-too-large)**
>
> We assume you are running Julia on the default system image without PackageCompiler. | Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control...
