# \#makielayout

**URL:** https://discourse.julialang.org/tag/makielayout/601.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Align axes on different grids](https://discourse.julialang.org/t/align-axes-on-different-grids/132930)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 12:17pm UTC](https://discourse.julialang.org/t/align-axes-on-different-grids/132930 "2025-10-07T12:17:43Z")

</div>

Hello, I want to create a figure using Makie.jl that aligns different axes in different layouts. For example, I have the following code using CairoMakie CairoMakie.activate!(type = "svg", pt\_per\_unit = 1.25) λ\_color =…

---

## [How can I achieve this Makie Layout that respects a given aspect ratio?](https://discourse.julialang.org/t/how-can-i-achieve-this-makie-layout-that-respects-a-given-aspect-ratio/113490)

<div class="topic-metadata">

**Author:** [@tscode](https://discourse.julialang.org/u/tscode)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 2:48pm UTC](https://discourse.julialang.org/t/how-can-i-achieve-this-makie-layout-that-respects-a-given-aspect-ratio/113490 "2024-04-25T14:48:55Z")

</div>

I want to make the following layout behave sensibly under changes of the figure size (interactive settings mainly). The constraints are: The green column has a fixed width. The red box has a given aspect ratio (1 in…

---

## [Centred subplot in Makie](https://discourse.julialang.org/t/centred-subplot-in-makie/107660)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 1:09pm UTC](https://discourse.julialang.org/t/centred-subplot-in-makie/107660 "2023-12-15T13:09:58Z")

</div>

Hi, I am looking for a way to do the below in the image. I know I could generate a subplot which spans the whole length of A and B however I can not appear to find an intuitive way to plot a third figure C which spans h…

---

## [How to use AlgebraOfGraphics to plot three figures together](https://discourse.julialang.org/t/how-to-use-algebraofgraphics-to-plot-three-figures-together/106920)

<div class="topic-metadata">

**Author:** [@Chao](https://discourse.julialang.org/u/Chao)\
**Replies:** 3\
**Last updated:** [November 30, 2023, 9:58pm UTC](https://discourse.julialang.org/t/how-to-use-algebraofgraphics-to-plot-three-figures-together/106920 "2023-11-30T21:58:26Z")

</div>

Hello, the current plots I have are as follows: These are three different figures. I just paste them together. I want to have them in one figure. This is my code: using AlgebraOfGraphics, CairoMakie gdfc data(gdfc)…

---

## [Makie: plotting text at arbitrary position in \`GridLayout\`?](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 5:54am UTC](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407 "2023-11-23T05:54:57Z")

</div>

I asked how to plot some text at an arbitrary position in a Figure in this thread . The simplest answer was to plot the text using the coordinates of fig.scene. Then, my question here is, does a GridLayout has its own…

---

## [Remove whitespace between Axis3 and Label](https://discourse.julialang.org/t/remove-whitespace-between-axis3-and-label/105461)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 4\
**Last updated:** [October 27, 2023, 8:19am UTC](https://discourse.julialang.org/t/remove-whitespace-between-axis3-and-label/105461 "2023-10-27T08:19:28Z")

</div>

I want to get my label closer to the axis. I have tried every combination of Axis3 and label options I can think of, and resizing the figure, but I haven’t improved on this. Is there a version of rowgap that could be use…

---

## [Makie's hidden gems](https://discourse.julialang.org/t/makies-hidden-gems/104251)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 0\
**Last updated:** [September 26, 2023, 9:59am UTC](https://discourse.julialang.org/t/makies-hidden-gems/104251 "2023-09-26T09:59:31Z")

</div>

I just came across this pattern of overloading Makielayout.get\_ticks() for a custom axis . Such an elegant example of use of Julia’s multiple dispatch for visualization of a bespoke axis type! The automatic support of th…

---

## [How to create to separate, simultaneously coexisting plot windows](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626)

<div class="topic-metadata">

**Author:** [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Replies:** 6\
**Last updated:** [August 7, 2023, 3:20pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626 "2023-08-07T15:20:59Z")

</div>

Hi! How can I create to separate windows, where each shows a Figure / Scene? When I try to create two Figure()s, I can only show one at a time. The same is true for Scene()s. fig1 = Figure() # add axes, plots, labels,…

---

## [How to stick a colorbar to a scaled axis in Makie](https://discourse.julialang.org/t/how-to-stick-a-colorbar-to-a-scaled-axis-in-makie/70358)

<div class="topic-metadata">

**Author:** [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Replies:** 12\
**Last updated:** [May 18, 2023, 4:43pm UTC](https://discourse.julialang.org/t/how-to-stick-a-colorbar-to-a-scaled-axis-in-makie/70358 "2023-05-18T16:43:30Z")

</div>

Here is a MWE of a Makie plot with a wide figure with one square axis and a colorbar “attached” to it: f = Figure(resolution=(900,300)) Axis(f\[1, 1\], aspect = AxisAspect(1)) Box(f\[1, 1\], color = (:blue, 0.2), strokecolo…

---

## [Makie theming axis on specific plot recipes](https://discourse.julialang.org/t/makie-theming-axis-on-specific-plot-recipes/97395)

<div class="topic-metadata">

**Author:** [@kunzaatko](https://discourse.julialang.org/u/kunzaatko)\
**Replies:** 0\
**Last updated:** [April 12, 2023, 2:38pm UTC](https://discourse.julialang.org/t/makie-theming-axis-on-specific-plot-recipes/97395 "2023-04-12T14:38:20Z")

</div>

Is there a way to theme the Axis in makie for specific recipes differently. My specific use-case is that I would like to reverse the y axis and make the aspect use DataAspect but only for image plots. The ideal way that …

---

## [Makie plots with equal height + unequal width + data aspect ratio](https://discourse.julialang.org/t/makie-plots-with-equal-height-unequal-width-data-aspect-ratio/60628)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 10\
**Last updated:** [March 8, 2023, 7:42am UTC](https://discourse.julialang.org/t/makie-plots-with-equal-height-unequal-width-data-aspect-ratio/60628 "2023-03-08T07:42:52Z")

</div>

I’d like to have a few plots arranged in a row that have both a data aspect ratio and equal heights, and therefore unequal widths. I can’t seem to get it to work no matter what combination of DataAspect, height, limits, a…

---

## [How to switch between several layouts in Makie?](https://discourse.julialang.org/t/how-to-switch-between-several-layouts-in-makie/93578)

<div class="topic-metadata">

**Author:** [@pzabka](https://discourse.julialang.org/u/pzabka)\
**Replies:** 6\
**Last updated:** [January 27, 2023, 9:51pm UTC](https://discourse.julialang.org/t/how-to-switch-between-several-layouts-in-makie/93578 "2023-01-27T21:51:42Z")

</div>

Hello, I am creating a GUI in Makie, and I would like to be able to change the layout with a menu widget. So far, I can add widgets (GridLaouts) at runtime, but I didn’t find how to hide or replace them. See the mwe bel…

---

## [Numeric string format for Makie plot?](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 5\
**Last updated:** [September 20, 2022, 5:10pm UTC](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508 "2022-09-20T17:10:44Z")

</div>

Hello everyone! Sorry if my question is too basic for some people. Basically I’m trying to define the numeric string format for my Makie plot, specifically for the axis. The numbers on the y-axis that I want to display h…

---

## [Equally sized grid cells in Makie](https://discourse.julialang.org/t/equally-sized-grid-cells-in-makie/87373)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 2:49pm UTC](https://discourse.julialang.org/t/equally-sized-grid-cells-in-makie/87373 "2022-09-16T14:49:25Z")

</div>

Hi, I am trying to place 5 plots in a grid with 3 rows and 4 columns so that the first plot spans cols 2:3 in row 1 the remaining plots span cols 1:2, 3:4 in rows 2,3 all plots are of the same size However, it seems …

---

## [Align axes to each other with Makie.jl](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 6:18pm UTC](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124 "2022-08-22T18:18:08Z")

</div>

Hello everyone. I’m having trouble with aligning axes of two plots with different scales. Below is a reproducible example: begin fig = Figure(resolution = (1920, 1080)); update\_theme!(fontsize = 24); axis = …

---

## [\`ylabel\` and \`xlabel\` next to axes in facet plot](https://discourse.julialang.org/t/ylabel-and-xlabel-next-to-axes-in-facet-plot/86002)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 2:14pm UTC](https://discourse.julialang.org/t/ylabel-and-xlabel-next-to-axes-in-facet-plot/86002 "2022-08-19T14:14:19Z")

</div>

Is there a way in Makie.jl to “combine” the xlabel and ylabel by putting them in the middle of the axes? This would be useful for facet plots. For example, I have the following plot and I would like to avoid the dupl…

---

## [How to minimize space between colorbar and Axis, with aspect=DataAspect()](https://discourse.julialang.org/t/how-to-minimize-space-between-colorbar-and-axis-with-aspect-dataaspect/81167)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 4\
**Last updated:** [May 17, 2022, 8:31am UTC](https://discourse.julialang.org/t/how-to-minimize-space-between-colorbar-and-axis-with-aspect-dataaspect/81167 "2022-05-17T08:31:33Z")

</div>

let fig = Figure(resolution=(700,300)) ax = Axis(fig\[1, 1\]; aspect=DataAspect()) lines!(ax, Circle(Point2f(0, 0), 1)) lines!(ax, Circle(Point2f(0, 1), 1)) Colorbar(fig\[1, 2\]) resize\_to\_layout!(fig) fig end result…

---

## [Whitespace in layout in Makie](https://discourse.julialang.org/t/whitespace-in-layout-in-makie/59657)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 5\
**Last updated:** [May 17, 2022, 5:38am UTC](https://discourse.julialang.org/t/whitespace-in-layout-in-makie/59657 "2022-05-17T05:38:39Z")

</div>

I have a fairly involved layout, and I can’t see how to get the whitespace to be used up, while not forcing some figures to get pushed into others. If I make the resolution height smaller, I get overlap of rows, even tho…

---

## [Inserting a row or column in a Makie layout](https://discourse.julialang.org/t/inserting-a-row-or-column-in-a-makie-layout/77910)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 5\
**Last updated:** [March 16, 2022, 7:17am UTC](https://discourse.julialang.org/t/inserting-a-row-or-column-in-a-makie-layout/77910 "2022-03-16T07:17:51Z")

</div>

Say I have an existing grid like this one: using CairoMakie f = Figure(resolution=(600, 200)) scatter(f\[1,1\], 1:3, 1:3) scatter(f\[1,2\], 1:3, \[0,0,0\]) f How can I insert a column between these two? An idea would be …

---

## [Replacing only the data layer of points in a Makie figure with protrusions](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 6\
**Last updated:** [September 22, 2021, 7:59pm UTC](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478 "2021-09-22T19:59:21Z")

</div>

I have a plot that requires a lot of code to create protrusions. So, it would be nice to just replace the data layer of the plot without messing with the protrusions. Is this possible? I have example code here: using…

---

## [What is the difference btween handling f\[i,j\]=GridLayout() and g=f\[i,j\]=GridLayout()](https://discourse.julialang.org/t/what-is-the-difference-btween-handling-f-i-j-gridlayout-and-g-f-i-j-gridlayout/67675)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 7\
**Last updated:** [September 4, 2021, 1:37pm UTC](https://discourse.julialang.org/t/what-is-the-difference-btween-handling-f-i-j-gridlayout-and-g-f-i-j-gridlayout/67675 "2021-09-04T13:37:46Z")

</div>

I am trying to plot a 2x2 figure as shown below. So I import CairoMakie for ir in 1:2, ic in 1:2 g = f\[ir,ic\] = GridLayout() # handling g below end But if I try the following code: for ir in 1:2, ic in 1:…

---

## [Makie allocations and speed](https://discourse.julialang.org/t/makie-allocations-and-speed/67376)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 31, 2021, 11:20am UTC](https://discourse.julialang.org/t/makie-allocations-and-speed/67376 "2021-08-31T11:20:14Z")

</div>

Writing a little GUI for visualizing ND data in GLMakie.jl we noted that the allocations are rather high in Makie, which may be one reason that the startup time is significant. The data to visualize is minute (e.g. 2x2x…

---

## [Makie: layout of IntervalSlider and Slider and custom labels/text display](https://discourse.julialang.org/t/makie-layout-of-intervalslider-and-slider-and-custom-labels-text-display/67241)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 8\
**Last updated:** [August 30, 2021, 11:47pm UTC](https://discourse.julialang.org/t/makie-layout-of-intervalslider-and-slider-and-custom-labels-text-display/67241 "2021-08-30T23:47:35Z")

</div>

Hello, Three questions regarding Makie layout of IntervalSlider and Slider. On the left side of the above image, I would like to have a :grey10 background for the IntervalSlider and Slider as in the Textbox. Howev…

---

## [Gamma correction for colormaps](https://discourse.julialang.org/t/gamma-correction-for-colormaps/67227)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 8\
**Last updated:** [August 30, 2021, 5:56pm UTC](https://discourse.julialang.org/t/gamma-correction-for-colormaps/67227 "2021-08-30T17:56:44Z")

</div>

Is there a way to have a gamma Node, which is linked to the gamma value of a colormap in Makie? Colorbars can have limits, but no gamma yet as it seems. Is it possible to implement this into Makie or can one write a col…

---

## [Obtaining the axis of a \`Colorbar\`](https://discourse.julialang.org/t/obtaining-the-axis-of-a-colorbar/67207)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 7\
**Last updated:** [August 28, 2021, 2:19pm UTC](https://discourse.julialang.org/t/obtaining-the-axis-of-a-colorbar/67207 "2021-08-28T14:19:11Z")

</div>

I am trying to implement a scroll-behaviour on a Colorbar placed in a gridlayout cell (e.g. fig\[1,2\]). However, I cannot find out, how to obtain the corresponding axis, which I need to register\_interaction!(ax) the scro…

---

## [Minimum size of Makie grid cell?](https://discourse.julialang.org/t/minimum-size-of-makie-grid-cell/67082)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 4:50pm UTC](https://discourse.julialang.org/t/minimum-size-of-makie-grid-cell/67082 "2021-08-27T16:50:20Z")

</div>

I am layouting a Makie.jl figure with some figure elements (at \[1,1\], \[2,1\] and \[1,2\]) and a text box (at \[2,2\]). The text box is created as well as an axis and the text is written (a little painfully) into it. To get a …

---

## [\`rowsize!\` and \`colsize!\` for nested layouts](https://discourse.julialang.org/t/rowsize-and-colsize-for-nested-layouts/66981)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 6:33am UTC](https://discourse.julialang.org/t/rowsize-and-colsize-for-nested-layouts/66981 "2021-08-27T06:33:39Z")

</div>

I am writing code which generates a specific layout with interactions etc. It works fine for a figure, but as soon as I try to embed it as a subfigure I am getting into trouble. The reason is that rowsize! and colsize! f…

---

## [MakieLayout - deleting Sliders (or GridPositions)](https://discourse.julialang.org/t/makielayout-deleting-sliders-or-gridpositions/66879)

<div class="topic-metadata">

**Author:** [@JCQ](https://discourse.julialang.org/u/JCQ)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 11:13pm UTC](https://discourse.julialang.org/t/makielayout-deleting-sliders-or-gridpositions/66879 "2021-08-25T23:13:47Z")

</div>

Here is a code snippet for the problem that I am having: using GLMakie,Colors,GeometryBasics fig = Figure(resolution = (1920, 1080)) plot\_scene = LScene(fig\[1,1\], scenekw=(camera = old\_cam3d!,show\_axis = false),tellwi…

---

## [Colorbar and colsize](https://discourse.julialang.org/t/colorbar-and-colsize/60093)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 7\
**Last updated:** [April 28, 2021, 10:00am UTC](https://discourse.julialang.org/t/colorbar-and-colsize/60093 "2021-04-28T10:00:51Z")

</div>

I can’t figure out how to make this plot. I want a column of Aspect(1,1) heatmaps down the left, with matching rectangle plots on the right that take up the space. I can get here fine: fig = Figure(resolution=(1192, 20…

---

## [Colorbar position inside layout](https://discourse.julialang.org/t/colorbar-position-inside-layout/59762)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 5:30pm UTC](https://discourse.julialang.org/t/colorbar-position-inside-layout/59762 "2021-04-22T17:30:35Z")

</div>

having done (the heatmap is the 4th plot down in a 5x2 layout) cbar = Colorbar(f\[4, 1\]\[2, 1\], vertical=false,height = 20) I get something like this: Is there a way to get the colorbar to sit just below the heatmap…

[Next page](https://discourse.julialang.org/tag/makielayout/601.md?match_all_tags=true&page=1&tags%5B%5D=makielayout)
