# \#cairo

**URL:** https://discourse.julialang.org/tag/cairo/649.md

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

---

## [ProfileView (Cairo? Gtk4?) started using some odd font, but why?](https://discourse.julialang.org/t/profileview-cairo-gtk4-started-using-some-odd-font-but-why/125780)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 14\
**Last updated:** [February 12, 2025, 8:10am UTC](https://discourse.julialang.org/t/profileview-cairo-gtk4-started-using-some-odd-font-but-why/125780 "2025-02-12T08:10:39Z")

</div>

I’v been using ProfileView.jl for some time now, with success. However, recently, the display changed, and the tooltips and various other displayed strings started using some font which doesn’t have regular ASCII charact…

---

## [Alpha keyword ignored in scatterlines](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 2:52am UTC](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954 "2024-07-15T02:52:11Z")

</div>

MWE: using CairoMakie set\_theme!(theme\_latexfonts()) update\_theme!( palette=(color=ColorSchemes.glasbey\_category10\_n256.colors,), ScatterLines=(cycle=Cycle(:color),) ) function main() f = Figure() ax =…

---

## [Cairo text functions discrepancies](https://discourse.julialang.org/t/cairo-text-functions-discrepancies/105635)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 6:22pm UTC](https://discourse.julialang.org/t/cairo-text-functions-discrepancies/105635 "2023-11-01T18:22:54Z")

</div>

I am testing the different text drawing functions in Cairo.jl: show\_text, text, and text\_path. The text function is the only one that produces the wrong size and is positioned at a distance from the insertion point (see …

---

## [Inline plot not showing up Makie](https://discourse.julialang.org/t/inline-plot-not-showing-up-makie/100071)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 4:41am UTC](https://discourse.julialang.org/t/inline-plot-not-showing-up-makie/100071 "2023-06-09T04:41:45Z")

</div>

So a couple of days ago i wanted to use GLMakie outside of the inline plot that vscode has (wanted to rotate a 3D plot), so I used Makie.inline!(false) But now I want to use the standard inline plot for CairoMakie and …

---

## [How to include bitmap images in CairoMakie?](https://discourse.julialang.org/t/how-to-include-bitmap-images-in-cairomakie/94988)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 1:54am UTC](https://discourse.julialang.org/t/how-to-include-bitmap-images-in-cairomakie/94988 "2023-02-22T01:54:52Z")

</div>

I have a big figure panel which consists many smaller 2D/3D figures. As I would like vector graphics for the 2D parts (and if possible the axes labels, titles, etc for the 3D parts) I use CairoMakie. However, I find that…

---

## [How to create surface plot in CairoMakie where the sides are 'filled'?](https://discourse.julialang.org/t/how-to-create-surface-plot-in-cairomakie-where-the-sides-are-filled/94454)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 6\
**Last updated:** [February 13, 2023, 10:12pm UTC](https://discourse.julialang.org/t/how-to-create-surface-plot-in-cairomakie-where-the-sides-are-filled/94454 "2023-02-13T22:12:36Z")

</div>

I can make a surface plot with the following codes: x = range(-1, 1, length=129) y = range(-1, 1, length=129) R = x'.^2 .+ y.^2 h2d = cos.(R) update\_theme!( lightposition = Vec3f(50, 10, 0), Axis3 = ( e…

---

## [How to make a fast first plot with CairoMakie?](https://discourse.julialang.org/t/how-to-make-a-fast-first-plot-with-cairomakie/94120)

<div class="topic-metadata">

**Author:** [@YH\_Ko](https://discourse.julialang.org/u/YH_Ko)\
**Replies:** 2\
**Last updated:** [February 6, 2023, 7:23am UTC](https://discourse.julialang.org/t/how-to-make-a-fast-first-plot-with-cairomakie/94120 "2023-02-06T07:23:05Z")

</div>

I’m new to Julia language. I have tried to follow data visualization with Makie. However, the time to first plot is too long. (~50sec) 50.087309 seconds (146.21 M allocations: 7.676 GiB, 3.69% gc time, 98.74% compi…

---

## [Wrong font style being selected in Makie](https://discourse.julialang.org/t/wrong-font-style-being-selected-in-makie/91640)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 6\
**Last updated:** [December 15, 2022, 2:34pm UTC](https://discourse.julialang.org/t/wrong-font-style-being-selected-in-makie/91640 "2022-12-15T14:34:08Z")

</div>

Hello, While plotting using ‘Makie.jl’, I am passing the command titlefont = "Arial" in Axis() command to change the title font to Arial, and as expected, I get to see Arial font being used. But when I pass titlefont = …

---

## [Logarithmic x-axis of violin plots](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 9:20am UTC](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065 "2022-12-01T09:20:26Z")

</div>

Hello everyone, I’d like to plot a violin plot on a log10 x-axis, e.g.: using DataFrames, DataFramesMeta, CairoMakie df = DataFrame( x = repeat(10.0 .^ (-1:3), inner=10), y = rand(50) ) fig = Figure() ax = Axi…

---

## [Formatting two plots to have the same x axis range](https://discourse.julialang.org/t/formatting-two-plots-to-have-the-same-x-axis-range/90882)

<div class="topic-metadata">

**Author:** [@eduardo-zambrano](https://discourse.julialang.org/u/eduardo-zambrano)\
**Replies:** 6\
**Last updated:** [November 27, 2022, 6:39pm UTC](https://discourse.julialang.org/t/formatting-two-plots-to-have-the-same-x-axis-range/90882 "2022-11-27T18:39:11Z")

</div>

Hi everyone, I have what I think is a very basic question about plotting using Cairo Makie. How can I make two plots I’m making have the same x axis range?. Here’s a working prototype that I think illustrates what I nee…

---

## [Longer dashes in dashed lines](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 12:55pm UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104 "2022-11-11T12:55:53Z")

</div>

When plotting dashed lines I can use linestyle=:dash. To my taste the individual dashed are a bit short. Is there something like :longdash in CairoMakie? Or how can I increase the dash length?

---

## [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 …

---

## ['tight\_layout' in Makie for plots with multiple subplots](https://discourse.julialang.org/t/tight-layout-in-makie-for-plots-with-multiple-subplots/86718)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 5\
**Last updated:** [September 6, 2022, 9:55am UTC](https://discourse.julialang.org/t/tight-layout-in-makie-for-plots-with-multiple-subplots/86718 "2022-09-06T09:55:25Z")

</div>

I have the following code: using CairoMakie # create data x = range(-1, 1, 129) y = range(-1, 1, 129) X = ones(length(y)) .\* x' Y = y .\* ones(1,length(x)) R = sqrt.(X.^2 + Y.^2) Z = ((R.^2 .- 1.5) .^ 2) Z\[R.\>1\] .= 0 …

---

## [Flipping the y-axis of heatmap in CairoMakie](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055)

<div class="topic-metadata">

**Author:** [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 5:56pm UTC](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055 "2022-08-20T17:56:45Z")

</div>

I am trying to flip the y-axis in some heatmaps. The below code (when I have only one heatmap) works fine: begin fig = Figure(resolution=(600, 600)) ax = Axis(fig\[1, 1\]) hm = heatmap!(fig\[1,1\],mat) cb = Colorbar(fi…

---

## [Accessing ecdfplot from CairoMakie](https://discourse.julialang.org/t/accessing-ecdfplot-from-cairomakie/74219)

<div class="topic-metadata">

**Author:** [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Replies:** 1\
**Last updated:** [January 8, 2022, 12:43am UTC](https://discourse.julialang.org/t/accessing-ecdfplot-from-cairomakie/74219 "2022-01-08T00:43:16Z")

</div>

I see cairomakie is moved to makie . New makie has been released, do we still need to install cairomakie separately ? I am trying to use ecdfplot and have not found a way. everytime i install cairomakie, makie version ge…

---

## [Cairo fails on 1.6 to install](https://discourse.julialang.org/t/cairo-fails-on-1-6-to-install/58086)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [March 27, 2021, 5:59pm UTC](https://discourse.julialang.org/t/cairo-fails-on-1-6-to-install/58086 "2021-03-27T17:59:48Z")

</div>

julia\> import Cairo \[ Info: Precompiling Cairo \[159f3aea-2a34-519c-b102-8c37f9878175\] ERROR: LoadError: LoadError: InitError: could not load library "/Users/vvv/.julia/artifacts/14819d58d81af1286ea71ca9ab144f64bb41f625/l…
