# Visualization

**URL:** https://discourse.julialang.org/c/domain/viz/17.md?page=35

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

**Page:** 36

---

## [How to specify colors from a colormap to use in a theme in makie?](https://discourse.julialang.org/t/how-to-specify-colors-from-a-colormap-to-use-in-a-theme-in-makie/95981)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 8\
**Last updated:** [March 13, 2023, 5:49pm UTC](https://discourse.julialang.org/t/how-to-specify-colors-from-a-colormap-to-use-in-a-theme-in-makie/95981 "2023-03-13T17:49:44Z")

</div>

Hello, I’d like to be able to specify a colormap, say Dark2, to be used as the automatic colors in the lines plot type. Reading around it seems like I should be using the theming system to do it. Unfortunately I’ve not …

---

## [How do you use \`Plots.jl\`'s \`mesh3d\` in place of matplotlib's \`plot\_trisurf\`?](https://discourse.julialang.org/t/how-do-you-use-plots-jl-s-mesh3d-in-place-of-matplotlibs-plot-trisurf/96016)

<div class="topic-metadata">

**Author:** [@tgross35](https://discourse.julialang.org/u/tgross35)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 5:39pm UTC](https://discourse.julialang.org/t/how-do-you-use-plots-jl-s-mesh3d-in-place-of-matplotlibs-plot-trisurf/96016 "2023-03-13T17:39:41Z")

</div>

Hello everyone, I’m trying to use a mesh3d as a drop in for plot\_trisurf, but am struggling to get the same functionality. The difference looks like this: plot\_trisurf(X, Y, Z) mesh3d(X, Y, Z, connections=(i, j, k)) A…

---

## [Elongated scene](https://discourse.julialang.org/t/elongated-scene/95875)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 6:01am UTC](https://discourse.julialang.org/t/elongated-scene/95875 "2023-03-13T06:01:00Z")

</div>

Why i have elongated scene with code ts, tf = 1, 9000000 idx, idy, idz = 2, 1, 3 xl, yl, zl = labels3d(idx,idy, idz) GLMakie.activate!() f = Figure(resolution = (1200, 900)) ax = LScene(f\[1, 1\]) lines!(tr\[ts:tf, idx\], …

---

## [Makie and X11 forwarding](https://discourse.julialang.org/t/makie-and-x11-forwarding/91975)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 7\
**Last updated:** [February 27, 2023, 9:46pm UTC](https://discourse.julialang.org/t/makie-and-x11-forwarding/91975 "2023-02-27T21:46:33Z")

</div>

I am developing in a remote server. I am connected to the server from my local machine via SSH. To enable X11 forwarding, I connect using the -Y option (i.e., ssh -Y). This allows me to use the GUI interface of the app…

---

## [Problem Using annotate! to add info to an animated plot but it overlaps and cannot be read](https://discourse.julialang.org/t/problem-using-annotate-to-add-info-to-an-animated-plot-but-it-overlaps-and-cannot-be-read/95935)

<div class="topic-metadata">

**Author:** [@J\_Braulio\_Ramz\_G](https://discourse.julialang.org/u/J_Braulio_Ramz_G)\
**Replies:** 1\
**Last updated:** [March 11, 2023, 9:05pm UTC](https://discourse.julialang.org/t/problem-using-annotate-to-add-info-to-an-animated-plot-but-it-overlaps-and-cannot-be-read/95935 "2023-03-11T21:05:39Z")

</div>

Hi I am triying to use !annotate() to add text info like current iteration, aproximation and relative error to an animation of Newton-Raphson method but the previous info is accumulating in the new frames and overlaps.…

---

## [Light position for 3D surface plots with bands](https://discourse.julialang.org/t/light-position-for-3d-surface-plots-with-bands/95823)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 4:57am UTC](https://discourse.julialang.org/t/light-position-for-3d-surface-plots-with-bands/95823 "2023-03-10T04:57:10Z")

</div>

I tried following the example in this tutorial to create a 3D surface plot with a ‘side band’: using GLMakie; GLMakie.activate!() # v.0.8.2 cmap = Reverse(:Spectral\_4) lightpos1 = Vec3f(4, -5, 5) set\_theme!() update…

---

## [How to make a contour plot from a parametric surface in Makie?](https://discourse.julialang.org/t/how-to-make-a-contour-plot-from-a-parametric-surface-in-makie/95818)

<div class="topic-metadata">

**Author:** [@leogabac](https://discourse.julialang.org/u/leogabac)\
**Replies:** 1\
**Last updated:** [March 9, 2023, 7:14pm UTC](https://discourse.julialang.org/t/how-to-make-a-contour-plot-from-a-parametric-surface-in-makie/95818 "2023-03-09T19:14:40Z")

</div>

Hello! Recently for a project I was wondering if there is any way to visualize the contour plot of a parametric surface in Makie. Typically, if I have the explicit expression f(x,y), I can just evaluate in a domain and …

---

## [Boxplot in AoG acting weirdly](https://discourse.julialang.org/t/boxplot-in-aog-acting-weirdly/95714)

<div class="topic-metadata">

**Author:** [@chongkaing](https://discourse.julialang.org/u/chongkaing)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 5:36am UTC](https://discourse.julialang.org/t/boxplot-in-aog-acting-weirdly/95714 "2023-03-08T05:36:54Z")

</div>

Hi all. I am currently using AlgebraOfGraphics (with CairoMakie backend). Was running thru the PalmerPenguin data set and was trying to plot and I ran into a problem. I have removed all missing entries prior to plottin…

---

## [Groupedbar plotting not as expected](https://discourse.julialang.org/t/groupedbar-plotting-not-as-expected/95545)

<div class="topic-metadata">

**Author:** [@dasavy](https://discourse.julialang.org/u/dasavy)\
**Replies:** 4\
**Last updated:** [March 8, 2023, 11:35am UTC](https://discourse.julialang.org/t/groupedbar-plotting-not-as-expected/95545 "2023-03-08T11:35:11Z")

</div>

I have no idea why N=8 is going to the far right and isn’t on the far left. Please let me know if anyone knows what’s happening here

---

## [Makie alternating backends per plot](https://discourse.julialang.org/t/makie-alternating-backends-per-plot/95496)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 4\
**Last updated:** [March 8, 2023, 11:11am UTC](https://discourse.julialang.org/t/makie-alternating-backends-per-plot/95496 "2023-03-08T11:11:36Z")

</div>

Is there a way to specify a makie backend per Figure ? I know about {WGL,Cairo,GL}Makie.activate!() but that’s operating in a global fashion and it’s hard to operate/synchronize (especially for Pluto notebooks). What I…

---

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

---

## [Stacked Plots (lines) Help](https://discourse.julialang.org/t/stacked-plots-lines-help/95576)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 7\
**Last updated:** [March 7, 2023, 12:23pm UTC](https://discourse.julialang.org/t/stacked-plots-lines-help/95576 "2023-03-07T12:23:26Z")

</div>

Hi all! I’m trying to make a stacked plot from the Data Below when I plot using the regular plot function, i got the correct values/positions, but i need then stacked. Using areaplot instead of plot is not working as e…

---

## [Controlling gaps between Axis3 areas in Makie](https://discourse.julialang.org/t/controlling-gaps-between-axis3-areas-in-makie/95643)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 6:26am UTC](https://discourse.julialang.org/t/controlling-gaps-between-axis3-areas-in-makie/95643 "2023-03-07T06:26:17Z")

</div>

I am trying to show xy-, xz-, yz-views of a 3D object using Makie. Here is the code to set up three panels for the views: using CairoMakie fig = Figure(resolution=(1500,1500)) fig\[1,1\] = Axis3(fig, aspect=:data, viewm…

---

## [GRUtils - Surface color and transparency](https://discourse.julialang.org/t/grutils-surface-color-and-transparency/95617)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 2:57pm UTC](https://discourse.julialang.org/t/grutils-surface-color-and-transparency/95617 "2023-03-06T14:57:56Z")

</div>

Hi all, I don’t figure out how to set the color of a surface as well as its transparency with GRUtils.jl. Here is a MWE: using GRUtils x = LinRange(0., 100., 100) y = ones(50) vl = LinRange(0., 1., 50) v = repeat(vl'…

---

## [Continuously plot to the same window on the fly](https://discourse.julialang.org/t/continuously-plot-to-the-same-window-on-the-fly/95498)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 2\
**Last updated:** [March 3, 2023, 9:08pm UTC](https://discourse.julialang.org/t/continuously-plot-to-the-same-window-on-the-fly/95498 "2023-03-03T21:08:08Z")

</div>

I have for loop which runs some computation. For debugging, I want to see the output “real-time”. One possible way to do that is continuously plotting add points to the same graph. using Gaston plot(something) for iter=…

---

## [How to create a series of interactive plots using GLMakie?](https://discourse.julialang.org/t/how-to-create-a-series-of-interactive-plots-using-glmakie/95412)

<div class="topic-metadata">

**Author:** [@albrightand](https://discourse.julialang.org/u/albrightand)\
**Replies:** 1\
**Last updated:** [March 2, 2023, 4:49pm UTC](https://discourse.julialang.org/t/how-to-create-a-series-of-interactive-plots-using-glmakie/95412 "2023-03-02T16:49:10Z")

</div>

I need to make an interactive plot that takes mouse clicks on an image plot as input. There will be a series of plots with an image on top and a ‘Done’ button at the bottom. The program should plot each image in its own …

---

## [Broken range](https://discourse.julialang.org/t/broken-range/95347)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 17\
**Last updated:** [March 1, 2023, 9:21pm UTC](https://discourse.julialang.org/t/broken-range/95347 "2023-03-01T21:21:19Z")

</div>

Hello, i try plot next graphic for range The problem is that the picture looks too discrete. I built it with a modified range and it looked smoother. Why is that? I0range = range( -1.509460, -1.509490, length = 5000 ) …

---

## [Can I specify color of each rectangle in Makie.jl's heatmap?](https://discourse.julialang.org/t/can-i-specify-color-of-each-rectangle-in-makie-jls-heatmap/95314)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [March 1, 2023, 10:33am UTC](https://discourse.julialang.org/t/can-i-specify-color-of-each-rectangle-in-makie-jls-heatmap/95314 "2023-03-01T10:33:22Z")

</div>

Hi all, I would like to plot a 2d map in Makie, where I can specify exactly a color in each rectangle. Something like a heatmap, where the color would be prescribed and not taken from a colormap. I have tried to fudge t…

---

## [How to change default color theme in Makie?](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 3:54pm UTC](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251 "2023-02-28T15:54:44Z")

</div>

:frowning: tried belows, but no one works. using CairoMakie, LaTeXStrings set\_theme!(color = :blue) set\_theme!(colors = :darktest) set\_theme!(colormap = :Hiroshige) # https://docs.makie.org/stable/api/index.html#Makie …

---

## [Offline HTML plot](https://discourse.julialang.org/t/offline-html-plot/93609)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 8:05am UTC](https://discourse.julialang.org/t/offline-html-plot/93609 "2023-02-28T08:05:36Z")

</div>

Interactive HTML-plots are one of the nice features of plotly / plotlyJS but the standard HTML-output does not include a script tag containing the plotly.js source code (~3MB). In python this can be achieved via: fig.wr…

---

## [Plotting multiple equal-sized heatmaps from 3D array](https://discourse.julialang.org/t/plotting-multiple-equal-sized-heatmaps-from-3d-array/94973)

<div class="topic-metadata">

**Author:** [@apateonas](https://discourse.julialang.org/u/apateonas)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 1:14am UTC](https://discourse.julialang.org/t/plotting-multiple-equal-sized-heatmaps-from-3d-array/94973 "2023-02-27T01:14:02Z")

</div>

H all, I have a 3D array I would like to visualize as a series of heatmaps, one for each slice. I would like each heatmap to be a square. I am having trouble with sizing the subplots. I do not know ahead of time how lar…

---

## [Not showing output on Jupyter notebook when using PyCall.jl + python's bokeh combination](https://discourse.julialang.org/t/not-showing-output-on-jupyter-notebook-when-using-pycall-jl-pythons-bokeh-combination/95121)

<div class="topic-metadata">

**Author:** [@YH\_Ko](https://discourse.julialang.org/u/YH_Ko)\
**Replies:** 0\
**Last updated:** [February 24, 2023, 10:42am UTC](https://discourse.julialang.org/t/not-showing-output-on-jupyter-notebook-when-using-pycall-jl-pythons-bokeh-combination/95121 "2023-02-24T10:42:17Z")

</div>

When using Bokeh.jl, the output interactive plot is shown in out cell of Jupyter notebook with no error. (I tried the following Bokeh.jl example) https://cjdoris.github.io/Bokeh.jl/stable/gallery/Basic/les\_mis/#demo\_le…

---

## [Simplified way to save high-res plots in julia](https://discourse.julialang.org/t/simplified-way-to-save-high-res-plots-in-julia/95061)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 8:14pm UTC](https://discourse.julialang.org/t/simplified-way-to-save-high-res-plots-in-julia/95061 "2023-02-23T20:14:30Z")

</div>

I’m using jupyter notebooks and the julia plots look pretty decent in those notebook files. however, when I use savefig command, it saves it in a terrible resolution (almost indiscernible.) One way of circumventing this…

---

## [Drop values near zero in contour fill plot for Makie](https://discourse.julialang.org/t/drop-values-near-zero-in-contour-fill-plot-for-makie/95050)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 5:16pm UTC](https://discourse.julialang.org/t/drop-values-near-zero-in-contour-fill-plot-for-makie/95050 "2023-02-23T17:16:55Z")

</div>

I’m trying to plot some data using a contour plot in Makie. My data has both negative and positive peaks. Near zero, there is a lot of noise. I want to highlight just the main peaks and valleys and I’d like anything near…

---

## [Makie Legend overdrawn by Axis3 Tick Labels](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 3:36pm UTC](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083 "2023-02-23T15:36:44Z")

</div>

Axis3 tick labels overdraw the legend as shown here. using CairoMakie fig = Figure() ax = fig\[1, 1\] = Axis3(fig) for nn=1:5 scatter!(randn(10),randn(10),randn(10), label="$nn") end axislegend(ax, position=:rb) fig …

---

## [Plot the camera field of view in Makie?](https://discourse.julialang.org/t/plot-the-camera-field-of-view-in-makie/95036)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 9:21am UTC](https://discourse.julialang.org/t/plot-the-camera-field-of-view-in-makie/95036 "2023-02-23T09:21:12Z")

</div>

There is probably a way to achieve this using camera properties, but how could the field of view of the current camera be displayed onto another scene in Makie ? In terms of rendering, one could expect something like …

---

## [How can I set the default font in Makie?](https://discourse.julialang.org/t/how-can-i-set-the-default-font-in-makie/95003)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 8\
**Last updated:** [February 23, 2023, 1:16am UTC](https://discourse.julialang.org/t/how-can-i-set-the-default-font-in-makie/95003 "2023-02-23T01:16:21Z")

</div>

Main question Hi, I am new to Makie.jl for publication-quality vector graphics. I had tried below tutorial but I don’t get how set\_theme! function works. https://docs.makie.org/stable/documentation/theming/index.html#th…

---

## [Adjusting scales for size automatically in GLMakie](https://discourse.julialang.org/t/adjusting-scales-for-size-automatically-in-glmakie/94997)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 6:17am UTC](https://discourse.julialang.org/t/adjusting-scales-for-size-automatically-in-glmakie/94997 "2023-02-22T06:17:42Z")

</div>

I have my own custom theme for figures used in publication, and usually I set all the default sizes (e.g. fontsize, linewidth, etc) assuming the figure has a specific figure width since that is usually the fixed by the j…

---

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

---

## [GLMakie change SliderGrid on Menu](https://discourse.julialang.org/t/glmakie-change-slidergrid-on-menu/94914)

<div class="topic-metadata">

**Author:** [@vandenman](https://discourse.julialang.org/u/vandenman)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 9:35am UTC](https://discourse.julialang.org/t/glmakie-change-slidergrid-on-menu/94914 "2023-02-21T09:35:01Z")

</div>

I’m trying to create a small interactive plot/ dashboard to showcase different network models during a presentation. My goal is to have a menu in the top left to select a model, a series of sliders below it to adjust the…

[Previous page](https://discourse.julialang.org/c/domain/viz/17.md?page=34)

[Next page](https://discourse.julialang.org/c/domain/viz/17.md?page=36)
