# Visualization

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

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

**Page:** 30

---

## [Issue of volume render with large 3D data](https://discourse.julialang.org/t/issue-of-volume-render-with-large-3d-data/103395)

<div class="topic-metadata">

**Author:** [@dora\_ho](https://discourse.julialang.org/u/dora_ho)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 6:26pm UTC](https://discourse.julialang.org/t/issue-of-volume-render-with-large-3d-data/103395 "2023-09-02T18:26:53Z")

</div>

Hi, I was trying to volume render a very large 3D data withGLMakie. However, I found this exists a limit for the volume render. This is my plotting scripts GLMakie.volume!(x, y, z, 3DArray, algorithm=:mip , absorpt…

---

## [GLMakie: Run a function when slider is released](https://discourse.julialang.org/t/glmakie-run-a-function-when-slider-is-released/103295)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 2:46pm UTC](https://discourse.julialang.org/t/glmakie-run-a-function-when-slider-is-released/103295 "2023-09-02T14:46:06Z")

</div>

Quite a simple question: Is it possible to run a function specifically when a slider is released? A way to check whether the slider is currently being dragged would suffice. I couldn’t find a way to do this.

---

## [GLMakie: plot surface and nonlinear constraints](https://discourse.julialang.org/t/glmakie-plot-surface-and-nonlinear-constraints/62619)

<div class="topic-metadata">

**Author:** [@cvanaret](https://discourse.julialang.org/u/cvanaret)\
**Replies:** 7\
**Last updated:** [August 31, 2023, 7:16am UTC](https://discourse.julialang.org/t/glmakie-plot-surface-and-nonlinear-constraints/62619 "2023-08-31T07:16:42Z")

</div>

Hi, I’m plotting the surface of a function (the objective function of an optimization problem) with this code: using GLMakie let # range x = LinRange(-2, 0.5, 51) y = LinRange(-2, 2, 51) # objective fun…

---

## [Filled contour plots in Plots.jl without contour lines and smooth interpolation (GR backend)](https://discourse.julialang.org/t/filled-contour-plots-in-plots-jl-without-contour-lines-and-smooth-interpolation-gr-backend/34796)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 40\
**Last updated:** [August 29, 2023, 7:28pm UTC](https://discourse.julialang.org/t/filled-contour-plots-in-plots-jl-without-contour-lines-and-smooth-interpolation-gr-backend/34796 "2023-08-29T19:28:48Z")

</div>

Actually, these are two questions towards Plots.jl with the GR backend in one post (hope that’s ok, I think they are related): Is it possible to create a filled contour plot (using plot(linetype=:contourf, ...) withou…

---

## [Images -- is it possible to change selected colors?](https://discourse.julialang.org/t/images-is-it-possible-to-change-selected-colors/103263)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [August 29, 2023, 3:24pm UTC](https://discourse.julialang.org/t/images-is-it-possible-to-change-selected-colors/103263 "2023-08-29T15:24:09Z")

</div>

Thanks for great presentation of Images.jl at JuliaCon 2023. I haven’t really used the package (I’m not doing much work on images), but I see that I can import raw files from several camera brands. Nice. I’m curious abo…

---

## [How to add plot icon displayed in legend to axis label?](https://discourse.julialang.org/t/how-to-add-plot-icon-displayed-in-legend-to-axis-label/103299)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 7:54pm UTC](https://discourse.julialang.org/t/how-to-add-plot-icon-displayed-in-legend-to-axis-label/103299 "2023-08-28T19:54:49Z")

</div>

Is it possible to extract the icon (line, marker, etc) displayed in a typical Legend so that I can display them in ax.xlabel and ax.ylabel? Edit: The left plot is what we usually get by using Legend (or axislegend). I …

---

## [GLMakie & Observables: Cannot update screen when observable holds reference to struct field](https://discourse.julialang.org/t/glmakie-observables-cannot-update-screen-when-observable-holds-reference-to-struct-field/102364)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 20\
**Last updated:** [August 28, 2023, 10:52am UTC](https://discourse.julialang.org/t/glmakie-observables-cannot-update-screen-when-observable-holds-reference-to-struct-field/102364 "2023-08-28T10:52:37Z")

</div>

I’m working on a simulation and was using QML before, but since it is not well maintained, I was looking into using GLMakie. I have this code snippet where I update data in a matrix from a thread, and visualize it using…

---

## [Makie - How to clear ax whenever slider value change?](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 10:31am UTC](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274 "2023-08-28T10:31:22Z")

</div>

Hello, How can I clear the ‘ax’ whenever the slider value changes? I don’t want multiple lines at the same time on the scene. The code is using GLMakie # Parameters local m = 0.0 local c = 0.0 # # Create the plot fig…

---

## [Fix \`ylims!\` so zooming affects only \`xlims!\` (Makie.jl 2D)](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 6:42pm UTC](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226 "2023-08-26T18:42:23Z")

</div>

How can fix ylims! so zooming affects only xlims! in Makie 2D? Or alternatively zoom only horizontally? I have a very long trace plot, where this would come in handy.

---

## [Single-color 3D surface plot](https://discourse.julialang.org/t/single-color-3d-surface-plot/103166)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 10\
**Last updated:** [August 25, 2023, 6:01pm UTC](https://discourse.julialang.org/t/single-color-3d-surface-plot/103166 "2023-08-25T18:01:28Z")

</div>

I’m trying to plot a 3D surface as a single, semi-transparent color. Here’s what I’ve tried: using PlotlyJS f(x, y) = 10 .\* sin.(x./5) .+ 8 .\* cos.(y./7) .+ y./30; xs = ys = 0:1:100; zs = f.(xs', ys); plot(surface(x=…

---

## [Can I use a categorical x/y variable in Makie?](https://discourse.julialang.org/t/can-i-use-a-categorical-x-y-variable-in-makie/103129)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 2\
**Last updated:** [August 23, 2023, 11:18pm UTC](https://discourse.julialang.org/t/can-i-use-a-categorical-x-y-variable-in-makie/103129 "2023-08-23T23:18:01Z")

</div>

Hi, I’d like to plot an heatmap using Makie (I don’t care about the backend). The data are stored in a 2D matrix, and the x/y dimensions are actually categorical, represented with a vector of strings. In Plots, I can do …

---

## [How can I change the fontsize of the colorbar's label in Plots.jl?](https://discourse.julialang.org/t/how-can-i-change-the-fontsize-of-the-colorbars-label-in-plots-jl/103108)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 6\
**Last updated:** [August 23, 2023, 5:55pm UTC](https://discourse.julialang.org/t/how-can-i-change-the-fontsize-of-the-colorbars-label-in-plots-jl/103108 "2023-08-23T17:55:55Z")

</div>

Hi all, I have a 2D matrix that I want to plot as an heatmap. It is quite big though (58x58), so plotting it with function pairwise\_difference(v::Vector)::Matrix \[x - y for x in v, y in v\] end measures\_vec = \[t.mea…

---

## [REPL crash from attempting a heatmap plot with a large dataset](https://discourse.julialang.org/t/repl-crash-from-attempting-a-heatmap-plot-with-a-large-dataset/103112)

<div class="topic-metadata">

**Author:** [@CosmicSpittle](https://discourse.julialang.org/u/CosmicSpittle)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 4:09pm UTC](https://discourse.julialang.org/t/repl-crash-from-attempting-a-heatmap-plot-with-a-large-dataset/103112 "2023-08-23T16:09:20Z")

</div>

I seemed to be up against a limit on the size of dataset that CairoMakie can handle. I am trying to plot a heatmap of a large spectrogram from DSP.jl. I’ve reduced the problem I’m having to a size issue. Oddly, I was …

---

## [How to debug "type Nothing has no field color"](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 4:43pm UTC](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038 "2023-08-21T16:43:15Z")

</div>

I hit the following bug: Switch on the tutorial project · Issue #8 · bradcarman/ModelingToolkitDesigner.jl · GitHub But the author of the package cannot reproduce it. How can we find the reason for this bug? Can anybod…

---

## [Why are these violin plots "clipped"?](https://discourse.julialang.org/t/why-are-these-violin-plots-clipped/103006)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 7\
**Last updated:** [August 21, 2023, 9:09am UTC](https://discourse.julialang.org/t/why-are-these-violin-plots-clipped/103006 "2023-08-21T09:09:37Z")

</div>

Hi all, I produced some violin plots from some data I have: df\_temp = DataFrame(mnemonic = df\_model\_master\[:, :mnemonic\], instruction = df\_model\_master\[:, instruction\_sym\], shift = df\_model\_master\[:, has\_barrel\_…

---

## [How can I show the mean in a groupedboxplot?](https://discourse.julialang.org/t/how-can-i-show-the-mean-in-a-groupedboxplot/102980)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 4\
**Last updated:** [August 20, 2023, 4:03pm UTC](https://discourse.julialang.org/t/how-can-i-show-the-mean-in-a-groupedboxplot/102980 "2023-08-20T16:03:16Z")

</div>

Hi all! I have this kind of DataFrame containing data: julia\> df\_filtered = filter(:mnemonic =\> m -\> m ∈ selected\_instructions, df\_temp) 1990×4 DataFrame Row │ mnemonic instruction forwarding value …

---

## [Problems with mouse manipulation in GLMakie](https://discourse.julialang.org/t/problems-with-mouse-manipulation-in-glmakie/102957)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 3\
**Last updated:** [August 20, 2023, 8:23am UTC](https://discourse.julialang.org/t/problems-with-mouse-manipulation-in-glmakie/102957 "2023-08-20T08:23:41Z")

</div>

Hi, maybe I’m simply too untalented, but I am not able to manipulate the MWMesh below with the mouse in such a way that the two colored faces are visible to the left and right. Im able to view it from all other perspect…

---

## [Change Latex font in Makie](https://discourse.julialang.org/t/change-latex-font-in-makie/72729)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 11\
**Last updated:** [August 18, 2023, 7:43am UTC](https://discourse.julialang.org/t/change-latex-font-in-makie/72729 "2023-08-18T07:43:32Z")

</div>

Hi all, Is there a way to change the font Makie uses when you want to typeset labels (etc…) in Latex? See here for a MWE: using CairoMakie, LaTeXStrings fontpath = joinpath(pwd(), "fonts", "tex-gyre", "texgyreheros-bo…

---

## [Line labels in subplot impacted by other subplots](https://discourse.julialang.org/t/line-labels-in-subplot-impacted-by-other-subplots/102924)

<div class="topic-metadata">

**Author:** [@markowkes](https://discourse.julialang.org/u/markowkes)\
**Replies:** 1\
**Last updated:** [August 17, 2023, 9:58pm UTC](https://discourse.julialang.org/t/line-labels-in-subplot-impacted-by-other-subplots/102924 "2023-08-17T21:58:54Z")

</div>

I have a plot recipe that creates a few subplots. However, the labels that are displayed in the legend are not in the correct order in some cases and I do not understand what is wrong. For example, in this MWE, the fun…

---

## [Plots weird problem plotting a piecewise function at discontinuity points](https://discourse.julialang.org/t/plots-weird-problem-plotting-a-piecewise-function-at-discontinuity-points/102811)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 13\
**Last updated:** [August 15, 2023, 7:34pm UTC](https://discourse.julialang.org/t/plots-weird-problem-plotting-a-piecewise-function-at-discontinuity-points/102811 "2023-08-15T19:34:05Z")

</div>

using Plots; g\_k =0.0:0.01:10.0; A1=1.0; A2=2.0; α=0.33; κ2 =3.0; κ̂2 = κ2 / (1.0 - ((A1/A2)^(1/α))); #3.41842 function f3p(k) if (k \< κ̂2) return α\*A1\*(k^(α - 1.0)) elseif (k \> κ̂2) return α\*A2\*(…

---

## [How to create circular color gradient plot?](https://discourse.julialang.org/t/how-to-create-circular-color-gradient-plot/102301)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 6\
**Last updated:** [August 1, 2023, 11:55am UTC](https://discourse.julialang.org/t/how-to-create-circular-color-gradient-plot/102301 "2023-08-01T11:55:57Z")

</div>

I see a lot of examples how to do it in Python, but no example how to do it in Julia Makie. What should I use, mash?

---

## [GLTF + Julia (and Makie)](https://discourse.julialang.org/t/gltf-julia-and-makie/102642)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 5:39pm UTC](https://discourse.julialang.org/t/gltf-julia-and-makie/102642 "2023-08-09T17:39:06Z")

</div>

Is anyone aware of any work out there where GLTF files are used with Julia? I’m aware of GLTF.jl which seems to be the ticket for loading the data, though its most recent commit was in 2021 which makes me a bit wary. My …

---

## [Plots in the terminal (with sixel)](https://discourse.julialang.org/t/plots-in-the-terminal-with-sixel/22503)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 50\
**Last updated:** [August 9, 2023, 4:25pm UTC](https://discourse.julialang.org/t/plots-in-the-terminal-with-sixel/22503 "2023-08-09T16:25:58Z")

</div>

I just came across “sixel” which allows to show graphics in the terminal (while reading this GitHub - csdvrx/sixel-gnuplot: GNUplot with sixel support ) Unfortunately, gnome-terminal does not support this (Bug 729204 –…

---

## [Makie - 3d plot with positive Z axis pointing down?](https://discourse.julialang.org/t/makie-3d-plot-with-positive-z-axis-pointing-down/102544)

<div class="topic-metadata">

**Author:** [@Undermine28](https://discourse.julialang.org/u/Undermine28)\
**Replies:** 6\
**Last updated:** [August 8, 2023, 6:08pm UTC](https://discourse.julialang.org/t/makie-3d-plot-with-positive-z-axis-pointing-down/102544 "2023-08-08T18:08:37Z")

</div>

I am trying to visualize an aircraft trajectory. We define the local z vector as down. I see how to do this in the 2d axis but no options to invert the Z axis in Axis3. Basically, I am hoping to have the Z-axis positiv…

---

## [Makie: Using a theme to set the margin of \`axislegend\`](https://discourse.julialang.org/t/makie-using-a-theme-to-set-the-margin-of-axislegend/102600)

<div class="topic-metadata">

**Author:** [@barucden](https://discourse.julialang.org/u/barucden)\
**Replies:** 0\
**Last updated:** [August 8, 2023, 12:33pm UTC](https://discourse.julialang.org/t/makie-using-a-theme-to-set-the-margin-of-axislegend/102600 "2023-08-08T12:33:02Z")

</div>

Hello! Consider the following code: using CairoMakie x = 1:100 y = randn(length(x)) theme = Theme( Legend=( padding=(50, 10, 10, 10), margin=(50, 50, 50, 50) ) ) with\_theme(theme) do fig…

---

## [How to increase space between axes for topo array](https://discourse.julialang.org/t/how-to-increase-space-between-axes-for-topo-array/102568)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 9:40am UTC](https://discourse.julialang.org/t/how-to-increase-space-between-axes-for-topo-array/102568 "2023-08-08T09:40:43Z")

</div>

I am creating topo array with this code: using CairoMakie using TopoPlots function topo\_array(f, times=nothing) f = Figure() times = nothing data, pos = TopoPlots.example\_data() data = data\[1:30,:,1\] pos…

---

## [Creating gifs with Makie is much slower than creating mp4s](https://discourse.julialang.org/t/creating-gifs-with-makie-is-much-slower-than-creating-mp4s/102537)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 5\
**Last updated:** [August 8, 2023, 8:50am UTC](https://discourse.julialang.org/t/creating-gifs-with-makie-is-much-slower-than-creating-mp4s/102537 "2023-08-08T08:50:06Z")

</div>

I’ve noticed that when creating relatively large movies using Makie.jl, saving them to .gif is significantly slower (several times) than saving to .mp4. I tried profiling the plotting script, and found that in both cases…

---

## [How to do context menus in Gtk4?](https://discourse.julialang.org/t/how-to-do-context-menus-in-gtk4/102569)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 7:49am UTC](https://discourse.julialang.org/t/how-to-do-context-menus-in-gtk4/102569 "2023-08-08T07:49:45Z")

</div>

Hi! After some trying I learned how to make a popup-menu over a widget (context-menu) in Gtk3. Now I’m trying to do the same in Gtk4, where all seems to have changed. The code below defines a GtkPopoverMenu from a GMen…

---

## [How can I rotate the BoxPlot with AoG?](https://discourse.julialang.org/t/how-can-i-rotate-the-boxplot-with-aog/102218)

<div class="topic-metadata">

**Author:** [@AugustoCL](https://discourse.julialang.org/u/AugustoCL)\
**Replies:** 5\
**Last updated:** [August 8, 2023, 4:24am UTC](https://discourse.julialang.org/t/how-can-i-rotate-the-boxplot-with-aog/102218 "2023-08-08T04:24:41Z")

</div>

I’m trying to reproduce the following plot using AoG customizing whatever is needed with CairoMakie properties/parameters. So, as the names are long, I need to rotate them to see better. this plot just used coord\_fli…

---

## [Simple brownian motion plot is insanely slow. How can I speed it up?](https://discourse.julialang.org/t/simple-brownian-motion-plot-is-insanely-slow-how-can-i-speed-it-up/92189)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 11\
**Last updated:** [August 7, 2023, 4:30pm UTC](https://discourse.julialang.org/t/simple-brownian-motion-plot-is-insanely-slow-how-can-i-speed-it-up/92189 "2023-08-07T16:30:33Z")

</div>

using LinearAlgebra, Plots, Distributions, Random; Δt=0.01; T\_sim=500; N\_sim = 100; time\_sim = 0.0:Δt:T\_sim ε\_sim = randn(MersenneTwister(123), N\_sim, length(time\_sim)); Z\_sim =cumsum(ε\_sim, dims=2) plt\_shock = plot(…

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

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