# Visualization

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

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

**Page:** 38

---

## [WriteVTK node numbering for 27 node Lagrange Hexahedron](https://discourse.julialang.org/t/writevtk-node-numbering-for-27-node-lagrange-hexahedron/93698)

<div class="topic-metadata">

**Author:** [@jman87](https://discourse.julialang.org/u/jman87)\
**Replies:** 17\
**Last updated:** [February 3, 2023, 6:16pm UTC](https://discourse.julialang.org/t/writevtk-node-numbering-for-27-node-lagrange-hexahedron/93698 "2023-02-03T18:16:21Z")

</div>

@jipolanco I’m trying to export a mesh containing 27-node Lagrange Hexahedron elements using WriteVTK, but I can’t seem to get the node ordering correct. Another ParaView user suggested I get the ordering from ParaView…

---

## [GTK4.jl: Canvas not visible when pushed to a box](https://discourse.julialang.org/t/gtk4-jl-canvas-not-visible-when-pushed-to-a-box/93959)

<div class="topic-metadata">

**Author:** [@sarath-menon](https://discourse.julialang.org/u/sarath-menon)\
**Replies:** 1\
**Last updated:** [February 3, 2023, 11:32am UTC](https://discourse.julialang.org/t/gtk4-jl-canvas-not-visible-when-pushed-to-a-box/93959 "2023-02-03T11:32:02Z")

</div>

Hello. I am trying to display a canvas GTK4.jl. The documentation example works. But when I push the canvas to a GTKBox and push the box to the window (instead of pushing the canvas directly to the window), the canvas …

---

## [Interactive Menu with AlgebraOfGraphics / GLMakie](https://discourse.julialang.org/t/interactive-menu-with-algebraofgraphics-glmakie/93842)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 15\
**Last updated:** [February 2, 2023, 5:53pm UTC](https://discourse.julialang.org/t/interactive-menu-with-algebraofgraphics-glmakie/93842 "2023-02-02T17:53:46Z")

</div>

Hello, I am trying to have an interactive AlgebraofGraphics plot, e.g. with a menu to select which variable is plotted. A MWE is x1=rand(50) y1=10x1.^2 y2=x1 .+ randn(50) df = DataFrame((;x1, y1, y2)) var=Observable(…

---

## [How could I create map with colored countries?](https://discourse.julialang.org/t/how-could-i-create-map-with-colored-countries/75634)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 5\
**Last updated:** [February 2, 2023, 3:01pm UTC](https://discourse.julialang.org/t/how-could-i-create-map-with-colored-countries/75634 "2023-02-02T15:01:04Z")

</div>

Hello Below is the kind of maps I would like to draw. The colors would be changing according to some data. I would dream of making animated gif files on this basis. Any idea how I coul proceed? Thanks Michel

---

## [Makie | Figure(resolution = Makie.primary\_resolution()) deprecated?](https://discourse.julialang.org/t/makie-figure-resolution-makie-primary-resolution-deprecated/93854)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 4\
**Last updated:** [February 2, 2023, 4:44am UTC](https://discourse.julialang.org/t/makie-figure-resolution-makie-primary-resolution-deprecated/93854 "2023-02-02T04:44:41Z")

</div>

Makie.primary\_resolution() is \[was?\] a useful function for setting images to full screen size in GLMakie. However, after the release of Makie v0.19.2 a call to this function generates an error message stating that the…

---

## [The VS Code plot navigator and Makie](https://discourse.julialang.org/t/the-vs-code-plot-navigator-and-makie/67967)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 13\
**Last updated:** [February 1, 2023, 7:00pm UTC](https://discourse.julialang.org/t/the-vs-code-plot-navigator-and-makie/67967 "2023-02-01T19:00:08Z")

</div>

I want to clarify something that confused me when using CairoMakie and GLMakie in Visual Studio Code. I couldn’t find an explanation in the Makie documentation, so I’ll make a topic here to help anyone else who runs into…

---

## [Disable warnings in \`Plots\`](https://discourse.julialang.org/t/disable-warnings-in-plots/93838)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [January 31, 2023, 11:34pm UTC](https://discourse.julialang.org/t/disable-warnings-in-plots/93838 "2023-01-31T23:34:50Z")

</div>

I am using Plots to plot(data,options...). This produces tons of Warnings like: ┌ Warning: Indices Base.OneTo(7) of attribute \`fillcolor\` does not match data indices 1:6. └ @ Plots ~/.julia/packages/Plots/AAjgN/src/util…

---

## [Update xlims in interactive GLMakie](https://discourse.julialang.org/t/update-xlims-in-interactive-glmakie/93825)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 5\
**Last updated:** [January 31, 2023, 10:49pm UTC](https://discourse.julialang.org/t/update-xlims-in-interactive-glmakie/93825 "2023-01-31T22:49:51Z")

</div>

I have the question how to make xlims and ylims update automatically when an Observable changes. For instance: x=1:10 |\> collect |\> Observable fig, ax, plt = scatter(x, @lift($x .^ 2)) fig Updating x does not lead to …

---

## [Logscale on negative real axis](https://discourse.julialang.org/t/logscale-on-negative-real-axis/93814)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 6\
**Last updated:** [January 31, 2023, 11:41am UTC](https://discourse.julialang.org/t/logscale-on-negative-real-axis/93814 "2023-01-31T11:41:12Z")

</div>

Hi all I have a function, foo(x), which is defined only on the negative real axis. The range is quite wide and I want to plot it in log-scale, say from x=-1.0e7 to x=-1.0e-7. How can I “transform” the axis in Makie to a…

---

## [How to label individuals dots in scatterplot?](https://discourse.julialang.org/t/how-to-label-individuals-dots-in-scatterplot/93791)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [January 30, 2023, 9:01pm UTC](https://discourse.julialang.org/t/how-to-label-individuals-dots-in-scatterplot/93791 "2023-01-30T21:01:17Z")

</div>

I want to scatter plto a bunch of dots, attaching a label to each. However, the label command gives the first label to each dot. Sample code: using Plots xs = \[1,2,3\] ys = \[2,4,6\] colors = \[:red :blue :green\] labels = \[…

---

## [Margins controls for PyPlot](https://discourse.julialang.org/t/margins-controls-for-pyplot/93759)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 1:07pm UTC](https://discourse.julialang.org/t/margins-controls-for-pyplot/93759 "2023-01-30T13:07:11Z")

</div>

Hello what are the Julia PyPlot equivalents to R’s margin parameters oma and mai? Thank you

---

## [\[ANN\]: TernaryDiagrams.jl](https://discourse.julialang.org/t/ann-ternarydiagrams-jl/92312)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 2\
**Last updated:** [January 30, 2023, 10:23am UTC](https://discourse.julialang.org/t/ann-ternarydiagrams-jl/92312 "2023-01-30T10:23:36Z")

</div>

Hi all! I made a small Makie recipe package that allows you to draw ternary plots like this: I am planning on eventually making a ternary axis properly (instead of co-opting the regular 2D axis like I do currently), …

---

## [How to switch between several layouts in Makie?](https://discourse.julialang.org/t/how-to-switch-between-several-layouts-in-makie/93578)

<div class="topic-metadata">

**Author:** [@pzabka](https://discourse.julialang.org/u/pzabka)\
**Replies:** 6\
**Last updated:** [January 27, 2023, 9:51pm UTC](https://discourse.julialang.org/t/how-to-switch-between-several-layouts-in-makie/93578 "2023-01-27T21:51:42Z")

</div>

Hello, I am creating a GUI in Makie, and I would like to be able to change the layout with a menu widget. So far, I can add widgets (GridLaouts) at runtime, but I didn’t find how to hide or replace them. See the mwe bel…

---

## [How to make xylabel LaTeXString with ternary operator?](https://discourse.julialang.org/t/how-to-make-xylabel-latexstring-with-ternary-operator/93626)

<div class="topic-metadata">

**Author:** [@YH\_Ko](https://discourse.julialang.org/u/YH_Ko)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 1:12pm UTC](https://discourse.julialang.org/t/how-to-make-xylabel-latexstring-with-ternary-operator/93626 "2023-01-27T13:12:09Z")

</div>

I’m trying to visualize contour over heatmap example of Makie from following reference. Here, I want to change xlabel and ylabel to LaTexString style. \[original code\] axs = \[Axis(fig\[1, j\], aspect=1, xlabel=“x”, yl…

---

## [Connecting coordinate transforms in Luxor](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 9:47pm UTC](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458 "2023-01-26T21:47:30Z")

</div>

I’m working on my first project with Luxor.jl. As I understand it, Luxor maintains both a “global” coordinate system and a “local” system, and the typical workflow is to transform the local coordinates in some useful way…

---

## [Change window icon in GLMakie?](https://discourse.julialang.org/t/change-window-icon-in-glmakie/93517)

<div class="topic-metadata">

**Author:** [@Ertyk](https://discourse.julialang.org/u/Ertyk)\
**Replies:** 2\
**Last updated:** [January 25, 2023, 5:50pm UTC](https://discourse.julialang.org/t/change-window-icon-in-glmakie/93517 "2023-01-25T17:50:13Z")

</div>

Hello, Is there a way to change the window icon in GLMakie?

---

## [How to record interactive visualisation with cursor clicking?](https://discourse.julialang.org/t/how-to-record-interactive-visualisation-with-cursor-clicking/93465)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 7\
**Last updated:** [January 25, 2023, 4:39pm UTC](https://discourse.julialang.org/t/how-to-record-interactive-visualisation-with-cursor-clicking/93465 "2023-01-25T16:39:47Z")

</div>

I have an interactive topoplot: clicking on a channel marker shows its name. I want to record it so that I can see how I press a marker with the cursor and its name changes. Do you know how to do this? I tried, but the …

---

## [Plotting histogram on the y-axis at the end of a time series](https://discourse.julialang.org/t/plotting-histogram-on-the-y-axis-at-the-end-of-a-time-series/5381)

<div class="topic-metadata">

**Author:** [@chase](https://discourse.julialang.org/u/chase)\
**Replies:** 9\
**Last updated:** [October 21, 2017, 9:52pm UTC](https://discourse.julialang.org/t/plotting-histogram-on-the-y-axis-at-the-end-of-a-time-series/5381 "2017-10-21T21:52:31Z")

</div>

I came across a figure which had a visualization I really liked. It shows the time series of some simulations and then has the histogram of the end state of the system plotted on a new, rotated axis. I know this plot was…

---

## [Is there any plan to support webP exportation?](https://discourse.julialang.org/t/is-there-any-plan-to-support-webp-exportation/93485)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 0\
**Last updated:** [January 25, 2023, 2:55am UTC](https://discourse.julialang.org/t/is-there-any-plan-to-support-webp-exportation/93485 "2023-01-25T02:55:47Z")

</div>

https://docs.juliaplots.org/stable/api/#Animations I know webM is supported, and just wonder about webP extension for animated figure.

---

## [Help with student issue: GR.jl and "gks not in proper state" on Windows 10](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477)

<div class="topic-metadata">

**Author:** [@isaacsas](https://discourse.julialang.org/u/isaacsas)\
**Replies:** 2\
**Last updated:** [January 24, 2023, 10:33pm UTC](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477 "2023-01-24T22:33:57Z")

</div>

I have student getting “gks not in proper state” when trying to plot under Windows 10 using 1.9-beta-3 and a fresh Julia install with only the latest Plots.jl, IJulia, and GR explicitly added. Does anyone have suggestio…

---

## [Makie - how to set only lower or upper axis limit?](https://discourse.julialang.org/t/makie-how-to-set-only-lower-or-upper-axis-limit/58320)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 4\
**Last updated:** [January 24, 2023, 6:54pm UTC](https://discourse.julialang.org/t/makie-how-to-set-only-lower-or-upper-axis-limit/58320 "2023-01-24T18:54:41Z")

</div>

When plotting Makie automatically set axis limits. I would like to keep the automatically generated upper limit while setting the lower one to zero. How could I do that? At first I wanted to get the current limits and r…

---

## [How do I select a line by clicking in Makie?](https://discourse.julialang.org/t/how-do-i-select-a-line-by-clicking-in-makie/93410)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 4\
**Last updated:** [January 24, 2023, 1:48pm UTC](https://discourse.julialang.org/t/how-do-i-select-a-line-by-clicking-in-makie/93410 "2023-01-24T13:48:29Z")

</div>

I want to be able to select a line on the plot by clicking on it. Ideally, when I click on any line, the number of that line will appear on the screen. I wrote my code based on the tutorial, but there is no example with …

---

## [How to produce a waterfall plot in Julia?](https://discourse.julialang.org/t/how-to-produce-a-waterfall-plot-in-julia/93441)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 6\
**Last updated:** [January 24, 2023, 12:22pm UTC](https://discourse.julialang.org/t/how-to-produce-a-waterfall-plot-in-julia/93441 "2023-01-24T12:22:28Z")

</div>

I want to produce a waterfall plot, sort of like this: in Julia. The above plot was created in MATLAB with the command: waterfall(xi, tdata, abs(u1data')) where xi and tdata was 1d arrays and u1data is a 2d array c…

---

## [Understanding Lighting in Makie](https://discourse.julialang.org/t/understanding-lighting-in-makie/93356)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 2:37pm UTC](https://discourse.julialang.org/t/understanding-lighting-in-makie/93356 "2023-01-22T14:37:56Z")

</div>

Hi, I’m having some problems understanding how the lighting works in Makie. I’m trying to draw a surface displaying a cone with a blunt leading edge, and then draw some flow fields extending from the surface of the cone…

---

## [Plotly: Add Slider to Vector of Heatmaps](https://discourse.julialang.org/t/plotly-add-slider-to-vector-of-heatmaps/93211)

<div class="topic-metadata">

**Author:** [@phiG](https://discourse.julialang.org/u/phiG)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 5:53pm UTC](https://discourse.julialang.org/t/plotly-add-slider-to-vector-of-heatmaps/93211 "2023-01-19T17:53:55Z")

</div>

Hello everyone, this is my first post here so I hope I don’t ask something too trivial. I have a vector of matrices, each of same size, and I am able to plot a single one of them as a heatmap with PlotlyJS by accessing…

---

## [Makie.jl Export with transparent background](https://discourse.julialang.org/t/makie-jl-export-with-transparent-background/93087)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 1:52pm UTC](https://discourse.julialang.org/t/makie-jl-export-with-transparent-background/93087 "2023-01-17T13:52:19Z")

</div>

I have a high resolution dataset, about 1000x1000 points for which I want to export the surface plot, like in fig = Figure(resolution = (1000, 1300), figure\_padding = (0, 26, 2, 0)) axis = Axis3(fig\[1, 1\], azimuth = π…

---

## [Aligning Multi-line Text (in Makie)](https://discourse.julialang.org/t/aligning-multi-line-text-in-makie/93012)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 2\
**Last updated:** [January 17, 2023, 4:44am UTC](https://discourse.julialang.org/t/aligning-multi-line-text-in-makie/93012 "2023-01-17T04:44:32Z")

</div>

Hi, Is it possible to do multiline text alignment in Makie plots LaTeX equation style? For example, describing some fluid conditions, I would like to write text something like: text!(ax, location, text = "p=100kPa\\nT=3…

---

## [Axis labels in makie.jl 3d plots](https://discourse.julialang.org/t/axis-labels-in-makie-jl-3d-plots/93050)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 0\
**Last updated:** [January 16, 2023, 9:19pm UTC](https://discourse.julialang.org/t/axis-labels-in-makie-jl-3d-plots/93050 "2023-01-16T21:19:42Z")

</div>

I have a very basic question about plotting 3D data using Makie.jl. How to set the axes labels? An MWE is provided below: using CairoMakie using Random fig = scatter(rand(10), rand(10), rand(10)) xlabel!("label-1") yl…

---

## [3 yaxes with Makie?](https://discourse.julialang.org/t/3-yaxes-with-makie/93032)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 3:42pm UTC](https://discourse.julialang.org/t/3-yaxes-with-makie/93032 "2023-01-16T15:42:36Z")

</div>

Is it possible to make 3 or more y-axes with Makie.jl? You can plot the data but how to move the spines? fig=Figure() ax11 = Axis(fig\[1,1\], ylabel="Series 1") lines!(cumsum(randn(1000))) ax12 = Axis(fig\[1,1\], yticklabel…

---

## [\`twiny\` in Plots somehow break the subplot margin](https://discourse.julialang.org/t/twiny-in-plots-somehow-break-the-subplot-margin/92901)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 0\
**Last updated:** [January 12, 2023, 11:53pm UTC](https://discourse.julialang.org/t/twiny-in-plots-somehow-break-the-subplot-margin/92901 "2023-01-12T23:53:15Z")

</div>

Hi, For a subplot to have tight margins, i did this and plot looks fine. p=plot(layout=(1,3),leg=false) for i in 1:3 leftmargin = i==1 ? 6Plots.mm : -4Plots.mm heatmap!(p\[i\],rand(10,10),yticks=\[\];leftmargin) en…

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

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