# Visualization

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

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

**Page:** 64

---

## [Makie - Setting \`zlims!\` on an \`Axis3\` sets \`ylims!\` instead](https://discourse.julialang.org/t/makie-setting-zlims-on-an-axis3-sets-ylims-instead/64254)

<div class="topic-metadata">

**Author:** [@cryptic.ax](https://discourse.julialang.org/u/cryptic.ax)\
**Replies:** 1\
**Last updated:** [July 8, 2021, 8:04am UTC](https://discourse.julialang.org/t/makie-setting-zlims-on-an-axis3-sets-ylims-instead/64254 "2021-07-08T08:04:55Z")

</div>

Hi! I’m having some weird issues making 3D plots with Makie.jl. Consider the following mockup: fig = Figure(; resolution = (600, 600)) ax = fig\[1, 1\] = Axis3(fig) xlims!(ax, (0., 10.)) # works perfectly ylims!(ax, (0.,…

---

## [Makie - Long plotting times for 3D plots using CairoMakie](https://discourse.julialang.org/t/makie-long-plotting-times-for-3d-plots-using-cairomakie/64255)

<div class="topic-metadata">

**Author:** [@cryptic.ax](https://discourse.julialang.org/u/cryptic.ax)\
**Replies:** 1\
**Last updated:** [July 8, 2021, 8:03am UTC](https://discourse.julialang.org/t/makie-long-plotting-times-for-3d-plots-using-cairomakie/64255 "2021-07-08T08:03:13Z")

</div>

I’m trying to record a video of a 3D plot using CairoMakie. My plot consists of one surface! in a (205, 205, 40) size region, and approximately 300 spheres scattered around the same region. Each frame take around 17s to …

---

## [Makie - Testing GLMakie with correct ReferenceTests](https://discourse.julialang.org/t/makie-testing-glmakie-with-correct-referencetests/64206)

<div class="topic-metadata">

**Author:** [@stroebel](https://discourse.julialang.org/u/stroebel)\
**Replies:** 1\
**Last updated:** [July 7, 2021, 11:40am UTC](https://discourse.julialang.org/t/makie-testing-glmakie-with-correct-referencetests/64206 "2021-07-07T11:40:14Z")

</div>

I am trying to get interactive plotting to work on my machine using either GLMakie or CairoMakie. Currently, both display a window with a black screen and then it seemingly crashes with no information. To try and see if…

---

## [Does Meshing.isosurface() work only with the exact value of iso in maching\_cube()](https://discourse.julialang.org/t/does-meshing-isosurface-work-only-with-the-exact-value-of-iso-in-maching-cube/64146)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [July 7, 2021, 10:34am UTC](https://discourse.julialang.org/t/does-meshing-isosurface-work-only-with-the-exact-value-of-iso-in-maching-cube/64146 "2021-07-07T10:34:35Z")

</div>

I tried to use the function isosurface with marching\_cube, from Meshing.jl. I have volumetric data in an array of size(91, 109, 91), with Float64 values in the interval \[-3, 3\], and I wanted to get the mesh for the i…

---

## [Access y/xlim of a plot in Plots](https://discourse.julialang.org/t/access-y-xlim-of-a-plot-in-plots/11236)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 2\
**Last updated:** [July 7, 2021, 9:47am UTC](https://discourse.julialang.org/t/access-y-xlim-of-a-plot-in-plots/11236 "2021-07-07T09:47:27Z")

</div>

I’m plotting something with aspect\_ratio=1 (GR backend) and the resulting file (via savefig) has a lot of “air” surrounding the plot. I want to make it a bit more tight. using Plots plot(rand(10), aspect\_ratio = 1) save…

---

## [Gnuplot.jl + Windows 10: mouse can't zoom in/out](https://discourse.julialang.org/t/gnuplot-jl-windows-10-mouse-cant-zoom-in-out/64038)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 6:31pm UTC](https://discourse.julialang.org/t/gnuplot-jl-windows-10-mouse-cant-zoom-in-out/64038 "2021-07-04T18:31:04Z")

</div>

Dear all, I have Windows 10 64-bit, gnuplot Version 5.4 patchlevel 1 (terminal qt) and Julia 1.6.1 with Gnuplot.jl v1.4.0 . When i use gnuplot without julia: gnuplot\> plot sin(x) i get the plot fine. Mouse can zoom …

---

## [Makie: Płot a number line](https://discourse.julialang.org/t/makie-plot-a-number-line/64032)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 2:10pm UTC](https://discourse.julialang.org/t/makie-plot-a-number-line/64032 "2021-07-04T14:10:47Z")

</div>

I just need a number line, like so Can I free that from the Axis object?

---

## [Drawing and animation, package recommendation](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917)

<div class="topic-metadata">

**Author:** [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 9:30am UTC](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917 "2021-07-02T09:30:49Z")

</div>

A friend of mine made this awsome image by hand using Windows Paint. Which package do you recommend me for drawing it and animating it? The animation would be of transformations of the original image. I’ve read that Cair…

---

## [Controling the shadows in 3D Makie visualizations](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 8:46am UTC](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796 "2021-07-02T08:46:17Z")

</div>

I am new to 3D visualization, and wonder how people usually control the “shadows”. When I visualize the grid below the colors are too dark as if the light source was behind the cube by default: Is there a recommended …

---

## [Gnuplot.jl : Filled contour plot with constant color between contour lines](https://discourse.julialang.org/t/gnuplot-jl-filled-contour-plot-with-constant-color-between-contour-lines/63876)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 3\
**Last updated:** [July 2, 2021, 8:41am UTC](https://discourse.julialang.org/t/gnuplot-jl-filled-contour-plot-with-constant-color-between-contour-lines/63876 "2021-07-02T08:41:45Z")

</div>

Hello, using Gnuplot I want to plot contour lines with constant color between them. my code (from https://lazarusa.github.io/gnuplot-examples/menu1/) : x = y = -15:0.33:15 fz(x,y) = sin.(sqrt.(x.^2 + y.^2))./sqrt.(x.…

---

## [Great Makie examples](https://discourse.julialang.org/t/great-makie-examples/63820)

<div class="topic-metadata">

**Author:** [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Replies:** 1\
**Last updated:** [June 30, 2021, 2:26pm UTC](https://discourse.julialang.org/t/great-makie-examples/63820 "2021-06-30T14:26:44Z")

</div>

I’d love to show off some outstanding Makie examples at JuliaCon - and in general work towards collecting examples to show off Makies capabilities and get an overview of what people are up to. Code would be great for fu…

---

## [Delaunay triangulation in best fit plane](https://discourse.julialang.org/t/delaunay-triangulation-in-best-fit-plane/63792)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 2:42am UTC](https://discourse.julialang.org/t/delaunay-triangulation-in-best-fit-plane/63792 "2021-06-30T02:42:07Z")

</div>

Hi I have a set of points scattered in 3D x,y, z, with an associated scalar property f. But these points are very nearly planar, and I want the triangulation of f in a “best fit” plane, which I can then import as a VTK f…

---

## [GLMakie Method error (Makie.image!)](https://discourse.julialang.org/t/glmakie-method-error-makie-image/63090)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 9\
**Last updated:** [June 29, 2021, 1:22pm UTC](https://discourse.julialang.org/t/glmakie-method-error-makie-image/63090 "2021-06-29T13:22:14Z")

</div>

I am trying to duplicate the example on the VideoIO github page that uses Makie. My code is very similar to this example but using some cell phone video from a Blackberry Key2. using VideoIO using GLMakie path = strin…

---

## [Display image in Dash app](https://discourse.julialang.org/t/display-image-in-dash-app/63745)

<div class="topic-metadata">

**Author:** [@Aju](https://discourse.julialang.org/u/Aju)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 12:05pm UTC](https://discourse.julialang.org/t/display-image-in-dash-app/63745 "2021-06-29T12:05:02Z")

</div>

Hello, I am currently building an app for image visualisation using Dash platform. But, I am unable to find the right graph to display the image, which could be a 2D array or 3D array with RGB channels. Here is a simple…

---

## [Center colorbar ticks in a categorical colorbar in Makie.jl](https://discourse.julialang.org/t/center-colorbar-ticks-in-a-categorical-colorbar-in-makie-jl/63691)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 1:52pm UTC](https://discourse.julialang.org/t/center-colorbar-ticks-in-a-categorical-colorbar-in-makie-jl/63691 "2021-06-28T13:52:45Z")

</div>

MWE: using GLMakie xg = range(0, 10; length = 100) yg = range(0, 10; length = 100) bsn = rand(1:5, (100, 100)) fig = Figure(resolution = (700,600)) display(fig) colors = \[:black, :blue, :red, :teal, :yellow\] cmap = …

---

## [3D scatter with AlgebraOfGraphics.jl](https://discourse.julialang.org/t/3d-scatter-with-algebraofgraphics-jl/63686)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [June 28, 2021, 1:18pm UTC](https://discourse.julialang.org/t/3d-scatter-with-algebraofgraphics-jl/63686 "2021-06-28T13:18:50Z")

</div>

Is it possible to get a 3D scatter plot with AlgebraOfGraphics.jl? I tried it with data(df) \* mapping(:X, :Y, :Z) |\> draw but it only shows a 2D scatter as if the3rd argument :Z was ignored.

---

## [Drawing a median line in a histogram in Makie](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-makie/63359)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 5\
**Last updated:** [June 28, 2021, 10:14am UTC](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-makie/63359 "2021-06-28T10:14:33Z")

</div>

I can’t figure out a non-manual way to do this: mwe\_fig = let fig = Figure() data = randn(1000) .+ 1 ax = Axis(fig\[1,1\]; xlabel="Value", ylabel="Count") hist!(ax, data) m = median(data) m\_color = Makie.wong\_colors…

---

## [Get a legend with twinx()](https://discourse.julialang.org/t/get-a-legend-with-twinx/63672)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 8:39am UTC](https://discourse.julialang.org/t/get-a-legend-with-twinx/63672 "2021-06-28T08:39:50Z")

</div>

Hi, I’m using the twinx () command, is there a way to have both labels in the same legend? using Plots x12=randn(10) y12=1000\*randn(10) plot(x12, label="x12") plot!(twinx(), y12, c=:red, legend=:bottomleft, label="y12")…

---

## [Export just the plotting area with Makie](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 2\
**Last updated:** [June 27, 2021, 6:37am UTC](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629 "2021-06-27T06:37:30Z")

</div>

Is it possible to save just the plotting area as a PDF from Cairo Makie? Hiding decorations and spines gets close. But there is still a small border around the output.

---

## [Fastest plotting library?](https://discourse.julialang.org/t/fastest-plotting-library/62018)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 53\
**Last updated:** [June 26, 2021, 6:35pm UTC](https://discourse.julialang.org/t/fastest-plotting-library/62018 "2021-06-26T18:35:10Z")

</div>

I need to generate a lot of plots(thousands) and save them to disk as png. Nothing fancy, just some scatter plots with legend, preferably with the option to adjust the resolution(number of points per plot is less than 10…

---

## [Plotting Makie output with Plots](https://discourse.julialang.org/t/plotting-makie-output-with-plots/63520)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 4\
**Last updated:** [June 25, 2021, 4:26pm UTC](https://discourse.julialang.org/t/plotting-makie-output-with-plots/63520 "2021-06-25T16:26:30Z")

</div>

Is there any way to use Plots and Makie together to create a larger figure without having to export one as an image and load it back in? Something like: using Makie, Plots mfig = Figure() # ... create Makie figure ... …

---

## [How to plot alternating background colors with Plots.jl](https://discourse.julialang.org/t/how-to-plot-alternating-background-colors-with-plots-jl/63548)

<div class="topic-metadata">

**Author:** [@kaslusimoes](https://discourse.julialang.org/u/kaslusimoes)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 1:01pm UTC](https://discourse.julialang.org/t/how-to-plot-alternating-background-colors-with-plots-jl/63548 "2021-06-25T13:01:07Z")

</div>

Hi, I want to plot a time series but visualize a few segments with different background colors. My idea of the code would be something like plot(\[1:4 5:8\], \[rand(4) rand(4)\], bg\_inside = \[:darkblue :red\]), but that sel…

---

## [No attribute for title position - why always at top of figure?](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360)

<div class="topic-metadata">

**Author:** [@walra356](https://discourse.julialang.org/u/walra356)\
**Replies:** 8\
**Last updated:** [June 22, 2021, 6:48pm UTC](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360 "2021-06-22T18:48:52Z")

</div>

In the example below I would like the title to the left of fig\[2,1\]. Is there a simple way to do this in the Makie Figure format? New Axis with textbox? Rotation did not work for me.

---

## [Makie - 3D mesh visualization of surface](https://discourse.julialang.org/t/makie-3d-mesh-visualization-of-surface/63306)

<div class="topic-metadata">

**Author:** [@paurierap](https://discourse.julialang.org/u/paurierap)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 5:11pm UTC](https://discourse.julialang.org/t/makie-3d-mesh-visualization-of-surface/63306 "2021-06-21T17:11:34Z")

</div>

Hi all, I am trying to plot the boundary of a rectangular 3D mesh with Gridap types. After the conversion to a Mesh type in GeometryBasics, my grid looks like this: Mesh{3, Float64, Triangle}: Triangle(\[0.0, 0.0, 0.0\]…

---

## [Put all names on bar chart](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:20pm UTC](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191 "2021-06-19T23:20:08Z")

</div>

Hello, I am making a bar graph of the annual income for districts within each department. I have two problems, (i) when I make the bar graph not all the names of the districts appear and (ii) is there a format so that it…

---

## [How to set a reversed colormap in a heatmap definition](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [June 19, 2021, 3:01am UTC](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155 "2021-06-19T03:01:32Z")

</div>

For older Plots versions I found out that it was posssible to set the reversed colormap by c=:viridis\_r, but now it generates the error Unknown color: viridis\_r: using Plots h=0.05 y, x = range(-5, stop=5+h, step=h), …

---

## [No luck with WGLMakie in IJulia](https://discourse.julialang.org/t/no-luck-with-wglmakie-in-ijulia/63151)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 7:10pm UTC](https://discourse.julialang.org/t/no-luck-with-wglmakie-in-ijulia/63151 "2021-06-18T19:10:51Z")

</div>

I’m hoping to get basic interactive plots (e.g., manipulation of 3D axes) in IJulia. But following the basic instructions in the docs has not worked on both linux and MacOS. I’m using Julia 1.6, running IJulia.notebook(…

---

## [Interactive FFT with an intervalslider in Makie](https://discourse.julialang.org/t/interactive-fft-with-an-intervalslider-in-makie/63112)

<div class="topic-metadata">

**Author:** [@Flausi](https://discourse.julialang.org/u/Flausi)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 1:52pm UTC](https://discourse.julialang.org/t/interactive-fft-with-an-intervalslider-in-makie/63112 "2021-06-18T13:52:18Z")

</div>

Hello, I have taken a relatively large amount of readings over time and would now like to look at them in detail. For this purpose I use an interval slider in Makie with which I can zoom into my data. This works already …

---

## [Ghosting on contour plots of a (x,y)→Bool function](https://discourse.julialang.org/t/ghosting-on-contour-plots-of-a-x-y-bool-function/63110)

<div class="topic-metadata">

**Author:** [@owiecc](https://discourse.julialang.org/u/owiecc)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 12:02pm UTC](https://discourse.julialang.org/t/ghosting-on-contour-plots-of-a-x-y-bool-function/63110 "2021-06-18T12:02:03Z")

</div>

I would like to plot of a (x,y) → Bool function as a contour plot. For the function I am plotting I get a lot of ghosting. The closer to 45° the line is the better it looks. Compare the heatmap to the contour plots: …

---

## [Clear observables created by @lift](https://discourse.julialang.org/t/clear-observables-created-by-lift/63127)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 6\
**Last updated:** [June 18, 2021, 11:12am UTC](https://discourse.julialang.org/t/clear-observables-created-by-lift/63127 "2021-06-18T11:12:09Z")

</div>

What is the proper way of clearing the (perhaps wrong) @lift observable listeners? Following example has an error using WGLMakie time = Node(1.5) ξ = @lift( 1.0 \< $time \< 2.0 ? $time - 1.0 : 0.0\*err) #error, err not d…

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

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