# Visualization

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

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

**Page:** 14

---

## [Center Axis in Plot](https://discourse.julialang.org/t/center-axis-in-plot/121015)

<div class="topic-metadata">

**Author:** [@jamesmulhern](https://discourse.julialang.org/u/jamesmulhern)\
**Replies:** 4\
**Last updated:** [October 8, 2024, 9:04am UTC](https://discourse.julialang.org/t/center-axis-in-plot/121015 "2024-10-08T09:04:59Z")

</div>

Does anyone know how to center the axis window when using Plots.jl and the default backend (GR?) I have been working though all of the attributes and I cannot get it to have equal margins on both sides. I have set marg…

---

## [Cannot save plots](https://discourse.julialang.org/t/cannot-save-plots/121009)

<div class="topic-metadata">

**Author:** [@brandonlivio](https://discourse.julialang.org/u/brandonlivio)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 7:40am UTC](https://discourse.julialang.org/t/cannot-save-plots/121009 "2024-10-08T07:40:15Z")

</div>

I cannot save a plot on Julia. The following code using Plots plot(1:10) savefig("test.png") returns GKS: dlopen(/Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so, 1): Li…

---

## [How do i format my vector function correct for ploting with quiver?](https://discourse.julialang.org/t/how-do-i-format-my-vector-function-correct-for-ploting-with-quiver/121019)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 5:54pm UTC](https://discourse.julialang.org/t/how-do-i-format-my-vector-function-correct-for-ploting-with-quiver/121019 "2024-10-07T17:54:31Z")

</div>

Hi. I have the following function I what to make a vector plot of: I have: using Plots using LinearAlgebra L=0.1 s=\[0 -L/2\] e=\[0 L/2\] l=e-s function GDA(x,y) if 0==x && 0==y return 0.0 end ra=\[x y\]-s rb=\[x y\]…

---

## [Makie recipe with multiple axes](https://discourse.julialang.org/t/makie-recipe-with-multiple-axes/121013)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 4:13pm UTC](https://discourse.julialang.org/t/makie-recipe-with-multiple-axes/121013 "2024-10-07T16:13:15Z")

</div>

Is it currently possible to define a recipe with multiple axes in Makie.jl? Say I have a full recipe called MyPlot that acts on a type T, I want the call myplot(obj::T) to return a figure with 2x2 grid layout filled with…

---

## [Colour next to the label in the legend of a mesh3d in Plots.jl](https://discourse.julialang.org/t/colour-next-to-the-label-in-the-legend-of-a-mesh3d-in-plots-jl/120896)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 9:33am UTC](https://discourse.julialang.org/t/colour-next-to-the-label-in-the-legend-of-a-mesh3d-in-plots-jl/120896 "2024-10-04T09:33:15Z")

</div>

Why the colour of the surfaces does not appear next to the text label in the legend box when I use the code below ? How to have it appear ? x = \[0, 0, 0, 0, 1, 1, 1, 1\] y = \[0, 0, 1, 1, 0, 0, 1, 1\] z = \[0, 1, 0, 1, 0…

---

## [Makie - can I exclude some plots from automatic axis limit calculation?](https://discourse.julialang.org/t/makie-can-i-exclude-some-plots-from-automatic-axis-limit-calculation/120870)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 1\
**Last updated:** [October 3, 2024, 8:56pm UTC](https://discourse.julialang.org/t/makie-can-i-exclude-some-plots-from-automatic-axis-limit-calculation/120870 "2024-10-03T20:56:55Z")

</div>

When plotting multiple plots into an Axis in Makie, is it possible to exclude some of them from being accounted for when automatic axis limit calculation is performed? Something like fig = Figure() ax = Axis(fig\[1,1\]) …

---

## [CuArray + GLMakie](https://discourse.julialang.org/t/cuarray-glmakie/52461)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 14\
**Last updated:** [October 3, 2024, 8:55am UTC](https://discourse.julialang.org/t/cuarray-glmakie/52461 "2024-10-03T08:55:57Z")

</div>

Hi, I wonder if it would make sense (from the performance point of view) to be able to use GLMakie.jl with CuArrays from CUDA.jl ?

---

## [Quiver plots with PlotlyJS](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 6\
**Last updated:** [September 30, 2024, 3:50pm UTC](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695 "2024-09-30T15:50:57Z")

</div>

Hi. I am using a code written by @empet here to produce a quiver plot using PlotlyJS. It works very well if the ranges of the two variables are the same (in a system of differential equations). For example, the code belo…

---

## [Having a hard time with Makie Recipes](https://discourse.julialang.org/t/having-a-hard-time-with-makie-recipes/119978)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 7\
**Last updated:** [September 28, 2024, 1:45pm UTC](https://discourse.julialang.org/t/having-a-hard-time-with-makie-recipes/119978 "2024-09-28T13:45:27Z")

</div>

Current Struggle I am currently building an extension for both Makie.jl and Plots.jl. While I have managed to get it working in Plots.jl, I have not had the same pleasant experience with Makie. I keep coming back to it a…

---

## [Bonito slider emit event if mousedrag stops](https://discourse.julialang.org/t/bonito-slider-emit-event-if-mousedrag-stops/119897)

<div class="topic-metadata">

**Author:** [@baxmittens](https://discourse.julialang.org/u/baxmittens)\
**Replies:** 0\
**Last updated:** [September 26, 2024, 8:09am UTC](https://discourse.julialang.org/t/bonito-slider-emit-event-if-mousedrag-stops/119897 "2024-09-26T08:09:32Z")

</div>

Hi there, I want something like this: using Bonito using WGLMakie import Bonito.TailwindDashboard as D app = App() do session::Session sliders = \[Bonito.Slider(-1:.1:1, value=0.0) for i = 1:6\] vals = map!(Observable…

---

## [How to add a manually created legend inside the axis?](https://discourse.julialang.org/t/how-to-add-a-manually-created-legend-inside-the-axis/119893)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 5\
**Last updated:** [September 26, 2024, 5:56am UTC](https://discourse.julialang.org/t/how-to-add-a-manually-created-legend-inside-the-axis/119893 "2024-09-26T05:56:27Z")

</div>

using CairoMakie f = Figure() Axis(f\[1, 1\]) elem\_1 = \[LineElement(color = :red, linestyle = nothing), MarkerElement(color = :blue, marker = 'x', markersize = 15, strokecolor = :black)\] elem\_2 = \[P…

---

## [Basinattractionfor4D](https://discourse.julialang.org/t/basinattractionfor4d/119793)

<div class="topic-metadata">

**Author:** [@Sarbast\_Hussein\_Mika](https://discourse.julialang.org/u/Sarbast_Hussein_Mika)\
**Replies:** 3\
**Last updated:** [September 25, 2024, 7:59pm UTC](https://discourse.julialang.org/t/basinattractionfor4d/119793 "2024-09-25T19:59:28Z")

</div>

Hello everyone Is there any code for Basin attraction for 4D nonliner differential system with line equilibrium? To classify regions Chaotic Periodic Line equilibrium Hope someone could help me in this regards

---

## [Change color of 'walls' in Axis3 in Makie](https://discourse.julialang.org/t/change-color-of-walls-in-axis3-in-makie/119882)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 2\
**Last updated:** [September 25, 2024, 6:47pm UTC](https://discourse.julialang.org/t/change-color-of-walls-in-axis3-in-makie/119882 "2024-09-25T18:47:16Z")

</div>

Using Makie, I want to group some subfigures together with colored boxes as described here: How to draw boxes around subfigures | Makie. However, some of the subfigures are 3d plots, and the ‘walls’ and ‘floor’ of the Ax…

---

## [Accessing remote server data locally for 3D plotting purposes](https://discourse.julialang.org/t/accessing-remote-server-data-locally-for-3d-plotting-purposes/119853)

<div class="topic-metadata">

**Author:** [@Gavin\_Held](https://discourse.julialang.org/u/Gavin_Held)\
**Replies:** 2\
**Last updated:** [September 25, 2024, 11:35am UTC](https://discourse.julialang.org/t/accessing-remote-server-data-locally-for-3d-plotting-purposes/119853 "2024-09-25T11:35:50Z")

</div>

Hello, I work with large simulation data, on the order of 100s GB- 1TB, through a remote server. The clusters on which I run and store data do not play well with GLMakie/3D plotting as the login nodes do not have a gpu…

---

## [Makie: how to plot/draw above axis splines?](https://discourse.julialang.org/t/makie-how-to-plot-draw-above-axis-splines/119850)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 9:14am UTC](https://discourse.julialang.org/t/makie-how-to-plot-draw-above-axis-splines/119850 "2024-09-25T09:14:06Z")

</div>

I have this plot: the markers with white stroke are scatter! plot. How do I make them plot above the axis splines so that they are shown in full instead of being cut out by the axis? The keyword overdraw = true does…

---

## [How to add a legend to a figure with only a \`(fig, ax)\` tuple in hand?](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-figure-with-only-a-fig-ax-tuple-in-hand/119795)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [September 24, 2024, 8:51am UTC](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-figure-with-only-a-fig-ax-tuple-in-hand/119795 "2024-09-24T08:51:27Z")

</div>

I only have a (fig, ax) tuple of a figure in hand. Now I want to add a legend for this figure. How can I do? julia\> fig, ax (Scene (600px, 450px): 0 Plots 1 Child Scene: └ Scene (600px, 450px), Axis (5 plots)) …

---

## [How to show all xlabels in violin plot](https://discourse.julialang.org/t/how-to-show-all-xlabels-in-violin-plot/119627)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [September 21, 2024, 8:11pm UTC](https://discourse.julialang.org/t/how-to-show-all-xlabels-in-violin-plot/119627 "2024-09-21T20:11:29Z")

</div>

Hi, In the code below, only evenly indexed labels display. How do I show all xlabels? Thanks! using StatsPlots x = randn(1000, 16) labels = map(x -\> randstring(3), 1:16) violin(permutedims(labels), x, rotation = 90, …

---

## [GLMakie with blocking thread](https://discourse.julialang.org/t/glmakie-with-blocking-thread/119600)

<div class="topic-metadata">

**Author:** [@simonw1](https://discourse.julialang.org/u/simonw1)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 1:56pm UTC](https://discourse.julialang.org/t/glmakie-with-blocking-thread/119600 "2024-09-19T13:56:34Z")

</div>

Hello good people! I am trying to plot and process data in Julia with GLMakie. The data is communicated via a gRPC call and as I am unable to find suitable Julia packages for handling this, I have a python module that h…

---

## [Range Breaks on DateTimeAxis in Makie](https://discourse.julialang.org/t/range-breaks-on-datetimeaxis-in-makie/119334)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 10:56pm UTC](https://discourse.julialang.org/t/range-breaks-on-datetimeaxis-in-makie/119334 "2024-09-18T22:56:36Z")

</div>

Hi I want to plot the following data. I have the last 3 closing prices from one day and the first 3 closing prices from the next day. 6×2 DataFrame Row │ timestamp close │ DateTime Float6…

---

## [Layout not correct for plotlyjs backend](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567)

<div class="topic-metadata">

**Author:** [@arw](https://discourse.julialang.org/u/arw)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 6:17pm UTC](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567 "2024-09-18T18:17:31Z")

</div>

The following code plots two subplots side-by-side. Works fine if you are using the gr backend but does not when using the plotlyjs backend. The first subplot spreads across the whole figure while the second subplot is…

---

## [New colorscheme for Plots.jl 2.0](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 9\
**Last updated:** [September 16, 2024, 7:08pm UTC](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841 "2024-09-16T19:08:00Z")

</div>

For the upcoming Plots.jl 2.0 we are thinking about changing the default colorschemes. We identified 3 potential candidates for a new color palette and 4 potential gradients. You can see the combinations in action in thi…

---

## [How to make xlabelvisible = false in AoG](https://discourse.julialang.org/t/how-to-make-xlabelvisible-false-in-aog/119317)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 1:32pm UTC](https://discourse.julialang.org/t/how-to-make-xlabelvisible-false-in-aog/119317 "2024-09-12T13:32:53Z")

</div>

Imagine I have this figure: df = (; name = \["Anna", "Beatrix", "Claire"\], height\_meters = \[1.55, 1.76, 1.63\]) m = mapping(:name, :height\_meters) spec1 = data(df) \* m \* visual(BarPlot) f = Figure() draw!(f\[1, 1\], spec1)…

---

## [Convert scatter to surface](https://discourse.julialang.org/t/convert-scatter-to-surface/119276)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 6\
**Last updated:** [September 11, 2024, 1:13pm UTC](https://discourse.julialang.org/t/convert-scatter-to-surface/119276 "2024-09-11T13:13:49Z")

</div>

Hello there :smiley: I have data that can be plotted as scatter (GLMakie). I would like to convert the scatter into a surface. I tried to interpolate the data as following but it does not work (probably because of the w…

---

## [Polar Histogram](https://discourse.julialang.org/t/polar-histogram/103113)

<div class="topic-metadata">

**Author:** [@VincentPoupart](https://discourse.julialang.org/u/VincentPoupart)\
**Replies:** 7\
**Last updated:** [September 10, 2024, 5:08pm UTC](https://discourse.julialang.org/t/polar-histogram/103113 "2024-09-10T17:08:25Z")

</div>

Hi! I wrote a little function to plot polar histograms using PolarAxis. I wonder if it’s a good idea to add something like this to makie? using StatsBase using Distributions using CairoMakie #set of angles in radian an…

---

## [Makie streamplot uniform log gridsize](https://discourse.julialang.org/t/makie-streamplot-uniform-log-gridsize/119079)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 2:12pm UTC](https://discourse.julialang.org/t/makie-streamplot-uniform-log-gridsize/119079 "2024-09-09T14:12:25Z")

</div>

Hello, I am trying to create a streamplot in Makie with a log scale axis. I am trying to control the number of lines in the plot using the gridsize argument. However, because of my logarithmic scaling, I am having some…

---

## [Curved arrow using Makie.jl](https://discourse.julialang.org/t/curved-arrow-using-makie-jl/117013)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 15\
**Last updated:** [September 6, 2024, 5:52pm UTC](https://discourse.julialang.org/t/curved-arrow-using-makie-jl/117013 "2024-09-06T17:52:32Z")

</div>

Hello, I would like to draw a curved arrow inside an axis using Makie.jl More precisely, I have a starting point x0, a final point x1, and I want to draw and arrow which is not straight, but curved in some way. How ca…

---

## [Candlestick Charts with GLMakie](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 4\
**Last updated:** [September 5, 2024, 10:06pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086 "2024-09-05T22:06:57Z")

</div>

Hi I’m thinking of moving away from PlotlyJS.jl and trying GLMakie.jl. My end goal is to create a CandleStick chart. First a static example and then have the bars update in realtime. However I’ve noticed that Makie.jl do…

---

## [CairoMakie ylabel allignment not working](https://discourse.julialang.org/t/cairomakie-ylabel-allignment-not-working/118722)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 2\
**Last updated:** [September 4, 2024, 5:01pm UTC](https://discourse.julialang.org/t/cairomakie-ylabel-allignment-not-working/118722 "2024-09-04T17:01:56Z")

</div>

Hello, I’m new to Makie (used to use Plots before). I’ve been trying to align the ylabels for many subplots using the CairoMakie package. I’m able to align them, but for some reason there is some overlap with the tick m…

---

## [GLMakie issue with select\_rectangle](https://discourse.julialang.org/t/glmakie-issue-with-select-rectangle/119008)

<div class="topic-metadata">

**Author:** [@sc-dyer](https://discourse.julialang.org/u/sc-dyer)\
**Replies:** 2\
**Last updated:** [September 4, 2024, 3:52pm UTC](https://discourse.julialang.org/t/glmakie-issue-with-select-rectangle/119008 "2024-09-04T15:52:44Z")

</div>

I was trying to run a GLMakie script that used to work but doesn’t any more. Here is a reproduction of the error I am getting: using GLMakie fig = Figure(); display(GLMakie.Screen(),fig) ax = Axis(fig\[1,1\]) lines!(ax,…

---

## [Makie and Plots recipes](https://discourse.julialang.org/t/makie-and-plots-recipes/119023)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 4\
**Last updated:** [September 4, 2024, 10:54am UTC](https://discourse.julialang.org/t/makie-and-plots-recipes/119023 "2024-09-04T10:54:13Z")

</div>

I’ve got an old package (TreatmentPanels.jl) to wrangle data sets into shape for specific use cases in other packages, and as part of this have defined some Plots.jl recipes to visualise the data. Over the last year or …

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

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