# Visualization

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

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

**Page:** 66

---

## [Makie.jl keyboard events](https://discourse.julialang.org/t/makie-jl-keyboard-events/62083)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [May 30, 2021, 11:51am UTC](https://discourse.julialang.org/t/makie-jl-keyboard-events/62083 "2021-05-30T11:51:09Z")

</div>

Hello, I would like to react on keyboard events in a GLMakie based app, but the way suggested in the documentation does not work: on(events(fig).keyboardbutton) do event if event.action in (Keyboard.press, Keyboard…

---

## [Getting a 3D position from mouse click. Makie.jl](https://discourse.julialang.org/t/getting-a-3d-position-from-mouse-click-makie-jl/61880)

<div class="topic-metadata">

**Author:** [@Aroeira](https://discourse.julialang.org/u/Aroeira)\
**Replies:** 4\
**Last updated:** [May 28, 2021, 9:56pm UTC](https://discourse.julialang.org/t/getting-a-3d-position-from-mouse-click-makie-jl/61880 "2021-05-28T21:56:50Z")

</div>

Hello, I am using Makie.jl to plot molecular shapes. Right now I am using it mostly as a passive tool: read a file with xyz coordinates and plot them. I would like to add some more interaction to it. So my main question …

---

## [How to add dropdown menu inside Makie recipe?](https://discourse.julialang.org/t/how-to-add-dropdown-menu-inside-makie-recipe/62005)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [May 28, 2021, 8:23pm UTC](https://discourse.julialang.org/t/how-to-add-dropdown-menu-inside-makie-recipe/62005 "2021-05-28T20:23:17Z")

</div>

Is there an example somewhere of a full recipe with interactive elements? I am searching through the master branch documentation but can’t find an example.

---

## [Makie - How to put contour3d and surface upon the same figure?](https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002)

<div class="topic-metadata">

**Author:** [@jmura](https://discourse.julialang.org/u/jmura)\
**Replies:** 1\
**Last updated:** [May 28, 2021, 4:46pm UTC](https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002 "2021-05-28T16:46:16Z")

</div>

Hi All, I’m trying to get a simple figure using this in a Jupyter notebook: using GLMakie, AbstractPlotting AbstractPlotting.inline!(true) ξ = LinRange(-1, 1, 50) η = LinRange(-1, 1, 50) ϕ₁(ξ) = (1 .- ξ)./2 ϕ₂(ξ) = …

---

## [How to have the same behaviour such as python's plt.plot()?](https://discourse.julialang.org/t/how-to-have-the-same-behaviour-such-as-pythons-plt-plot/61801)

<div class="topic-metadata">

**Author:** [@Vicodin96](https://discourse.julialang.org/u/Vicodin96)\
**Replies:** 11\
**Last updated:** [May 28, 2021, 8:52am UTC](https://discourse.julialang.org/t/how-to-have-the-same-behaviour-such-as-pythons-plt-plot/61801 "2021-05-28T08:52:18Z")

</div>

Hello to everyone, I’m new to Julia language and I come from Python. I’ve understood how to plot correctly, by using the display() function, but the plot, once created, immediately disappear. How can I have a blocking be…

---

## [How to show edges in mesh plot in Makie?](https://discourse.julialang.org/t/how-to-show-edges-in-mesh-plot-in-makie/61820)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [May 26, 2021, 6:19pm UTC](https://discourse.julialang.org/t/how-to-show-edges-in-mesh-plot-in-makie/61820 "2021-05-26T18:19:32Z")

</div>

From the documentation, it is easy to plot a mesh given an array of coordinates and an array of connectivities: using GLMakie coords = \[ 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0 \] connec = \[ 1 2 3 3 4 1 \] mesh(coo…

---

## [Font of annotations?](https://discourse.julialang.org/t/font-of-annotations/14998)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 9:24am UTC](https://discourse.julialang.org/t/font-of-annotations/14998 "2021-05-26T09:24:27Z")

</div>

dear Plots wizards—how do I set the font (size) of annotations? using Plots y= 2:20; x=2:20; f(x,y)=x+y; annotations= \[ (x\[i\],y\[j\],round(f(x\[i\],y\[j\]),digits=2)) for i=1:length(x) for j=1:length(y)\]; plot( ; annotations=…

---

## [KeyError: key "Xorg\_libXrender\_jll" not found](https://discourse.julialang.org/t/keyerror-key-xorg-libxrender-jll-not-found/61770)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 0\
**Last updated:** [May 25, 2021, 10:22am UTC](https://discourse.julialang.org/t/keyerror-key-xorg-libxrender-jll-not-found/61770 "2021-05-25T10:22:24Z")

</div>

I cannot install Plots.jl in Julia 1.6.1 due to the error “KeyError: key “Xorg\_libXrender\_jll” not found”

---

## [Plotting a closed curve in 3D](https://discourse.julialang.org/t/plotting-a-closed-curve-in-3d/61691)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 2:23pm UTC](https://discourse.julialang.org/t/plotting-a-closed-curve-in-3d/61691 "2021-05-24T14:23:06Z")

</div>

How do you plot a closed curve in Julia? For instance using Plots.jl. I would like to draw an ellipse into a 3-dimensional plot.

---

## [Save multiple plots on separate pages of one PDF](https://discourse.julialang.org/t/save-multiple-plots-on-separate-pages-of-one-pdf/41953)

<div class="topic-metadata">

**Author:** [@corbat](https://discourse.julialang.org/u/corbat)\
**Replies:** 3\
**Last updated:** [May 24, 2021, 5:42am UTC](https://discourse.julialang.org/t/save-multiple-plots-on-separate-pages-of-one-pdf/41953 "2021-05-24T05:42:26Z")

</div>

Hi, is there a way to save multiple plots, more precisely multiple figures generated with Plots.jl, on separate pages of a single PDF file?

---

## [Makie - High GPU usage for plots with a lot of points](https://discourse.julialang.org/t/makie-high-gpu-usage-for-plots-with-a-lot-of-points/55199)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 15\
**Last updated:** [May 23, 2021, 6:59pm UTC](https://discourse.julialang.org/t/makie-high-gpu-usage-for-plots-with-a-lot-of-points/55199 "2021-05-23T18:59:29Z")

</div>

My laptop struggles a bit when I plot large numbers of points with Makie. It’s not just while it’s plotting but it carries on using the GPU after the plot’s completed. I’m using Windows 10 on a laptop with a core i7 proc…

---

## [How to layout figures in CairoMakie after they are generated](https://discourse.julialang.org/t/how-to-layout-figures-in-cairomakie-after-they-are-generated/61683)

<div class="topic-metadata">

**Author:** [@vjd](https://discourse.julialang.org/u/vjd)\
**Replies:** 2\
**Last updated:** [May 23, 2021, 4:20pm UTC](https://discourse.julialang.org/t/how-to-layout-figures-in-cairomakie-after-they-are-generated/61683 "2021-05-23T16:20:53Z")

</div>

Note: Question on slack that I reposting here for wider audience. Is there a way to layout figures in CairoMakie after they are generated? e.g. I have julia\> typeof(a1) Figure julia\> typeof(a2) Figure I want to snap …

---

## [Display an image on a GUI](https://discourse.julialang.org/t/display-an-image-on-a-gui/57500)

<div class="topic-metadata">

**Author:** [@Saliha](https://discourse.julialang.org/u/Saliha)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 5:21pm UTC](https://discourse.julialang.org/t/display-an-image-on-a-gui/57500 "2021-05-22T17:21:25Z")

</div>

Hello! I am a beginner with julia programming. I am building a desktop app for a 3d plant architecture model. I am using Interact and blink. I need to insert images to my app (expl logo). I coudn’t find on the Interact …

---

## [Makie - DataInspector - GLFWError (PLATFORM\_ERROR)](https://discourse.julialang.org/t/makie-datainspector-glfwerror-platform-error/61630)

<div class="topic-metadata">

**Author:** [@walra356](https://discourse.julialang.org/u/walra356)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 12:00pm UTC](https://discourse.julialang.org/t/makie-datainspector-glfwerror-platform-error/61630 "2021-05-22T12:00:20Z")

</div>

The DataInspector is a great new asset of Makie. I took it immediately in use. Thanks to the developers! Unfortunately, I found that after inspecting data for some time an unidentified interrupt spoils the joy with the…

---

## [Colorschemes stopped working](https://discourse.julialang.org/t/colorschemes-stopped-working/61574)

<div class="topic-metadata">

**Author:** [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Replies:** 5\
**Last updated:** [May 22, 2021, 4:52am UTC](https://discourse.julialang.org/t/colorschemes-stopped-working/61574 "2021-05-22T04:52:52Z")

</div>

I have a rather strange bug. For seemingly no reason everything related to colorschemes.jl stopped working for me in Julia 1.6, Plots 1.0.14. Colorschemes from ColorSchemes · Plots are not available too. For example usi…

---

## [Blank Heatmaps in GLMakie](https://discourse.julialang.org/t/blank-heatmaps-in-glmakie/61567)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 22\
**Last updated:** [May 21, 2021, 5:48pm UTC](https://discourse.julialang.org/t/blank-heatmaps-in-glmakie/61567 "2021-05-21T17:48:21Z")

</div>

I’ve tried the recent exciting Makie update but heatmaps all seem to come out completely blank. E.g. using GLMakie fig = Figure() ax = fig\[1,1\] = Axis(fig) hm = heatmap!(ax,randn(5, 5), axis = (aspect = 1,)) Colorbar(fi…

---

## [How can I trigger Node(array) after changing array element in Makie?](https://discourse.julialang.org/t/how-can-i-trigger-node-array-after-changing-array-element-in-makie/61414)

<div class="topic-metadata">

**Author:** [@LSellers](https://discourse.julialang.org/u/LSellers)\
**Replies:** 3\
**Last updated:** [May 21, 2021, 5:07pm UTC](https://discourse.julialang.org/t/how-can-i-trigger-node-array-after-changing-array-element-in-makie/61414 "2021-05-21T17:07:19Z")

</div>

The root issue is that when I have data = Node(\[1 2 3 4 5 6\]), I cannot force data to update elsewhere by simply changing the value of one element (data\[\]\[1\] = 0). As far as I can tell, I have to assign data\[\] = \[0 2 3 …

---

## [How to handle missings in CairoMakie](https://discourse.julialang.org/t/how-to-handle-missings-in-cairomakie/61566)

<div class="topic-metadata">

**Author:** [@vjd](https://discourse.julialang.org/u/vjd)\
**Replies:** 4\
**Last updated:** [May 21, 2021, 9:07am UTC](https://discourse.julialang.org/t/how-to-handle-missings-in-cairomakie/61566 "2021-05-21T09:07:51Z")

</div>

How does one handle missing in plots? I am on \[13f3f980\] CairoMakie v0.4.5 Reproducer below. I haven’t grouped by id below, but besides that point, how do we plot dv2. The only way I can see doing that now is to cre…

---

## [Difficulty producing Contour plots of multidimensional data, with x-values different for each time step](https://discourse.julialang.org/t/difficulty-producing-contour-plots-of-multidimensional-data-with-x-values-different-for-each-time-step/61560)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 7:18am UTC](https://discourse.julialang.org/t/difficulty-producing-contour-plots-of-multidimensional-data-with-x-values-different-for-each-time-step/61560 "2021-05-21T07:18:47Z")

</div>

Hi, I have a set of 2-dimensional data, defined over an array of timesteps, but at each timestep the position x-values are different. I’m trying to get contour plots, but the plots come up blank, and each time I get the …

---

## [Generating vertices of a simplex](https://discourse.julialang.org/t/generating-vertices-of-a-simplex/61495)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 5:09am UTC](https://discourse.julialang.org/t/generating-vertices-of-a-simplex/61495 "2021-05-20T05:09:28Z")

</div>

For a model I’ve been working on I needed to generate points (cluster centres) that were located equidistant from each other. Not a terribly hard problem, but I happen to come across this answer on mathoverflow that I fo…

---

## [GtkReactive GUI with a plots.jl image](https://discourse.julialang.org/t/gtkreactive-gui-with-a-plots-jl-image/61471)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 0\
**Last updated:** [May 19, 2021, 10:00pm UTC](https://discourse.julialang.org/t/gtkreactive-gui-with-a-plots-jl-image/61471 "2021-05-19T22:00:27Z")

</div>

I have an array of pixels called points starting as follows: points: HSV{Float64}\[HSV{Float64}(94.21025111030258,0.8823529411764706,1.0) HSV{Float64}(95.58982630472542,0.8823529411764706,1.0) …… I want it to look like…

---

## [How to change color of selected dropdown values in Dash](https://discourse.julialang.org/t/how-to-change-color-of-selected-dropdown-values-in-dash/57193)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [May 18, 2021, 6:49pm UTC](https://discourse.julialang.org/t/how-to-change-color-of-selected-dropdown-values-in-dash/57193 "2021-05-18T18:49:29Z")

</div>

By default, the values selected from a Dash dropdown are displayed in blue text, with blue background. Is there a way to modify these colors? I found: Multivalue dropdown selected values color - #3 by Cloemdz - Dash Pyth…

---

## [Colored surface in Makie](https://discourse.julialang.org/t/colored-surface-in-makie/61009)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 6\
**Last updated:** [May 18, 2021, 2:38am UTC](https://discourse.julialang.org/t/colored-surface-in-makie/61009 "2021-05-18T02:38:00Z")

</div>

I’m trying to draw transparent surfaces in Makie to illustrate separation boundaries between clusters. However, I can’t seem to get the surface function to respect the color argument. It seems to use the default colormap…

---

## [Annotations and line widths in Plots.jl heatmaps](https://discourse.julialang.org/t/annotations-and-line-widths-in-plots-jl-heatmaps/4259)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [May 17, 2021, 9:13pm UTC](https://discourse.julialang.org/t/annotations-and-line-widths-in-plots-jl-heatmaps/4259 "2021-05-17T21:13:08Z")

</div>

One of the nicest features of heatmaps in the Python’s Seaborn module is the ability to annotate heatmaps with the values in the cells, the axes labels, and the line style separating the cells as you can see in these exa…

---

## [Annotations with Plots.jl and PGFPlotsX using plot!(add=..., extra\_kwargs=:subplots)](https://discourse.julialang.org/t/annotations-with-plots-jl-and-pgfplotsx-using-plot-add-extra-kwargs-subplots/61323)

<div class="topic-metadata">

**Author:** [@tapia](https://discourse.julialang.org/u/tapia)\
**Replies:** 0\
**Last updated:** [May 17, 2021, 8:47pm UTC](https://discourse.julialang.org/t/annotations-with-plots-jl-and-pgfplotsx-using-plot-add-extra-kwargs-subplots/61323 "2021-05-17T20:47:12Z")

</div>

Hi, I am relatively new to julia and Plots, but have a solid background with matplotlib and TikZ. I have been using Plots.jl for the last few days together with the PGFPlotX backend and I really like it. One think that I…

---

## [Makie equivalent of matplotlib's \`PolyCollection\`](https://discourse.julialang.org/t/makie-equivalent-of-matplotlibs-polycollection/61061)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 8:16pm UTC](https://discourse.julialang.org/t/makie-equivalent-of-matplotlibs-polycollection/61061 "2021-05-17T20:16:06Z")

</div>

I’m looking to reproduce something like the following in Makie: using PyPlot const PolyCollection = PyPlot.matplotlib.collections.PolyCollection polygon = \[\[0.0, 0.0\], \[1.0, 0.0\], \[0.0, 1.0\]\] # force new axes ax = PyPl…

---

## [X-axis at center of plot](https://discourse.julialang.org/t/x-axis-at-center-of-plot/24015)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 12:12pm UTC](https://discourse.julialang.org/t/x-axis-at-center-of-plot/24015 "2021-05-17T12:12:33Z")

</div>

I want the x-axis to be at the center (y=0) but it is coming out at the bottom. using Plots plotly() plot(\[-1, 0, 1\], line=(:stem, 2), m=(:red, 3), xticks=1:3, xmirror=true, yaxis=false)

---

## [Gadfly: Color Coding a Simple Bar Chart](https://discourse.julialang.org/t/gadfly-color-coding-a-simple-bar-chart/61211)

<div class="topic-metadata">

**Author:** [@ben-schulz](https://discourse.julialang.org/u/ben-schulz)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 4:19pm UTC](https://discourse.julialang.org/t/gadfly-color-coding-a-simple-bar-chart/61211 "2021-05-16T16:19:56Z")

</div>

suppose i’m working in a Jupyter notebook with a Julia kernel, and i want to plot some very simple data in a bar chart, to show the proportion of two quantities A and B, like so: # Julia 1.6.1 using Gadfly p = plot(x=\[…

---

## [Gadfly Title Size](https://discourse.julialang.org/t/gadfly-title-size/61168)

<div class="topic-metadata">

**Author:** [@white-c](https://discourse.julialang.org/u/white-c)\
**Replies:** 4\
**Last updated:** [May 15, 2021, 4:30am UTC](https://discourse.julialang.org/t/gadfly-title-size/61168 "2021-05-15T04:30:29Z")

</div>

I want to have a different font size for a Gadfly Guide.title() versus Guide.xlabel(). Setting major\_label\_font\_size affects both. How do I control the title size separately?

---

## [Makie not passing all tests after update](https://discourse.julialang.org/t/makie-not-passing-all-tests-after-update/61135)

<div class="topic-metadata">

**Author:** [@diogoribeiro98](https://discourse.julialang.org/u/diogoribeiro98)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 1:30pm UTC](https://discourse.julialang.org/t/makie-not-passing-all-tests-after-update/61135 "2021-05-14T13:30:59Z")

</div>

I just updated Makie and it stopped passing all tests. I am unable to use popup windows and I can’t seem to get it working. Here is the test result: (@v1.5) pkg\> test GLMakie Testing GLMakie Status \`C:\\Users\\diogo…

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

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