# Visualization

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

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

**Page:** 13

---

## [How do I make a Makie animation appear in a VSCode plotting window?](https://discourse.julialang.org/t/how-do-i-make-a-makie-animation-appear-in-a-vscode-plotting-window/91150)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 7\
**Last updated:** [November 12, 2024, 4:41pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-animation-appear-in-a-vscode-plotting-window/91150 "2024-11-12T16:41:06Z")

</div>

I have some code (copied from the Makie website) to make an animation: using GLMakie time = Observable(0.0) xs = range(0, 7, length=40) ys\_1 = @lift(sin.(xs .- $time)) ys\_2 = @lift(cos.(xs .- $time) .+ 3) fig = lines…

---

## [Change colorbar position and decimal points in the legend (Plots.jl with gr)](https://discourse.julialang.org/t/change-colorbar-position-and-decimal-points-in-the-legend-plots-jl-with-gr/122471)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 9:23pm UTC](https://discourse.julialang.org/t/change-colorbar-position-and-decimal-points-in-the-legend-plots-jl-with-gr/122471 "2024-11-11T21:23:16Z")

</div>

Hi all, I’m trying to create a heatmap using Plots.jl with the following: heatmap( p1\_range, p2\_range, log\_sse\_grid', c=:viridis, xlabel=xlabel, ylabel=ylabel, …

---

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

---

## [Animations with multiple procs/threads](https://discourse.julialang.org/t/animations-with-multiple-procs-threads/122418)

<div class="topic-metadata">

**Author:** [@JWRSTZ](https://discourse.julialang.org/u/JWRSTZ)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 1:18pm UTC](https://discourse.julialang.org/t/animations-with-multiple-procs-threads/122418 "2024-11-08T13:18:35Z")

</div>

Hello everyone, I am currently using Julia Plots in order to make some animations of my plots, I’m using the @animate macro for this. Unfortunately it seems like the animation routine is not multithreadable, running the…

---

## [Plots.jl: Plotting a graph such that it has multiple possible values corresponding to a single x value](https://discourse.julialang.org/t/plots-jl-plotting-a-graph-such-that-it-has-multiple-possible-values-corresponding-to-a-single-x-value/122408)

<div class="topic-metadata">

**Author:** [@GiovanniPaiela](https://discourse.julialang.org/u/GiovanniPaiela)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 9:21am UTC](https://discourse.julialang.org/t/plots-jl-plotting-a-graph-such-that-it-has-multiple-possible-values-corresponding-to-a-single-x-value/122408 "2024-11-08T09:21:58Z")

</div>

Say that I have an x and y dimensions. The value of y however, can have 2 possible values for a single x. How would one go about plotting such thing? So far I have tried defining y as an array of 2-element tuples and pl…

---

## [Number of plots in makie Axis object](https://discourse.julialang.org/t/number-of-plots-in-makie-axis-object/122337)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 3\
**Last updated:** [November 8, 2024, 5:47am UTC](https://discourse.julialang.org/t/number-of-plots-in-makie-axis-object/122337 "2024-11-08T05:47:29Z")

</div>

Using makie, if we type the name of an Axis object in the repl, we get something like: Axis with 2 plots: ┣━ Scatter{Tuple{Vector{Point{2, Float64}}}} ┗━ Lines{Tuple{Vector{Point{2, Float64}}}} Is there a way to get …

---

## [Many subplots with one sublot consisting of a secondary y axis](https://discourse.julialang.org/t/many-subplots-with-one-sublot-consisting-of-a-secondary-y-axis/120827)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 3:30am UTC](https://discourse.julialang.org/t/many-subplots-with-one-sublot-consisting-of-a-secondary-y-axis/120827 "2024-11-07T03:30:03Z")

</div>

I was trying to extend the following example to incude more subplots I want to create subplots in which one subplot has a secondary y-axis. Everything works fine in the 2 sub plot case. my\_plot = PlotlyJS.make\_subplot…

---

## [Legend covers the yaxis](https://discourse.julialang.org/t/legend-covers-the-yaxis/122334)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 1:23am UTC](https://discourse.julialang.org/t/legend-covers-the-yaxis/122334 "2024-11-07T01:23:53Z")

</div>

using Plots plotlyjs() plot!( M2, x\_台湾, 货币\_台湾.M2./货币\_台湾.全體銀行放款餘額, label = "M2/全体银行放款余额", fg\_legend = :transparent, legend = :bottomleft, tickfontsize = 11, xticks = xt…

---

## [Interactive video player in Makie](https://discourse.julialang.org/t/interactive-video-player-in-makie/97105)

<div class="topic-metadata">

**Author:** [@pzabka](https://discourse.julialang.org/u/pzabka)\
**Replies:** 2\
**Last updated:** [November 5, 2024, 10:01pm UTC](https://discourse.julialang.org/t/interactive-video-player-in-makie/97105 "2024-11-05T22:01:09Z")

</div>

For anyone interested, here is my attempt on a simple interactive video player in Makie: using GLMakie using VideoIO """ videoplayer(fig, vid; totalframes) Create videoplayer providing totalframes makes it start f…

---

## [Bonito method to get URL within App](https://discourse.julialang.org/t/bonito-method-to-get-url-within-app/122289)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 4\
**Last updated:** [November 5, 2024, 3:28pm UTC](https://discourse.julialang.org/t/bonito-method-to-get-url-within-app/122289 "2024-11-05T15:28:49Z")

</div>

currently i’m piecing the URL together from the Session argument as follows, but it’d be nice if there were an exported public way to do this. or did i miss it? App() do session::Session server = session.connect…

---

## [Makie - How do I calculate the pixel length of a formatted string?](https://discourse.julialang.org/t/makie-how-do-i-calculate-the-pixel-length-of-a-formatted-string/122182)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 4\
**Last updated:** [November 3, 2024, 4:59pm UTC](https://discourse.julialang.org/t/makie-how-do-i-calculate-the-pixel-length-of-a-formatted-string/122182 "2024-11-03T16:59:38Z")

</div>

It seems like the best way is to render the text somewhere and then get the size of the rendered object. I’ve chosen Makie for this, but am open to alternatives. The best I’ve managed is this code, but the width is Auto(…

---

## [CairoMakie - Controlling radial axes in polar plots](https://discourse.julialang.org/t/cairomakie-controlling-radial-axes-in-polar-plots/122008)

<div class="topic-metadata">

**Author:** [@togo59](https://discourse.julialang.org/u/togo59)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 5:37pm UTC](https://discourse.julialang.org/t/cairomakie-controlling-radial-axes-in-polar-plots/122008 "2024-10-31T17:37:42Z")

</div>

I can’t quite fathom the logic CM uses for the radial axes interval for polar plots. The default seems to be 45 degrees, but if (say) the thetalimits = (-pi/6 to +pi/6), the axes are at 10 degree intervals. In the docume…

---

## [Change mesh color in Plots.jl?](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [October 31, 2024, 5:10pm UTC](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625 "2024-10-31T17:10:13Z")

</div>

I am trying to get a hold on Plots.jl capability to plot meshes. The mesh3d seems to be the good choice for that. With the following example, I manage to plot a uniformly colored mesh with the plotlyjs backed. using Pl…

---

## [Bizarre behaviour of WGLMakie](https://discourse.julialang.org/t/bizarre-behaviour-of-wglmakie/122021)

<div class="topic-metadata">

**Author:** [@adhalanay](https://discourse.julialang.org/u/adhalanay)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 9:43pm UTC](https://discourse.julialang.org/t/bizarre-behaviour-of-wglmakie/122021 "2024-10-30T21:43:52Z")

</div>

I am trying to create an interactive plot to be shown in jupyterlab. The content of the cell is using WGLMakie using Bonito x0=0.01 fig=Figure() ax=Axis(fig\[1,1\]) slr=WGLMakie.SliderGrid(fig\[2, 1\], (label="r",rang…

---

## [Makie Observable Bug](https://discourse.julialang.org/t/makie-observable-bug/121724)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [October 29, 2024, 9:27pm UTC](https://discourse.julialang.org/t/makie-observable-bug/121724 "2024-10-29T21:27:07Z")

</div>

I can’t figure out how to squash this. I’ve never had this problem before when using Observables and Makie. What’s the secret. For a surface plot, when I update the x-vector and change its size, and update the Z vecto…

---

## [Plots.jl - Plot groups of data on different subplots](https://discourse.julialang.org/t/plots-jl-plot-groups-of-data-on-different-subplots/74477)

<div class="topic-metadata">

**Author:** [@cripcate](https://discourse.julialang.org/u/cripcate)\
**Replies:** 8\
**Last updated:** [October 28, 2024, 8:47am UTC](https://discourse.julialang.org/t/plots-jl-plot-groups-of-data-on-different-subplots/74477 "2024-10-28T08:47:14Z")

</div>

Consider this sample data: using DataFrames, Plots, Random sample\_data = DataFrame(\[rand(10), sample(\['A', 'B', 'C'\], 10)\], \["value", "group"\]) 10×2 DataFrame Row │ value group │ Float64 Char ─────┼────…

---

## [Makie control heatmaps of volumeslices](https://discourse.julialang.org/t/makie-control-heatmaps-of-volumeslices/121696)

<div class="topic-metadata">

**Author:** [@trasor](https://discourse.julialang.org/u/trasor)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 6:43am UTC](https://discourse.julialang.org/t/makie-control-heatmaps-of-volumeslices/121696 "2024-10-25T06:43:36Z")

</div>

Hello everyone. I try to use Makie to plot heatmap slices though a volume with their volumeslices functionality: volumeslices | Makie However, i am unable to control the positions or the numbers of the slices: using C…

---

## [How to put gif or mp4 file in Literate documentation page?](https://discourse.julialang.org/t/how-to-put-gif-or-mp4-file-in-literate-documentation-page/121468)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 9:31am UTC](https://discourse.julialang.org/t/how-to-put-gif-or-mp4-file-in-literate-documentation-page/121468 "2024-10-24T09:31:12Z")

</div>

I want to attach gif or mp4 file on documentation page. My code is: # \`\`\`@raw html # \<video autoplay loop muted playsinline controls src="../../../assets/topoplot\_animation\_UM.gif" /\> # \`\`\` This is the page deployed: B…

---

## [Updated instructions for Makie + Pluto](https://discourse.julialang.org/t/updated-instructions-for-makie-pluto/62531)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [October 22, 2024, 7:24pm UTC](https://discourse.julialang.org/t/updated-instructions-for-makie-pluto/62531 "2024-10-22T19:24:23Z")

</div>

What are the most up to date instructions to visualize WGLMakie scenes inside a Pluto notebook?

---

## [Interactive change of mesh plot](https://discourse.julialang.org/t/interactive-change-of-mesh-plot/121435)

<div class="topic-metadata">

**Author:** [@IvanSpirandelli](https://discourse.julialang.org/u/IvanSpirandelli)\
**Replies:** 3\
**Last updated:** [October 21, 2024, 10:33pm UTC](https://discourse.julialang.org/t/interactive-change-of-mesh-plot/121435 "2024-10-21T22:33:01Z")

</div>

I have a situation in which I have vector with mesh data, a Vector{Tuple{Vector{Point{3, Float32}}, Matrix{Int64}, Vector{Float64}}} containing vertices, faces and colors for a sequence of meshes I’d like to plot inter…

---

## [Record animation to mp4 with WGLMakie](https://discourse.julialang.org/t/record-animation-to-mp4-with-wglmakie/121508)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 6:41am UTC](https://discourse.julialang.org/t/record-animation-to-mp4-with-wglmakie/121508 "2024-10-21T06:41:11Z")

</div>

I have a )I think) very simple problem, that I have tried to find a solution for for a long time today. I always run into the same error message no matter what. I am in a Pluto notebook and I am using WGLMakie for plots…

---

## [What this error in Observable means? Error showing value of type Figure: ERROR: MethodError: no method matching native\_type(::WGLMakie.WebGL, ::Type{RGBA{Float32}})](https://discourse.julialang.org/t/what-this-error-in-observable-means-error-showing-value-of-type-figure-error-methoderror-no-method-matching-native-type-wglmakie-webgl-type-rgba-float32/121420)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 12:46pm UTC](https://discourse.julialang.org/t/what-this-error-in-observable-means-error-showing-value-of-type-figure-error-methoderror-no-method-matching-native-type-wglmakie-webgl-type-rgba-float32/121420 "2024-10-17T12:46:50Z")

</div>

I work with WGLMakie and Observables and stumbled on this error. I had perfectly working function but suddenly I started to get this error. It is very long and it even do not show at which line of my code is the prob…

---

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

---

## [Makie: how to superpose figure on top of other figures?](https://discourse.julialang.org/t/makie-how-to-superpose-figure-on-top-of-other-figures/121374)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 12:13pm UTC](https://discourse.julialang.org/t/makie-how-to-superpose-figure-on-top-of-other-figures/121374 "2024-10-16T12:13:10Z")

</div>

I would like to plot a Legend figure on top of other figures, but the axis’ of the background figures emerges on top. How can I translate! the Legend figure to come out on top of everything ? E.g. let fig = Figure() …

---

## [Radar plot in Plots.jl or Makie.jl?](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 10\
**Last updated:** [October 13, 2024, 4:45am UTC](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576 "2024-10-13T04:45:10Z")

</div>

Is there a simple way to make a radar plot (like a polar plot but categorical) using Plots.jl or Makie.jl ? I can see these should be possible with a package named ECharts, but it doesn’t support VSCode and seems a bit …

---

## [Makie observable lift functions](https://discourse.julialang.org/t/makie-observable-lift-functions/121202)

<div class="topic-metadata">

**Author:** [@Andy2K11](https://discourse.julialang.org/u/Andy2K11)\
**Replies:** 5\
**Last updated:** [October 12, 2024, 6:37am UTC](https://discourse.julialang.org/t/makie-observable-lift-functions/121202 "2024-10-12T06:37:57Z")

</div>

Hi. I’ve been trying to learn how to use observables in Makie and have managed to make an interactive plot with an IntervalSlider. The xaxis ticks are controlled with a lift function: xticks = lift(ab\_slider.inte…

---

## [How to clear a plot from a scene with other elements in GLMakie](https://discourse.julialang.org/t/how-to-clear-a-plot-from-a-scene-with-other-elements-in-glmakie/121164)

<div class="topic-metadata">

**Author:** [@Emerson\_Vitor\_Castel](https://discourse.julialang.org/u/Emerson_Vitor_Castel)\
**Replies:** 4\
**Last updated:** [October 12, 2024, 1:09am UTC](https://discourse.julialang.org/t/how-to-clear-a-plot-from-a-scene-with-other-elements-in-glmakie/121164 "2024-10-12T01:09:01Z")

</div>

Well, I’m new to using GLMakie. I wrote a script where I want to capture mouse events and plot the points using the scatter! function. In this same scene, I would like to insert a button with the ability to clear the poi…

---

## [Makie - scene transformation not persisting](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 7:12pm UTC](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157 "2024-10-10T19:12:22Z")

</div>

I’ve been trying to use transformation so I can change one property of an Axis3 without rotating all the content individually. I have this function: function rotate\_axis(ax::Axis3) ax.scene.transformation.rotation\[…

---

## [How to make poly prettier in Makie and Geomakie?](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 4:31pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146 "2024-10-10T16:31:55Z")

</div>

Hello, I made this map of Germany using geometric data for polygons that draw its districts. Then on top I plotted a pipeline network with arrows and scatter points. In that order. However, the result is quite ugly be…

---

## [Streamplots added to Plots.jl?](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 6:16pm UTC](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116 "2024-10-09T18:16:47Z")

</div>

I found this thread from a few years ago on streamplots: Anyone know if this feature has since been added? No hate to makie, its a great library, just would prefer to use a single plotting library if possible.

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

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