# Visualization

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

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

**Page:** 27

---

## [Grouped boxplot - https://github.com/JuliaPlots/StatsPlots.jl/pull/192](https://discourse.julialang.org/t/grouped-boxplot-https-github-com-juliaplots-statsplots-jl-pull-192/44655)

<div class="topic-metadata">

**Author:** [@Ibrahim-a-Ibrahim](https://discourse.julialang.org/u/Ibrahim-a-Ibrahim)\
**Replies:** 7\
**Last updated:** [November 10, 2023, 6:37pm UTC](https://discourse.julialang.org/t/grouped-boxplot-https-github-com-juliaplots-statsplots-jl-pull-192/44655 "2023-11-10T18:37:25Z")

</div>

I have a 3D array (24×3×3 Array{Float64,3}) as follows: x=rand(24,2,3) How can I plot a grouped boxplot for x as shown in the following figure?

---

## [Plotting polyhedron with Makie](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306)

<div class="topic-metadata">

**Author:** [@jerjorg](https://discourse.julialang.org/u/jerjorg)\
**Replies:** 4\
**Last updated:** [November 10, 2023, 3:49pm UTC](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306 "2023-11-10T15:49:52Z")

</div>

I am new to Julia and my question and problem may be really simple. I am trying to plot a polyhedron with Makie. I have been following the examples provided by the documentation for the Polyhedra package here and here, b…

---

## [Hide/Remove/Replace widgets from Makie.jl reactive plots](https://discourse.julialang.org/t/hide-remove-replace-widgets-from-makie-jl-reactive-plots/106029)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 0\
**Last updated:** [November 10, 2023, 11:36am UTC](https://discourse.julialang.org/t/hide-remove-replace-widgets-from-makie-jl-reactive-plots/106029 "2023-11-10T11:36:52Z")

</div>

Hello everyone, I have a question about Makie. Just for context, I have a reactive plot that has a Makie.Colorbar, but when the Colorbar limits are equal it breaks. So my question is: Can I hide/remove the Colorbar or…

---

## [Adding custom color scales to plots](https://discourse.julialang.org/t/adding-custom-color-scales-to-plots/106004)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 12:54am UTC](https://discourse.julialang.org/t/adding-custom-color-scales-to-plots/106004 "2023-11-10T00:54:33Z")

</div>

I have a line plot simply constructed from a vector x and a vector y, I have then computed a colors vector which corresponds to each x value. I want to add a color scale of sorts below my plot (or on the plot but below t…

---

## [How to make numbers/texts appear as one single text object in Makie?](https://discourse.julialang.org/t/how-to-make-numbers-texts-appear-as-one-single-text-object-in-makie/105977)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 7:13pm UTC](https://discourse.julialang.org/t/how-to-make-numbers-texts-appear-as-one-single-text-object-in-makie/105977 "2023-11-09T19:13:57Z")

</div>

When I generate vector graphics using CairoMakie, very often in the output figure (in .pdf) the axis numbers, labels and text (using text!() or Label()) consists of numbers and words which are ‘disconnected’ when I inspe…

---

## [Reduce image size and filter?](https://discourse.julialang.org/t/reduce-image-size-and-filter/105926)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 9:52pm UTC](https://discourse.julialang.org/t/reduce-image-size-and-filter/105926 "2023-11-08T21:52:39Z")

</div>

I’m working with a physically-based rendering image (HDR, units of radiance or irradiance in an RGB model) and I would like to create an unsharp mask from it, reducing the size and applying a box filter. I am not seeing …

---

## [Makie: Coordinates of objects in the "scene" coordinates?](https://discourse.julialang.org/t/makie-coordinates-of-objects-in-the-scene-coordinates/105907)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 7:42am UTC](https://discourse.julialang.org/t/makie-coordinates-of-objects-in-the-scene-coordinates/105907 "2023-11-08T07:42:43Z")

</div>

This is a continuation of the thread that I link at the end of this message. There I went off topic and so I thought it’s wiser to start a new thread instead of posting further questions there. My question is, how do y…

---

## [Battling Tableau at Work](https://discourse.julialang.org/t/battling-tableau-at-work/105804)

<div class="topic-metadata">

**Author:** [@merlin](https://discourse.julialang.org/u/merlin)\
**Replies:** 8\
**Last updated:** [November 5, 2023, 8:18pm UTC](https://discourse.julialang.org/t/battling-tableau-at-work/105804 "2023-11-05T20:18:02Z")

</div>

At my mid-sized US tech company we are adopting more and more of the Tableau ecosystem. Not just the notebooks or server, but there is a cloud service and I was surprised to learn some form of orchestration and data pipe…

---

## [Different visual types for different y axis variables](https://discourse.julialang.org/t/different-visual-types-for-different-y-axis-variables/105771)

<div class="topic-metadata">

**Author:** [@gsinha](https://discourse.julialang.org/u/gsinha)\
**Replies:** 0\
**Last updated:** [November 3, 2023, 7:41pm UTC](https://discourse.julialang.org/t/different-visual-types-for-different-y-axis-variables/105771 "2023-11-03T19:41:34Z")

</div>

How would I get y to be a scatter and yhat to be a scatterline in the following statement? data(df) \* mapping(:x, \[y, yhat\], color = dims(1) =\> renamer(\["Actual", "Predicted"\])) |\> draw;

---

## [Scale Division in Makie](https://discourse.julialang.org/t/scale-division-in-makie/105650)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 1:17pm UTC](https://discourse.julialang.org/t/scale-division-in-makie/105650 "2023-11-01T13:17:27Z")

</div>

Hi, I was wondering if there is a way to put a scale division in a heatmap plot using Makie. See the following plot as a reference, where I would like to implement both the line and the value in the corner that is positi…

---

## [How to plot a sequence of probability density functions as lines in (pseudo) 3D?](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 11:42am UTC](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614 "2023-11-02T11:42:25Z")

</div>

Given a set of PDFs f1(x), f2(x) etc., I’d like to plot something like this: The closest method I found is density from Makie, but it doesn’t work with functions or their values per se. How can I make such a plot?

---

## [Makie series plot with only one label for legend?](https://discourse.julialang.org/t/makie-series-plot-with-only-one-label-for-legend/105403)

<div class="topic-metadata">

**Author:** [@matthew3245](https://discourse.julialang.org/u/matthew3245)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 5:13am UTC](https://discourse.julialang.org/t/makie-series-plot-with-only-one-label-for-legend/105403 "2023-11-02T05:13:16Z")

</div>

Does anyone know if its possible to make a series plot that includes only one label for the whole series (instead of an array of labels that get displayed on the legend). For example, say I had some experimental trial d…

---

## [What does \`density()\` do when applied to a \`Distribution\` directly?](https://discourse.julialang.org/t/what-does-density-do-when-applied-to-a-distribution-directly/105621)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 6\
**Last updated:** [November 1, 2023, 10:18pm UTC](https://discourse.julialang.org/t/what-does-density-do-when-applied-to-a-distribution-directly/105621 "2023-11-01T22:18:12Z")

</div>

I just started experimenting with Distributions.jl and StatsPlots.jl, and made a basic mistake, writing density(Normal()) instead of density(rand(Normal(), 100\_000)) or plot(Normal()). When executing julia\> plot(Normal(…

---

## [PlotlyJS updates](https://discourse.julialang.org/t/plotlyjs-updates/105153)

<div class="topic-metadata">

**Author:** [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Replies:** 5\
**Last updated:** [November 1, 2023, 9:37am UTC](https://discourse.julialang.org/t/plotlyjs-updates/105153 "2023-11-01T09:37:31Z")

</div>

I recommend PlutoPlotly a lot to people here and elsewhere. But maybe you could expand on what the barriers are (technical or otherwise) to maybe integrating the codes of PlutoPlotly and PlotlyBase/PlotlyJS?

---

## [Formating decimal separator in xticks when plotting with PlotlyJS](https://discourse.julialang.org/t/formating-decimal-separator-in-xticks-when-plotting-with-plotlyjs/105641)

<div class="topic-metadata">

**Author:** [@nnguyengiatan](https://discourse.julialang.org/u/nnguyengiatan)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 5:59am UTC](https://discourse.julialang.org/t/formating-decimal-separator-in-xticks-when-plotting-with-plotlyjs/105641 "2023-11-01T05:59:25Z")

</div>

Hi all, I have the dataset as follow: df = DataFrame( kvkt = \[ "Service", "Service", "Service", "Service", "Service", "Manufacturing", "Manufacturing", "Manufacturing", "Manufacturing", "Manufacturin…

---

## [DataViewer.jl supported data file formats](https://discourse.julialang.org/t/dataviewer-jl-supported-data-file-formats/105569)

<div class="topic-metadata">

**Author:** [@rajmac](https://discourse.julialang.org/u/rajmac)\
**Replies:** 15\
**Last updated:** [October 31, 2023, 6:00pm UTC](https://discourse.julialang.org/t/dataviewer-jl-supported-data-file-formats/105569 "2023-10-31T18:00:56Z")

</div>

I was interested in the recent post on DataViewer.jl and wondered if it could be used with csv files or whether it requires hf5/jdl2/json datafiles?

---

## [How to add the drop-shadow effect to contour plots in Julia with Plots.jl (or Makie.jl)](https://discourse.julialang.org/t/how-to-add-the-drop-shadow-effect-to-contour-plots-in-julia-with-plots-jl-or-makie-jl/105604)

<div class="topic-metadata">

**Author:** [@jondoe297](https://discourse.julialang.org/u/jondoe297)\
**Replies:** 0\
**Last updated:** [October 31, 2023, 1:04am UTC](https://discourse.julialang.org/t/how-to-add-the-drop-shadow-effect-to-contour-plots-in-julia-with-plots-jl-or-makie-jl/105604 "2023-10-31T01:04:27Z")

</div>

I am very new to Julia, coming from python. I am trying to make a contour plot with drop-shadow effect. (From Scientific Visualization Book) import scipy import numpy as np import matplotlib.pyplot as plt from matplotli…

---

## [Matlab figure replacement](https://discourse.julialang.org/t/matlab-figure-replacement/74942)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 24\
**Last updated:** [October 30, 2023, 4:41pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942 "2023-10-30T16:41:04Z")

</div>

In Matlab it is possible to make a figure and save it to disk. If you re-open this figure you can still zoome, have linked axis and so on. Is there a Julia equivalent? I tried PlotlyJS.jl and saving the plot as a html …

---

## [Displaying a 3D scatter with a lot of data crashes](https://discourse.julialang.org/t/displaying-a-3d-scatter-with-a-lot-of-data-crashes/105352)

<div class="topic-metadata">

**Author:** [@yuvalw](https://discourse.julialang.org/u/yuvalw)\
**Replies:** 3\
**Last updated:** [October 29, 2023, 9:37am UTC](https://discourse.julialang.org/t/displaying-a-3d-scatter-with-a-lot-of-data-crashes/105352 "2023-10-29T09:37:36Z")

</div>

Hello, Is there an efficient way to do this? I’m having crashes with even 1000 data points. I noticed that using different colors for data points (i.e. zcolor) makes the figure 10x heavier upon saving. I would like to …

---

## [MethodError: no method matching Plot(::Vector{Any}, ::Layout{Dict{Symbol, Any}})](https://discourse.julialang.org/t/methoderror-no-method-matching-plot-vector-any-layout-dict-symbol-any/105501)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 1\
**Last updated:** [October 28, 2023, 1:15pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-plot-vector-any-layout-dict-symbol-any/105501 "2023-10-28T13:15:52Z")

</div>

scatter\_data = \[\]; for col in names(国家财政收入)\[2:3\] 国家财政收入\[!, col\] .= (国家财政收入\[!, col\] ./ 财政收入合计) push!(scatter\_data, scatter(国家财政收入, x = :年份, y = :col, name = col)) end scatter\_data returns 2-element Vector{Any} …

---

## [Remove whitespace between Axis3 and Label](https://discourse.julialang.org/t/remove-whitespace-between-axis3-and-label/105461)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 4\
**Last updated:** [October 27, 2023, 8:19am UTC](https://discourse.julialang.org/t/remove-whitespace-between-axis3-and-label/105461 "2023-10-27T08:19:28Z")

</div>

I want to get my label closer to the axis. I have tried every combination of Axis3 and label options I can think of, and resizing the figure, but I haven’t improved on this. Is there a version of rowgap that could be use…

---

## [Makie: Isosurface colored by values from another array](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 26\
**Last updated:** [October 25, 2023, 10:59am UTC](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318 "2023-10-25T10:59:00Z")

</div>

I have two 3D arrays. I would like to make an isosurface from the first one and color it using the values of the second array. As far as I understand, a possible solution would be to construct a mesh for the isosurface (…

---

## [Resize plot with PlotlyJS](https://discourse.julialang.org/t/resize-plot-with-plotlyjs/105346)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 0\
**Last updated:** [October 24, 2023, 12:35pm UTC](https://discourse.julialang.org/t/resize-plot-with-plotlyjs/105346 "2023-10-24T12:35:26Z")

</div>

I usually work with the default GR backend in Plots.jl, but I needed interactivity for some 3D plots. The issue is, the default window size is too small, but if I rescale the window the plot stays the same size. Is there…

---

## [Makie: Put text at arbitrary position outside the frame](https://discourse.julialang.org/t/makie-put-text-at-arbitrary-position-outside-the-frame/105322)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [October 24, 2023, 9:44am UTC](https://discourse.julialang.org/t/makie-put-text-at-arbitrary-position-outside-the-frame/105322 "2023-10-24T09:44:54Z")

</div>

From a past thread (see below), I learned how to put arbitrary text outside the frame. But, am I right that it’s impossible or extremely tedious to put text at an arbitrary position? I’ve plotted the following figure, w…

---

## [AoG "range step cannot be zero"](https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 14\
**Last updated:** [October 24, 2023, 9:27am UTC](https://discourse.julialang.org/t/aog-range-step-cannot-be-zero/87624 "2023-10-24T09:27:13Z")

</div>

I don’t have an MWE but maybe someone has a guess what this means? ERROR: ArgumentError: range step cannot be zero Stacktrace: \[1\] (::Colon)(start::Float32, step::Float32, stop::Float32) @ Base ./twiceprecision.jl…

---

## [Makie: align y axes at the origin (y=0) for different y ranges](https://discourse.julialang.org/t/makie-align-y-axes-at-the-origin-y-0-for-different-y-ranges/105282)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 5:18pm UTC](https://discourse.julialang.org/t/makie-align-y-axes-at-the-origin-y-0-for-different-y-ranges/105282 "2023-10-23T17:18:30Z")

</div>

I’m trying to create a single line graph plotting totally different multiple quantities with more than two y axes. I’m almost successful. See the plot below. One thing that I don’t know how to achieve is to align the y…

---

## [Makie - Is there a way to draw text on the surface of a mesh?](https://discourse.julialang.org/t/makie-is-there-a-way-to-draw-text-on-the-surface-of-a-mesh/105290)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 9:11am UTC](https://discourse.julialang.org/t/makie-is-there-a-way-to-draw-text-on-the-surface-of-a-mesh/105290 "2023-10-23T09:11:02Z")

</div>

Hello. Is there a way in Makie to draw text on the surface of a mesh? that is to say if I have fig = figure() mesh!(fig\[1,1\], v, t) text!(fig\[1,1\], -0.4, 0.2, 0.4; text = "OK") is there a way to have the text be place…

---

## [Question about PGFPlotsX](https://discourse.julialang.org/t/question-about-pgfplotsx/105295)

<div class="topic-metadata">

**Author:** [@Isaac\_Smith](https://discourse.julialang.org/u/Isaac_Smith)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 9:00am UTC](https://discourse.julialang.org/t/question-about-pgfplotsx/105295 "2023-10-23T09:00:06Z")

</div>

In the Plots.jl documentation about the PGFPlotsX backend, they mention how exporting the plot as a tikzpicture allows the user to rescale the plot using \\includegraphics, but I am not quite understanding how you would d…

---

## [Penguin Pair Plot](https://discourse.julialang.org/t/penguin-pair-plot/105296)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 0\
**Last updated:** [October 23, 2023, 12:54am UTC](https://discourse.julialang.org/t/penguin-pair-plot/105296 "2023-10-23T00:54:47Z")

</div>

Code is ugly,Importantly it works, and I think it’s looking good using MLJ, DataFrames, GLMakie, CSV, Pipe # 1. data processing fetch(str) = str |\> d -\> CSV.File(d, missingstring="NA") |\> DataFrame |\> dropmissing to…

---

## [Customizing Makie rectangle zoom mouse interaction and axis limits](https://discourse.julialang.org/t/customizing-makie-rectangle-zoom-mouse-interaction-and-axis-limits/104448)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 8\
**Last updated:** [October 21, 2023, 3:47pm UTC](https://discourse.julialang.org/t/customizing-makie-rectangle-zoom-mouse-interaction-and-axis-limits/104448 "2023-10-21T15:47:52Z")

</div>

I am trying to create a Makie dashboard where several axes (e.g. x-y, t-z) with the same data points will update simultaneously based on the mouse selection of data in any of the axes. I made an observable, selection\[\],…

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

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