# Visualization

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

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

**Page:** 49

---

## [How to put a single marker on a heatmap](https://discourse.julialang.org/t/how-to-put-a-single-marker-on-a-heatmap/82447)

<div class="topic-metadata">

**Author:** [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Replies:** 12\
**Last updated:** [June 9, 2022, 8:05pm UTC](https://discourse.julialang.org/t/how-to-put-a-single-marker-on-a-heatmap/82447 "2022-06-09T20:05:03Z")

</div>

I’m using CairoMakie to make a heatmap in Julia 1.7.3 I’d like to add a single smiley face (or really any marker) in the very center of the heatmap, at say 50 x 50. This seems like a super simple task, but I’ve been lo…

---

## [How to fix the x axis for a histogram in Julia](https://discourse.julialang.org/t/how-to-fix-the-x-axis-for-a-histogram-in-julia/82453)

<div class="topic-metadata">

**Author:** [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Replies:** 5\
**Last updated:** [June 9, 2022, 6:13am UTC](https://discourse.julialang.org/t/how-to-fix-the-x-axis-for-a-histogram-in-julia/82453 "2022-06-09T06:13:10Z")

</div>

I’m trying to make a histogram in Julia using hist command from Makie, as detailed here: I would like to control the xlimits, i.e. force the x range to go from 0 to 5. I can’t seem to find anywhere how to do this onl…

---

## [\[AlgebraOfGraphics.jl\] place legend inside figure](https://discourse.julialang.org/t/algebraofgraphics-jl-place-legend-inside-figure/81991)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 9\
**Last updated:** [June 8, 2022, 3:07pm UTC](https://discourse.julialang.org/t/algebraofgraphics-jl-place-legend-inside-figure/81991 "2022-06-08T15:07:44Z")

</div>

Is it possible to place legends inside figures with AlgebraOfGraphics.jl? I am looking for a functionality similar to what Makie.jl’s axislegend function provides.

---

## [Statsplots dendrogram - how to have clustered coloring](https://discourse.julialang.org/t/statsplots-dendrogram-how-to-have-clustered-coloring/50768)

<div class="topic-metadata">

**Author:** [@alailink](https://discourse.julialang.org/u/alailink)\
**Replies:** 12\
**Last updated:** [June 8, 2022, 2:32pm UTC](https://discourse.julialang.org/t/statsplots-dendrogram-how-to-have-clustered-coloring/50768 "2022-06-08T14:32:13Z")

</div>

I’m new to Julia, but already impressed by it’s syntax and by statsplots. However, some functionality is still missing that I miss from Python/R. Specifically for this post, I would like to color-code the output of clus…

---

## [Documentation with interactive WGLMakie visualizations](https://discourse.julialang.org/t/documentation-with-interactive-wglmakie-visualizations/82300)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [June 7, 2022, 8:03pm UTC](https://discourse.julialang.org/t/documentation-with-interactive-wglmakie-visualizations/82300 "2022-06-07T20:03:23Z")

</div>

I am trying to migrate all examples of Meshes.jl documentation to use WGLMakie.jl instead of CairoMakie.jl. When I generate the docs locally the visualizations show up and work nicely with interaction. However, on GitHub…

---

## [How to Handle MissingException in Makie?](https://discourse.julialang.org/t/how-to-handle-missingexception-in-makie/82325)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 6:18pm UTC](https://discourse.julialang.org/t/how-to-handle-missingexception-in-makie/82325 "2022-06-06T18:18:09Z")

</div>

Hi all, I have columns in my dataframe as follows: These columns contain Ints as well as missings. I know that Makie.jl handles missings per this issue: handling vectors with \`Missing\` in type signature (even if the…

---

## [How to display multiple plot windows?](https://discourse.julialang.org/t/how-to-display-multiple-plot-windows/82246)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [June 5, 2022, 10:59am UTC](https://discourse.julialang.org/t/how-to-display-multiple-plot-windows/82246 "2022-06-05T10:59:07Z")

</div>

How can I display multiple plot windows at the same time? I tried: using Plots x=1:0.1:100 y1=sin.(x) y2=cos.(x) p1 = plot(x,y1) p2 = plot(x,y2) display(p1) display(p2) But I always see only the last plot, not two…

---

## [Choosing Colors and Legend in AlgebraOfGraphics](https://discourse.julialang.org/t/choosing-colors-and-legend-in-algebraofgraphics/82152)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 7:55pm UTC](https://discourse.julialang.org/t/choosing-colors-and-legend-in-algebraofgraphics/82152 "2022-06-03T19:55:27Z")

</div>

I’m trying to create a plot comparing two parameters I calculated in Turing.jl. I’ve kind of managed this with the following code: data(avg\_vote) \* aog.density() \* mapping( :avg\_vote=\>"House Popular Vote: Average De…

---

## [Latex strings not working with makie](https://discourse.julialang.org/t/latex-strings-not-working-with-makie/82156)

<div class="topic-metadata">

**Author:** [@moataz-sabry](https://discourse.julialang.org/u/moataz-sabry)\
**Replies:** 6\
**Last updated:** [June 3, 2022, 4:16pm UTC](https://discourse.julialang.org/t/latex-strings-not-working-with-makie/82156 "2022-06-03T16:16:52Z")

</div>

I’m trying to plot some graphs using CairoMakie.jl that contains latex strings. But it doesn’t work as intended. it renders the same string but with a $ before and after. Here is an example from Makie documentation. Any …

---

## [Arrows overlaps points in 3D Axis](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146)

<div class="topic-metadata">

**Author:** [@Mixpap](https://discourse.julialang.org/u/Mixpap)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 6:44pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146 "2022-06-02T18:44:55Z")

</div>

Hi, I don’t know if I am doing something wrong, or if this is already mentioned somewhere else (I searched a lot) but when I am adding an arrow in 3D axis then it is overlapping all the points. For example: using Distr…

---

## [Plot of transient heat conduction](https://discourse.julialang.org/t/plot-of-transient-heat-conduction/81860)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 8:45pm UTC](https://discourse.julialang.org/t/plot-of-transient-heat-conduction/81860 "2022-06-01T20:45:00Z")

</div>

using Plots Δt=0.0001;Δz=0.0001; m=100; l=100 t=zeros(l);z=zeros(l);θ=zeros(l,l) z\[1\]=0;z\[l\]=1;θ\[1,l\]=0;θ\[l,1\]=1; θ\[:,end\]=θ\[:,end-1\] p=plot(); for i in 2:l-1 ,n in 2:l-1 z\[i\]=i\*Δz f=1/(z\[i\]-1) θ\[n,i\]=round(θ\[n+…

---

## [Intermittent "WebIO not detected" after refreshing jupyter notebook (IJulia and PlotlyJS.jl)](https://discourse.julialang.org/t/intermittent-webio-not-detected-after-refreshing-jupyter-notebook-ijulia-and-plotlyjs-jl/82080)

<div class="topic-metadata">

**Author:** [@alicedb](https://discourse.julialang.org/u/alicedb)\
**Replies:** 0\
**Last updated:** [June 1, 2022, 7:51pm UTC](https://discourse.julialang.org/t/intermittent-webio-not-detected-after-refreshing-jupyter-notebook-ijulia-and-plotlyjs-jl/82080 "2022-06-01T19:51:27Z")

</div>

I have this weird problem where after refreshing the page in the browser where the jupyter notebook lives WebIO starts complaining about not being detected in certain situations, but is still detected in others. I don’t …

---

## ["stack order" in Gadfly histogram](https://discourse.julialang.org/t/stack-order-in-gadfly-histogram/82065)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 0\
**Last updated:** [June 1, 2022, 5:03pm UTC](https://discourse.julialang.org/t/stack-order-in-gadfly-histogram/82065 "2022-06-01T17:03:23Z")

</div>

When plotting a “stacked histogram”, I would like the “stack order” to be the same as the legend order - Fair (first / bottom) and Ideal (last / top) - so that the colors are in order from light to dark. Like in this exa…

---

## [Grid layouts stopped working with 3D Axis](https://discourse.julialang.org/t/grid-layouts-stopped-working-with-3d-axis/82059)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [June 1, 2022, 4:02pm UTC](https://discourse.julialang.org/t/grid-layouts-stopped-working-with-3d-axis/82059 "2022-06-01T16:02:12Z")

</div>

This grid layout code used to work in 2D and 3D: using Meshes, MeshViz import CairoMakie as Mke # define a cube in R^3 points = Point3\[(0,0,0),(1,0,0),(1,1,0),(0,1,0),(0,0,1),(1,0,1),(1,1,1),(0,1,1)\] connec = connect.(…

---

## [Makie boxplot: stroke lines for boxes?](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908)

<div class="topic-metadata">

**Author:** [@davide](https://discourse.julialang.org/u/davide)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 7:59am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908 "2022-06-01T07:59:44Z")

</div>

Hi, I would like to draw a boxplot with no fill color and just lines to define the box contour. I am trying: using GLMakie xs = rand(1:3, 99) ys = randn(99) boxplot(xs, ys, color = :transparent, strokewidth = 1) Th…

---

## [Gadfly: how to add bar spacing to stacked plot without shifting off center?](https://discourse.julialang.org/t/gadfly-how-to-add-bar-spacing-to-stacked-plot-without-shifting-off-center/62148)

<div class="topic-metadata">

**Author:** [@alrichar112](https://discourse.julialang.org/u/alrichar112)\
**Replies:** 1\
**Last updated:** [June 1, 2022, 7:26am UTC](https://discourse.julialang.org/t/gadfly-how-to-add-bar-spacing-to-stacked-plot-without-shifting-off-center/62148 "2022-06-01T07:26:20Z")

</div>

I’m having trouble adding bar spacing to a stacked plot, as it is shifting the bars off center. dfsample = CSV.read("dfsample.csv", DataFrame) p = plot(dfsample, x=:Percent, y=:LessonName, color=:PassType, …

---

## [How to link axes on a 3D and a 2D plot?](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992 "2022-05-31T13:48:09Z")

</div>

I have a side-by-side plot like this: and I wish to be able to link up the two common axes by I get a type error with linkxaxis! Am using GLMakie Any suggestions?

---

## [Number of rows / columns for facet wrap in AlgebraOfGraphics](https://discourse.julialang.org/t/number-of-rows-columns-for-facet-wrap-in-algebraofgraphics/81769)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 6:35am UTC](https://discourse.julialang.org/t/number-of-rows-columns-for-facet-wrap-in-algebraofgraphics/81769 "2022-05-31T06:35:40Z")

</div>

Does anyone know of an easy way to specify the number of rows / columns when facet wrapping in AOG? E.g., in the following example I’d like to specify a 3x2 layout instead of 2x3: df = (x=rand(100), y=rand(100), l=rand…

---

## [Write function "show" for own multi-level structure](https://discourse.julialang.org/t/write-function-show-for-own-multi-level-structure/81882)

<div class="topic-metadata">

**Author:** [@Yuri](https://discourse.julialang.org/u/Yuri)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 7:35pm UTC](https://discourse.julialang.org/t/write-function-show-for-own-multi-level-structure/81882 "2022-05-29T19:35:47Z")

</div>

I want to write a function Base.show for my structure Node: mutable struct Node keys::Vector vals::Vector count::Int end and which will display: nod = Node( \["a", "b", "c", "d"\], \[Node( \["…

---

## [Heat flow in 1d](https://discourse.julialang.org/t/heat-flow-in-1d/81711)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 10\
**Last updated:** [May 28, 2022, 10:44am UTC](https://discourse.julialang.org/t/heat-flow-in-1d/81711 "2022-05-28T10:44:09Z")

</div>

I want to Plot Theta vs index " i ". where θ\[i-1\]+b\*θ\[i\]+θ\[i+1\] =0 is the equation that i obtained after discretization . b is parameter. i took m=100 and delta g= 0.01 using Plots begin Δg=0.01 ;m=100 b=-2-(m^2…

---

## [Plots.jl - Strings as xticks](https://discourse.julialang.org/t/plots-jl-strings-as-xticks/20745)

<div class="topic-metadata">

**Author:** [@mariok90](https://discourse.julialang.org/u/mariok90)\
**Replies:** 5\
**Last updated:** [May 27, 2022, 8:45pm UTC](https://discourse.julialang.org/t/plots-jl-strings-as-xticks/20745 "2022-05-27T20:45:59Z")

</div>

I want to replace the xticks with strings. How can I do that? When I run : using Plots xticks = \["$i" for i in 1:10\] plot(rand(10), xticks=xticks) I get an error: Julia Client – Internal Error MethodError: no method …

---

## [Making Plots place its legend in a better spot](https://discourse.julialang.org/t/making-plots-place-its-legend-in-a-better-spot/74986)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 18\
**Last updated:** [May 26, 2022, 10:27am UTC](https://discourse.julialang.org/t/making-plots-place-its-legend-in-a-better-spot/74986 "2022-05-26T10:27:21Z")

</div>

Apparently this is a feature, or not of the backend, and Plots sends legend=:best to them. PyPlot should place the legend in a nice position by default, avoiding the data, but GR apparently does not have this feature. I…

---

## [Heatmap from Matrix with custom indices](https://discourse.julialang.org/t/heatmap-from-matrix-with-custom-indices/81596)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 20\
**Last updated:** [May 25, 2022, 5:13pm UTC](https://discourse.julialang.org/t/heatmap-from-matrix-with-custom-indices/81596 "2022-05-25T17:13:20Z")

</div>

Hello Community! I have data like so where I would like to visualise a heatmap of the TimeDiff\_mean column and the other two columns (representing a reticulation over geographical datapoints). I have sought for one …

---

## [CairoMakie broken rendering of axis and ticklabels](https://discourse.julialang.org/t/cairomakie-broken-rendering-of-axis-and-ticklabels/81635)

<div class="topic-metadata">

**Author:** [@mihrits](https://discourse.julialang.org/u/mihrits)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 9:20am UTC](https://discourse.julialang.org/t/cairomakie-broken-rendering-of-axis-and-ticklabels/81635 "2022-05-25T09:20:58Z")

</div>

I am using CairoMakie to plot some results but found that in some circumstances some characters in axis labels and/or tick labels are rendered as boxes. For example, this code using CairoMakie fig = Figure(size=(200,200…

---

## [Precompiling ImageView generates an infinite cascade of windows](https://discourse.julialang.org/t/precompiling-imageview-generates-an-infinite-cascade-of-windows/81575)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 7:04am UTC](https://discourse.julialang.org/t/precompiling-imageview-generates-an-infinite-cascade-of-windows/81575 "2022-05-25T07:04:00Z")

</div>

Hi there! I’m trying to install ImageView but precompilation doesn’t work. Instead, it spawns an infinite sequence of other (terminal?) windows and I have no choice but to interrupt the process. Has anyone encountered a…

---

## [How to plot ~10 billion datapoint time series efficiently?](https://discourse.julialang.org/t/how-to-plot-10-billion-datapoint-time-series-efficiently/81228)

<div class="topic-metadata">

**Author:** [@hk69](https://discourse.julialang.org/u/hk69)\
**Replies:** 47\
**Last updated:** [May 24, 2022, 11:26am UTC](https://discourse.julialang.org/t/how-to-plot-10-billion-datapoint-time-series-efficiently/81228 "2022-05-24T11:26:35Z")

</div>

Hi, I am relatively new to Julia. I have a physics model that I implemented in Julia. I solve the differential equations to track the orbit of two blackholes over a period of about 5 years with very small time step. My …

---

## [Does Makie.save("name", scene) also save the legends on the plot automatically?](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492)

<div class="topic-metadata">

**Author:** [@Nihilol1](https://discourse.julialang.org/u/Nihilol1)\
**Replies:** 6\
**Last updated:** [May 23, 2022, 8:00pm UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492 "2022-05-23T20:00:27Z")

</div>

My simplified code looks as follows: using GLMakie fig1 = Figure() ax1 = Axis(fig1\[1,1\], xlabel = “What”, ylabel = “is going on”) GLMakie.scatter!(ax1, xvalues, yvalues, makersize = 4, color = colours, label = “pleas…

---

## [Interpolating scattered data points to create topological EEG voltage map](https://discourse.julialang.org/t/interpolating-scattered-data-points-to-create-topological-eeg-voltage-map/78622)

<div class="topic-metadata">

**Author:** [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Replies:** 2\
**Last updated:** [May 23, 2022, 6:11pm UTC](https://discourse.julialang.org/t/interpolating-scattered-data-points-to-create-topological-eeg-voltage-map/78622 "2022-05-23T18:11:01Z")

</div>

I have a dataset with EEG data that I read into Julia from Matlab file. The data is for a single time point from simultaneous 64 channels. Each channel has x, y coordinates, and value at those coordinates. My aim is to i…

---

## [Makie Layoutables documentation and SliderGrid Example Error](https://discourse.julialang.org/t/makie-layoutables-documentation-and-slidergrid-example-error/81478)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 5\
**Last updated:** [May 23, 2022, 4:57pm UTC](https://discourse.julialang.org/t/makie-layoutables-documentation-and-slidergrid-example-error/81478 "2022-05-23T16:57:59Z")

</div>

I am having difficulty finding documentation on Makie layoutables. Blocks & Widgets has some nice examples but where can I find more detailed documentation on the various CURRENT blocks? In addition, the SliderGrid exa…

---

## [Animated image to illustrate sequence of moves](https://discourse.julialang.org/t/animated-image-to-illustrate-sequence-of-moves/81412)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 5\
**Last updated:** [May 23, 2022, 7:20am UTC](https://discourse.julialang.org/t/animated-image-to-illustrate-sequence-of-moves/81412 "2022-05-23T07:20:30Z")

</div>

I would like to know if it is possible to show the solutions of this problem in a dynamic way with an animated sequence of images that illustrate the various steps of the solution sequence. In summary I have a nxn table…

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

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