# Makie.contour plot into an array

**URL:** <https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [August 2, 2021, 12:39am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652 "2021-08-02T00:39:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dale\_James\_Black](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dale_james_black/32/11595_2.png) [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Post date:** [August 2, 2021, 12:39am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652/1 "2021-08-02T00:39:54Z")

</div>

Is there a way to turn a `Makie.contour` plot into an array? Either where the contour pixels are 1s and everything else is 0 or where the pixels enclosed by the values are 1s and everything else is a 0. I can use `ImageEdgeDetection.detect_edges` to get a contour array but it’s much different than what `Makie.contour` returns

---

<div class="post-metadata">

**Author:** ![Dale\_James\_Black](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dale_james_black/32/11595_2.png) [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Post date:** [August 2, 2021, 12:42am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652/2 "2021-08-02T00:42:06Z")

</div>

For example

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/6/16ec47e904721e2ad695f4c7748bfe03540771d8.jpeg)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/d/5db956330a988d7ad2a3fb9cc8933f4264139ecf.jpeg)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [August 2, 2021, 5:45am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652/3 "2021-08-02T05:45:23Z")

</div>

`Makie.colorbuffer(ax.scene)` would give you pixels. A contour plot uses lines, so the underlying information is not represented as pixels. We use Contours.jl, so you could also call that directly if you need that data.
