# Visualization

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

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

**Page:** 67

---

## [Makie - How to choose alignment of an axis that does not fill its allocated layout](https://discourse.julialang.org/t/makie-how-to-choose-alignment-of-an-axis-that-does-not-fill-its-allocated-layout/60725)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 3\
**Last updated:** [May 13, 2021, 3:08pm UTC](https://discourse.julialang.org/t/makie-how-to-choose-alignment-of-an-axis-that-does-not-fill-its-allocated-layout/60725 "2021-05-13T15:08:54Z")

</div>

When choosing DataAspect for an axis and setting the limits manually, it is not uncommon for an axis to not fill all the space at its disposition. As far as I know this is unavoidable since in this case the aspect ratio …

---

## [Makie - Inset axes and their drawing order](https://discourse.julialang.org/t/makie-inset-axes-and-their-drawing-order/60987)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 5\
**Last updated:** [May 13, 2021, 2:42pm UTC](https://discourse.julialang.org/t/makie-inset-axes-and-their-drawing-order/60987 "2021-05-13T14:42:47Z")

</div>

If I understand correctly inset axes can be create rather easily in Makie by putting multiple axes in the same layout position. Something as follow: fig = Figure(resolution=(500, 500)) # The main axis density\_ax = Axis…

---

## [Animate with While loop in Julia](https://discourse.julialang.org/t/animate-with-while-loop-in-julia/61069)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 4\
**Last updated:** [May 13, 2021, 10:27am UTC](https://discourse.julialang.org/t/animate-with-while-loop-in-julia/61069 "2021-05-13T10:27:24Z")

</div>

Is it possible to implement plot animation within while loop in Julia? I’m trying to translate a code that my professor gave me in Matlab. (Top Opt - Sigmund 99 line matlab code) It seems both @gif and @animate support …

---

## [CairoMakie AssertionError: length(positions) == length(colors) when trying to record](https://discourse.julialang.org/t/cairomakie-assertionerror-length-positions-length-colors-when-trying-to-record/61001)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 2\
**Last updated:** [May 13, 2021, 3:56am UTC](https://discourse.julialang.org/t/cairomakie-assertionerror-length-positions-length-colors-when-trying-to-record/61001 "2021-05-13T03:56:41Z")

</div>

Hi, I’ve been trying to make this code run but I don’t know how to fix a problem. I think the problem happens too deep in the stack call that I just cannot find where in particular is it occurring: My goal is to have an…

---

## [PGFPlotsX dependency ArgCheck](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979)

<div class="topic-metadata">

**Author:** [@GregR](https://discourse.julialang.org/u/GregR)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 11:36pm UTC](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979 "2021-05-11T23:36:57Z")

</div>

It looks like the package ArgCheck.jl got deregistered, or whatever happens when the Package Manager doesn’t know about a package. So this breaks PGFPlotsX. I am using Julia 1.6.1. But the github repository is here: …

---

## [WGLMakie doesn't display in browser](https://discourse.julialang.org/t/wglmakie-doesnt-display-in-browser/60868)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [May 11, 2021, 10:30pm UTC](https://discourse.julialang.org/t/wglmakie-doesnt-display-in-browser/60868 "2021-05-11T22:30:06Z")

</div>

I’m trying to copy the jsserve-wglmakie example. I cloned JSServe.jl, installed WGLMakie and ran JSServe.browser\_display() app = App() do return scatter(1:5,1:5) end display(app) but the page in the bro…

---

## [What should the default color space for \`YCbCr\` be?](https://discourse.julialang.org/t/what-should-the-default-color-space-for-ycbcr-be/60874)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 3\
**Last updated:** [May 11, 2021, 10:53am UTC](https://discourse.julialang.org/t/what-should-the-default-color-space-for-ycbcr-be/60874 "2021-05-11T10:53:54Z")

</div>

Hi all, I (we) will make a clarification about the default color space for each color type in the next minor releases of ColorTypes.jl and Colors.jl. Of the color types defined in ColorTypes.jl, the definition of YCbCr …

---

## [Plotlyjs - merged legend for both subplots](https://discourse.julialang.org/t/plotlyjs-merged-legend-for-both-subplots/60873)

<div class="topic-metadata">

**Author:** [@stej](https://discourse.julialang.org/u/stej)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 1:41pm UTC](https://discourse.julialang.org/t/plotlyjs-merged-legend-for-both-subplots/60873 "2021-05-10T13:41:12Z")

</div>

Hi, this is followup of Plotly.js - stacked bars in subplots - #3 by stej I have this code ########### using PlotlyJS, Dates dates = \[Date(2021, 05, 08), Date(2021, 05, 09), Date(2021, 05, 10)\] trace1 = bar(; x = dat…

---

## [Change labels in existing plot (Plots package)](https://discourse.julialang.org/t/change-labels-in-existing-plot-plots-package/60738)

<div class="topic-metadata">

**Author:** [@liviomaya](https://discourse.julialang.org/u/liviomaya)\
**Replies:** 3\
**Last updated:** [May 8, 2021, 5:47pm UTC](https://discourse.julialang.org/t/change-labels-in-existing-plot-plots-package/60738 "2021-05-08T17:47:06Z")

</div>

I have a pre-existing figure with multiple curves and an existing label vector. I need to change the labels - probably using the plot! command - but I am not able to do it. I don’t think this is not a row vector label is…

---

## [Different behavior of zcolor in Scatter and Plot](https://discourse.julialang.org/t/different-behavior-of-zcolor-in-scatter-and-plot/22412)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 5:09pm UTC](https://discourse.julialang.org/t/different-behavior-of-zcolor-in-scatter-and-plot/22412 "2020-05-22T17:09:12Z")

</div>

Hello, I noticed that I can change the color of markers easily in Scatter, but not in Plots. Here an example: using Plots x = 1:0.1:10 y1 = x .+ 1 y2 = x .+ 2 y3 = x .+ 3 scatter(x, y1, color=:reds, zcolor=1) s…

---

## [Indicate data outside the plotting area](https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 2:18pm UTC](https://discourse.julialang.org/t/indicate-data-outside-the-plotting-area/60646 "2021-05-06T14:18:12Z")

</div>

I was doing some boxplots using StatsPlots and I had some outliers. To show the boxes I used ylims! to better show their distribution, but the outliers were off the plot. Is it possible to show a marker at the side of…

---

## [Which plots backends, currently are the best for article publication?](https://discourse.julialang.org/t/which-plots-backends-currently-are-the-best-for-article-publication/47668)

<div class="topic-metadata">

**Author:** [@SymKo](https://discourse.julialang.org/u/SymKo)\
**Replies:** 32\
**Last updated:** [May 6, 2021, 11:14am UTC](https://discourse.julialang.org/t/which-plots-backends-currently-are-the-best-for-article-publication/47668 "2021-05-06T11:14:31Z")

</div>

Hello everyone, someone published article with charts made in julia? Which backend is the best: poll poll poll poll poll poll Someone know research publication with charts made in julia?

---

## [Side by side violin plots with VegaLite.jl](https://discourse.julialang.org/t/side-by-side-violin-plots-with-vegalite-jl/60523)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 15\
**Last updated:** [May 5, 2021, 8:56pm UTC](https://discourse.julialang.org/t/side-by-side-violin-plots-with-vegalite-jl/60523 "2021-05-05T20:56:43Z")

</div>

Hi I want to present some data to a colleague, whilst also showing off Julia. I have data for an effect that varies according to species and treatment. There are 2 treatments and I would like to display effect sizes as …

---

## [Problems upgrading Makie](https://discourse.julialang.org/t/problems-upgrading-makie/60571)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 12:47pm UTC](https://discourse.julialang.org/t/problems-upgrading-makie/60571 "2021-05-05T12:47:25Z")

</div>

Hi all I’m currently losing the will to live with this. Though I’m probably just overlooking something obvious. I’m trying to update Makie.jl to the latest version. But I get the following error: ERROR: Unsatisfiable r…

---

## [Plots.jl Align legend labels, :right not working](https://discourse.julialang.org/t/plots-jl-align-legend-labels-right-not-working/60493)

<div class="topic-metadata">

**Author:** [@VMHidalgo](https://discourse.julialang.org/u/VMHidalgo)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 10:49pm UTC](https://discourse.julialang.org/t/plots-jl-align-legend-labels-right-not-working/60493 "2021-05-04T22:49:22Z")

</div>

Hi, I am getting familiar with the Plots recipes ecosystem, and I just wrote my first recipe but the attribute “legendfonthalign” does not seem to work. Does anyone know how to do it? Here is a MWE @recipe function f(…

---

## [What is a good way to delete lines in Makie?](https://discourse.julialang.org/t/what-is-a-good-way-to-delete-lines-in-makie/60478)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 1:19pm UTC](https://discourse.julialang.org/t/what-is-a-good-way-to-delete-lines-in-makie/60478 "2021-05-04T13:19:38Z")

</div>

I have a diagram in a layout that is changing depending on user input. This means I need to delete the line and change the axis label again and again. What is the best way to do that? This is my current approach, but it…

---

## [What’s the outlook on \`meshscatter\` supporting an array of markers?](https://discourse.julialang.org/t/what-s-the-outlook-on-meshscatter-supporting-an-array-of-markers/60505)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 11:55am UTC](https://discourse.julialang.org/t/what-s-the-outlook-on-meshscatter-supporting-an-array-of-markers/60505 "2021-05-04T11:55:16Z")

</div>

The question is mostly if the underlying engine in GLMakie allows this and it is just not exposed or if there are other reasons why this is not available.

---

## [Can WGLMakie display a 2D plot in Jupyter Notebook?](https://discourse.julialang.org/t/can-wglmakie-display-a-2d-plot-in-jupyter-notebook/60458)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 1\
**Last updated:** [May 4, 2021, 9:34am UTC](https://discourse.julialang.org/t/can-wglmakie-display-a-2d-plot-in-jupyter-notebook/60458 "2021-05-04T09:34:28Z")

</div>

From docs it’s not clear whether a 2D plot, generated by WGLMakie, can be displayed in IJulia or not. If it is possible I’d be very grateful for an explicit example. Thanks!

---

## [Makie - connecting Slider to update a 2D slice \[matrix\] heatmap display of a 3D array](https://discourse.julialang.org/t/makie-connecting-slider-to-update-a-2d-slice-matrix-heatmap-display-of-a-3d-array/60477)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 8:05pm UTC](https://discourse.julialang.org/t/makie-connecting-slider-to-update-a-2d-slice-matrix-heatmap-display-of-a-3d-array/60477 "2021-05-03T20:05:57Z")

</div>

Hello, I would like to connect a Slider to an heatmap display of a 2D slice, i.e, matrix, of a 3D array: a3DArray\[:, :, sliderValue\]. such that as the Slider is moved, a new 2D slice is selected/indexed and the 2D heat…

---

## [Plots.jl: Side-by-side subplots](https://discourse.julialang.org/t/plots-jl-side-by-side-subplots/60469)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 7:17pm UTC](https://discourse.julialang.org/t/plots-jl-side-by-side-subplots/60469 "2021-05-03T19:17:57Z")

</div>

Hi, I want make 2 subplots with 2 function plots each in a 1-row 2-columns format. Below is a minimum working example for my use case. x = -2π:0.1:+2π y11 = sin.(x) y12 = sin.(x .+ 0.25π) y21 = cos.(x) y22 = sin.(x) .\*…

---

## [Makie.jl resize event](https://discourse.julialang.org/t/makie-jl-resize-event/60418)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [May 2, 2021, 8:21pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418 "2021-05-02T20:21:14Z")

</div>

Hello, one more question: Is it possible in GLMakie to capture window resize events? I need this because the automatic layout is not doing 100% what I want.

---

## [Plotting an ellipsoid as 2D surface in 3D, given the principal axes](https://discourse.julialang.org/t/plotting-an-ellipsoid-as-2d-surface-in-3d-given-the-principal-axes/60393)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 14\
**Last updated:** [May 2, 2021, 3:28pm UTC](https://discourse.julialang.org/t/plotting-an-ellipsoid-as-2d-surface-in-3d-given-the-principal-axes/60393 "2021-05-02T15:28:17Z")

</div>

Hi there, Let’s say I have some lengths \[5.0, 2.0, 1.0\] and I want to plot an ellipsoid whose axis have these lengths as a surface in 3D. Extra bonus if I can also provide two angles of rotation for azimuth / polar angl…

---

## [Plotly hovermode](https://discourse.julialang.org/t/plotly-hovermode/60336)

<div class="topic-metadata">

**Author:** [@cyrieln](https://discourse.julialang.org/u/cyrieln)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 6:25pm UTC](https://discourse.julialang.org/t/plotly-hovermode/60336 "2021-04-30T18:25:36Z")

</div>

Hi there! I was wondering if it is possible to change Plots’ plotlyjs default hovermode to closest. I have a scatterplot with thousands of points and I’d like to show hover info on each point but only the closest one. R…

---

## [Unable to plot a sphere surface using Plots package](https://discourse.julialang.org/t/unable-to-plot-a-sphere-surface-using-plots-package/60194)

<div class="topic-metadata">

**Author:** [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 8:54pm UTC](https://discourse.julialang.org/t/unable-to-plot-a-sphere-surface-using-plots-package/60194 "2021-04-29T20:54:23Z")

</div>

I am trying to follow a tutorial on youtube for SVD, and the instructor created a sphere using Python. I am trying to translate the code to Julia n = 100 u = range(-π, π; length = n) v = range(0, π; length = n) x = cos.…

---

## [How to plot with manually created legend entries?](https://discourse.julialang.org/t/how-to-plot-with-manually-created-legend-entries/60024)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 14\
**Last updated:** [April 29, 2021, 10:52am UTC](https://discourse.julialang.org/t/how-to-plot-with-manually-created-legend-entries/60024 "2021-04-29T10:52:04Z")

</div>

I created my own legend entries following the docs, now I’d like to plot with them. MWE: using GLMakie legendentries = Dict("A" =\> LineElement(linestyle = nothing, linewidth = 0.3, color = :red), "…

---

## [Geom.contour in Gadfly.jl - How to use it?](https://discourse.julialang.org/t/geom-contour-in-gadfly-jl-how-to-use-it/60123)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 5\
**Last updated:** [April 28, 2021, 2:06pm UTC](https://discourse.julialang.org/t/geom-contour-in-gadfly-jl-how-to-use-it/60123 "2021-04-28T14:06:39Z")

</div>

I am trying to draw iso-density contours on a plot. Yet, it seems I am drawing lines all over the place – as opposed to contours representing different iso-densities (plot should be top-view of a mountain). I tried po…

---

## [Plot without updating limits](https://discourse.julialang.org/t/plot-without-updating-limits/60157)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [April 28, 2021, 10:32am UTC](https://discourse.julialang.org/t/plot-without-updating-limits/60157 "2021-04-28T10:32:08Z")

</div>

I want to plot a bunch of concentric circles but I don’t want them to update the limits of the axis. The idea is to show radial distance to some specific point. Any way I can do that? So instead of: I’d like to have…

---

## [Colorbar and colsize](https://discourse.julialang.org/t/colorbar-and-colsize/60093)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 7\
**Last updated:** [April 28, 2021, 10:00am UTC](https://discourse.julialang.org/t/colorbar-and-colsize/60093 "2021-04-28T10:00:51Z")

</div>

I can’t figure out how to make this plot. I want a column of Aspect(1,1) heatmaps down the left, with matching rectangle plots on the right that take up the space. I can get here fine: fig = Figure(resolution=(1192, 20…

---

## [Unable to use PyPlot either in Jupyter notebook or in terminal](https://discourse.julialang.org/t/unable-to-use-pyplot-either-in-jupyter-notebook-or-in-terminal/60126)

<div class="topic-metadata">

**Author:** [@KK\_JuliaNoob](https://discourse.julialang.org/u/KK_JuliaNoob)\
**Replies:** 2\
**Last updated:** [April 28, 2021, 5:12am UTC](https://discourse.julialang.org/t/unable-to-use-pyplot-either-in-jupyter-notebook-or-in-terminal/60126 "2021-04-28T05:12:25Z")

</div>

I am on a Macbook pro with Big Sur, and I recently switched to Julia 1.6 When I tried to use the PyPlot package from a jupyter notebook, it keeps resetting the Julia kernel, and is unusable. Other Julia packages work fi…

---

## [Saving unicodeplots() to txt with color](https://discourse.julialang.org/t/saving-unicodeplots-to-txt-with-color/60069)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 9:34pm UTC](https://discourse.julialang.org/t/saving-unicodeplots-to-txt-with-color/60069 "2021-04-27T21:34:59Z")

</div>

This is the solution I didn’t know I needed for quick and dirty hpc plotting. However, they only show up monochrome in #SBATCH --output. Therefore, I tried the following to explicitly save them and neither approach wor…

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

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