# \#cairomakie

**URL:** https://discourse.julialang.org/tag/cairomakie/1342.md

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

---

## [\[ANN\] XKCDMakie.jl](https://discourse.julialang.org/t/ann-xkcdmakie-jl/139405)

<div class="topic-metadata">

**Author:** [@aryavorskiy](https://discourse.julialang.org/u/aryavorskiy)\
**Replies:** 3\
**Last updated:** [September 19, 2026, 9:27am UTC](https://discourse.julialang.org/t/ann-xkcdmakie-jl/139405 "2026-09-19T09:27:01Z")

</div>

Finally, a worthy competitor to Matplotlib’s xkcd mode Introducing XKCDMakie.jl, a new Makie.jl “backend” that produces figures with a hand-drawn look and feel. Paste into your REPL to install: using Pkg; Pkg.add("X…

---

## [More Barplots](https://discourse.julialang.org/t/more-barplots/137117)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 10\
**Last updated:** [May 15, 2026, 11:02am UTC](https://discourse.julialang.org/t/more-barplots/137117 "2026-05-15T11:02:03Z")

</div>

Hi all. Round two of figuring out bar plots in Makie. Given the data, I would like to plot one set of data and then stack the other data on top of it. In my last question, my issue was resolved with the n\_dodge attribute…

---

## [Makie Bar Plots](https://discourse.julialang.org/t/makie-bar-plots/137098)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 3\
**Last updated:** [May 13, 2026, 4:50pm UTC](https://discourse.julialang.org/t/makie-bar-plots/137098 "2026-05-13T16:50:06Z")

</div>

I feel as though I’m probably missing something obvious, but there don’t seem to be a lot of examples for bar plots in Makie that don’t point you back towards AoG. How can I get these bars to be properly dodged? Here is …

---

## ['flow' layout in Makie](https://discourse.julialang.org/t/flow-layout-in-makie/135646)

<div class="topic-metadata">

**Author:** [@mahmah](https://discourse.julialang.org/u/mahmah)\
**Replies:** 1\
**Last updated:** [February 14, 2026, 8:57pm UTC](https://discourse.julialang.org/t/flow-layout-in-makie/135646 "2026-02-14T20:57:26Z")

</div>

Is there any way to easily plot a grid of subfigures in Makie, similarly to e.g. 'layout = 4' in Plots.jl or do we need to do e.g. axs = \[Axis(fig\[i, j\]) for i in 1:3, j in 1:3\] ?

---

## [Error in conversion pipeline. xs and ys should have size ni+1, nj+1](https://discourse.julialang.org/t/error-in-conversion-pipeline-xs-and-ys-should-have-size-ni-1-nj-1/102372)

<div class="topic-metadata">

**Author:** [@CosmicSpittle](https://discourse.julialang.org/u/CosmicSpittle)\
**Replies:** 3\
**Last updated:** [February 3, 2026, 3:36pm UTC](https://discourse.julialang.org/t/error-in-conversion-pipeline-xs-and-ys-should-have-size-ni-1-nj-1/102372 "2026-02-03T15:36:44Z")

</div>

Hi - Can someone tell me what this error means? Error in conversion pipeline. xs and ys should have size ni+1, nj+1. I am trying to create a spectrogram heatmap in CairoMakie. I’ve created some test data (called test)…

---

## [CairoMakie.jl, MathTeXEngine.jl, Small Caps](https://discourse.julialang.org/t/cairomakie-jl-mathtexengine-jl-small-caps/133985)

<div class="topic-metadata">

**Author:** [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Replies:** 7\
**Last updated:** [November 26, 2025, 8:35pm UTC](https://discourse.julialang.org/t/cairomakie-jl-mathtexengine-jl-small-caps/133985 "2025-11-26T20:35:54Z")

</div>

Hi there! I have been struggling for the last hour with the following issue. I want to have a word in small caps within my legend in a CairoMakie plot. To get a word in small caps in Latex I just do \\textsc{Foo}. Her…

---

## [Using dates as x axis in Makie.jl](https://discourse.julialang.org/t/using-dates-as-x-axis-in-makie-jl/133762)

<div class="topic-metadata">

**Author:** [@elwwan](https://discourse.julialang.org/u/elwwan)\
**Replies:** 3\
**Last updated:** [November 10, 2025, 9:40am UTC](https://discourse.julialang.org/t/using-dates-as-x-axis-in-makie-jl/133762 "2025-11-10T09:40:06Z")

</div>

Hello everyone, I am trying to plot brackets in Makie.jl while using dates as the x axis. Unfortunately it gives me an error since I can’t use Date() as an argument in bracket!(). Here is the code that causes the error…

---

## [Visual connection between different axes in Makie.jl](https://discourse.julialang.org/t/visual-connection-between-different-axes-in-makie-jl/116535)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 11\
**Last updated:** [October 21, 2025, 3:10pm UTC](https://discourse.julialang.org/t/visual-connection-between-different-axes-in-makie-jl/116535 "2025-10-21T15:10:54Z")

</div>

Hello, I have a figure generated with CairoMakie.jl. This figure contains two axes, something like fig = Figure(size=(380, 220)) ax1 = Axis(fig\[1, 1\]) ax2 = Axis(fig\[2, 1\]) Now, I want to draw some lines (or even …

---

## [Stacked Histogram](https://discourse.julialang.org/t/stacked-histogram/133248)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 6\
**Last updated:** [October 19, 2025, 7:06am UTC](https://discourse.julialang.org/t/stacked-histogram/133248 "2025-10-19T07:06:21Z")

</div>

Is there a way to make a stacked histogram in Makie like Stacked histogram on a log scale — seaborn 0.13.2 documentation? The documentation only has examples about multiple histograms.

---

## [Grid plot and Label with CairoMakie](https://discourse.julialang.org/t/grid-plot-and-label-with-cairomakie/133034)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 2\
**Last updated:** [October 10, 2025, 11:23am UTC](https://discourse.julialang.org/t/grid-plot-and-label-with-cairomakie/133034 "2025-10-10T11:23:58Z")

</div>

Hi everyone, I want to make a plot like this one (illustration from http://dx.doi.org/10.1118/1.4947485) with CairoMakie.jl: S nothing crazy. However, after several attempts (see code below), I am unable to obtain s…

---

## [Coloring part of the background with a specific color](https://discourse.julialang.org/t/coloring-part-of-the-background-with-a-specific-color/131312)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [August 3, 2025, 5:43am UTC](https://discourse.julialang.org/t/coloring-part-of-the-background-with-a-specific-color/131312 "2025-08-03T05:43:37Z")

</div>

I am trying to color part of the background in in a plot with a specific color and unsure how to achieve it. In this case I want to color x \< 9 in grey and x\> 9 in orange. Any idea how to do it. This is just adds the …

---

## [Scatter plot points visable even if behind a mesh plot](https://discourse.julialang.org/t/scatter-plot-points-visable-even-if-behind-a-mesh-plot/130569)

<div class="topic-metadata">

**Author:** [@Varun\_V](https://discourse.julialang.org/u/Varun_V)\
**Replies:** 1\
**Last updated:** [July 9, 2025, 8:00am UTC](https://discourse.julialang.org/t/scatter-plot-points-visable-even-if-behind-a-mesh-plot/130569 "2025-07-09T08:00:35Z")

</div>

Hi everyone, I’m encountering different transparency behavior between CairoMakie and GLMakie when combining scatter plots with mesh plots. Expected behavior: scatter plot points behind a mesh should be hidden (like in …

---

## [Plotting into buffer](https://discourse.julialang.org/t/plotting-into-buffer/129641)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 11\
**Last updated:** [June 7, 2025, 6:32am UTC](https://discourse.julialang.org/t/plotting-into-buffer/129641 "2025-06-07T06:32:52Z")

</div>

Is it possible and how to plot into an existing buffer with Makie.jl ? My guess is that Cairomakie.jl would be the choice, but I can’t find a solution for it. The reason for this task is, that I want to hand over the bu…

---

## [Problem when add CairoMakie](https://discourse.julialang.org/t/problem-when-add-cairomakie/129616)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [June 4, 2025, 6:44am UTC](https://discourse.julialang.org/t/problem-when-add-cairomakie/129616 "2025-06-04T06:44:40Z")

</div>

When I tried to add CairoMakie, I got this warning: Warning: downloading texture atlas failed, need to re-create from scratch. │ │ exception = │ │ RequestError: HTTP/2 302 (Failed to connect to objects.githubuser…

---

## [CairoMakie Horizontal Colorbar](https://discourse.julialang.org/t/cairomakie-horizontal-colorbar/126919)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 3\
**Last updated:** [March 13, 2025, 3:43pm UTC](https://discourse.julialang.org/t/cairomakie-horizontal-colorbar/126919 "2025-03-13T15:43:34Z")

</div>

I cannot seem to find good documentation for how to make a horizontal color bar in CairoMakie. I found the vertical=false option, but I cannot seem to create a gap between the color bar and the plot (see example below) a…

---

## [How to use CairoMakie.contourf!](https://discourse.julialang.org/t/how-to-use-cairomakie-contourf/113781)

<div class="topic-metadata">

**Author:** [@SeSodesa](https://discourse.julialang.org/u/SeSodesa)\
**Replies:** 12\
**Last updated:** [February 24, 2025, 8:42pm UTC](https://discourse.julialang.org/t/how-to-use-cairomakie-contourf/113781 "2025-02-24T20:42:57Z")

</div>

I cannot for the life of me figure out what the heck I need to pass to CairoMakie.contourf!. What I have tried thus far produces an error: """ Plots and electric field of two point charges with a countour plot on the sa…

---

## [How to construct a categorical colormap with one specific value corresponding to a specific color?](https://discourse.julialang.org/t/how-to-construct-a-categorical-colormap-with-one-specific-value-corresponding-to-a-specific-color/126114)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 1:32pm UTC](https://discourse.julialang.org/t/how-to-construct-a-categorical-colormap-with-one-specific-value-corresponding-to-a-specific-color/126114 "2025-02-20T13:32:11Z")

</div>

What I want to do: I have an array of intergers that ranges over -3:2, which I want to plot with heatmap. The difficult part is that I want the 0 to be ploted by some “neutral” color, say grey in the colormap :coolwarm. …

---

## [Band filled by vertical gradient in Makie.jl](https://discourse.julialang.org/t/band-filled-by-vertical-gradient-in-makie-jl/124987)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 10:43pm UTC](https://discourse.julialang.org/t/band-filled-by-vertical-gradient-in-makie-jl/124987 "2025-01-20T22:43:55Z")

</div>

Hello, I would like to make a band filled by a vertical gradient using CairoMakie.jl. The result should be similar to this example. How can I do it in a clear way using CairoMakie.jl?

---

## [Contour plot on Structured grid using Meshes.jl](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [January 19, 2025, 6:18pm UTC](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854 "2025-01-19T18:18:18Z")

</div>

In Julia i am using Meshes.jl and GLMakie.jl . I am using x , z, alfsurf and psi variables of size (109,50) each. I input them to StructuredGrid() function which creates a structured grid of size (108,49). using Meshe…

---

## [Programmatically Get Makie Figure Size](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 2:14pm UTC](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893 "2025-01-08T14:14:56Z")

</div>

Hello, Is it possible to programmatically get the width and height of a figure in Makie assuming you did not explicitly specify them in the call to Figure()? I’m curious because they would be helpful for placing a zoom…

---

## [Makie to Simulate Turing Machine Tape](https://discourse.julialang.org/t/makie-to-simulate-turing-machine-tape/123183)

<div class="topic-metadata">

**Author:** [@CurryFavor](https://discourse.julialang.org/u/CurryFavor)\
**Replies:** 5\
**Last updated:** [December 2, 2024, 5:43pm UTC](https://discourse.julialang.org/t/makie-to-simulate-turing-machine-tape/123183 "2024-12-02T17:43:26Z")

</div>

Julia Makie supports recording of animated gif, etc. I wish to utilize this feature to create an animation of a Turing machine’s tape. I’d like the tape to appear such as follows (created using HTML) … My attempt…

---

## [Makie matrix image display issue](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 7\
**Last updated:** [December 1, 2024, 12:16pm UTC](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281 "2024-12-01T12:16:12Z")

</div>

Hi users The following function IMAGE\_SU\_A\_METRIC, using Makie.jl and CairoMakie.jl is meant to give an image of an input matrix SU\_A\_METRX using a couple of parameters from an input structure STR\_DTA\_AMT: function IM…

---

## [Adding slider that will show a vertical line across my plot?](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 4:39am UTC](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605 "2024-11-20T04:39:11Z")

</div>

Hi all, I have a stacked plot with shared x- and y- axes, and the main goal of this is to quickly see where general trends compare over each plot – and I think having a line over each plot that I can scan over would mak…

---

## [CairoMakie plots disappear once linked to an Illustrator file](https://discourse.julialang.org/t/cairomakie-plots-disappear-once-linked-to-an-illustrator-file/122492)

<div class="topic-metadata">

**Author:** [@LorenzoFioroni](https://discourse.julialang.org/u/LorenzoFioroni)\
**Replies:** 6\
**Last updated:** [November 14, 2024, 1:29pm UTC](https://discourse.julialang.org/t/cairomakie-plots-disappear-once-linked-to-an-illustrator-file/122492 "2024-11-14T13:29:06Z")

</div>

Hello everyone, I’m facing an issue with using CairoMakie and Adobe Illustrator 2025 that I hope someone here can help me with. The workflow involves generating some plots with CairoMakie, linking these plots into Illus…

---

## [Storing separate Makie axes from a figure](https://discourse.julialang.org/t/storing-separate-makie-axes-from-a-figure/122620)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 1\
**Last updated:** [November 14, 2024, 9:19am UTC](https://discourse.julialang.org/t/storing-separate-makie-axes-from-a-figure/122620 "2024-11-14T09:19:23Z")

</div>

1. Storing axes separately When making figures for publications, I often find myself wanting to store individual axes from a figure with multiple axes. This is to reduce some redundant information, such as shared axis-la…

---

## [Makie Broken Axis on Log Scale](https://discourse.julialang.org/t/makie-broken-axis-on-log-scale/122571)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 3:27pm UTC](https://discourse.julialang.org/t/makie-broken-axis-on-log-scale/122571 "2024-11-13T15:27:11Z")

</div>

Hello! I have some data I’d like to plot with a broken axis. Basically there is one data point at the beginning that is way different than the rest. I found this post about implementing a broken axis. I tried to adapt …

---

## [How to Determine GridPosition of an Axis in a Complex Figure Layout?](https://discourse.julialang.org/t/how-to-determine-gridposition-of-an-axis-in-a-complex-figure-layout/122448)

<div class="topic-metadata">

**Author:** [@LorenzoFioroni](https://discourse.julialang.org/u/LorenzoFioroni)\
**Replies:** 3\
**Last updated:** [November 9, 2024, 2:42pm UTC](https://discourse.julialang.org/t/how-to-determine-gridposition-of-an-axis-in-a-complex-figure-layout/122448 "2024-11-09T14:42:42Z")

</div>

Hello everyone, I am writing a function using Makie.jl for some custom plotting. The function takes a Figure and an Axis object as arguments. Although I can safely assume that the axis is somewhere within the figure, i…

---

## [Makie Uneven Legend Banks](https://discourse.julialang.org/t/makie-uneven-legend-banks/121757)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 6\
**Last updated:** [October 29, 2024, 6:22am UTC](https://discourse.julialang.org/t/makie-uneven-legend-banks/121757 "2024-10-29T06:22:59Z")

</div>

Hello, Is it possible to have uneven number of elements in the banks of a Legend in Makie? Below is an MWE - the actual figure I need this for is crowded and I basically need two legend entries in bank 2 moved into bank…

---

## [Makie outputs nothing and is sensitive to some argument changes](https://discourse.julialang.org/t/makie-outputs-nothing-and-is-sensitive-to-some-argument-changes/121348)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 10\
**Last updated:** [October 16, 2024, 8:13pm UTC](https://discourse.julialang.org/t/makie-outputs-nothing-and-is-sensitive-to-some-argument-changes/121348 "2024-10-16T20:13:40Z")

</div>

Hello, I’m trying to use CairoMakie to plot some data, but there is no output or error message for my plotting. I have tried my best to reduce my problem to a MWE, but since I’m working with a particular set of data, th…

---

## [Large Numbers Make Lines Disappear in Makie](https://discourse.julialang.org/t/large-numbers-make-lines-disappear-in-makie/121026)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 6:45pm UTC](https://discourse.julialang.org/t/large-numbers-make-lines-disappear-in-makie/121026 "2024-10-08T18:45:30Z")

</div>

The following code: using CairoMakie xs = \[1,2,3,4\] ys = \[1,1,1e15,1\] fig = Figure() ax1 = Axis(fig\[1,1\], limits=(nothing, nothing)) ax2 = Axis(fig\[1,2\], limits=(nothing, (0,2))) lines!(ax1, xs, ys) lines!(ax2, xs, ys) …

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