# Visualization

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

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

**Page:** 25

---

## [How to set the same uniform units for all axes in 3D surface plot using Plots.jl?](https://discourse.julialang.org/t/how-to-set-the-same-uniform-units-for-all-axes-in-3d-surface-plot-using-plots-jl/108510)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 3\
**Last updated:** [January 8, 2024, 3:10pm UTC](https://discourse.julialang.org/t/how-to-set-the-same-uniform-units-for-all-axes-in-3d-surface-plot-using-plots-jl/108510 "2024-01-08T15:10:32Z")

</div>

I want to have a “normal” plot where all axes are the same, without any scaling, i.e. the length in every axis is the same. surface(xs, ts, f; fillalpha=0.9, camera=(20, 40), aspect\_ratio=1) gives this where 1 in the z…

---

## [How to plot a line in 3D using Plots.jl?](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 8\
**Last updated:** [January 8, 2024, 12:15pm UTC](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267 "2024-01-08T12:15:54Z")

</div>

How to plot a line in a 3D axis? Say, I want a parabola in the xy-plane (z=0) The straightforward options do not work; This one results an empty canvas \[-1, 1\] x \[-1, 1\]: using Plots xs = -5:1:5 plot(xs, xs.^2, 0) T…

---

## [Plotting points and boxplots on the same graph in Gadfly](https://discourse.julialang.org/t/plotting-points-and-boxplots-on-the-same-graph-in-gadfly/108413)

<div class="topic-metadata">

**Author:** [@bottaw](https://discourse.julialang.org/u/bottaw)\
**Replies:** 0\
**Last updated:** [January 5, 2024, 10:48pm UTC](https://discourse.julialang.org/t/plotting-points-and-boxplots-on-the-same-graph-in-gadfly/108413 "2024-01-05T22:48:23Z")

</div>

I am trying to make a gadfly graph that includes a series of data points on it with a minimalist boxplot of those points right next to it for statistical comparison. Something like this graph here: I have come pretty…

---

## [Is there a package that supports gamut calculations for the xyY color space?](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [January 3, 2024, 1:52pm UTC](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128 "2024-01-03T13:52:48Z")

</div>

Is there a Julia package that allows checking if a color in XYZ or xyY space is valid, and if not, allow finding a nearest point (eg by bisecting the ray from the white point)?

---

## [How to tweak dodge bar plot's label position of AOG](https://discourse.julialang.org/t/how-to-tweak-dodge-bar-plots-label-position-of-aog/108221)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 0\
**Last updated:** [January 1, 2024, 1:26am UTC](https://discourse.julialang.org/t/how-to-tweak-dodge-bar-plots-label-position-of-aog/108221 "2024-01-01T01:26:33Z")

</div>

I want to clone this chart : Views about AI’s impact on society in the next 20 years, 2021 here is my code using Tidier, DataFrames, CSV, AlgebraOfGraphics, Pipe countrys = \["Japan", "China", "Germany", "France"\] c…

---

## [Plots: Ribbons along y-axis](https://discourse.julialang.org/t/plots-ribbons-along-y-axis/108100)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 11:49am UTC](https://discourse.julialang.org/t/plots-ribbons-along-y-axis/108100 "2023-12-28T11:49:29Z")

</div>

Hi there, I am currently trying to plot my data with a standard deviation. However, due to context reasons, I have a function f(y) instead of f(x). I would now like to make the error look nice with the help of the ribbo…

---

## [GLMakie, yscale=log10 and Float32](https://discourse.julialang.org/t/glmakie-yscale-log10-and-float32/101731)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 4:39pm UTC](https://discourse.julialang.org/t/glmakie-yscale-log10-and-float32/101731 "2023-12-27T16:39:00Z")

</div>

A simple scatter plot with a log scale gives an error if the y values underflow Float32: x = 10.0.^-(0:50) using GLMakie fig = Figure() ax = Axis(fig\[1,1\], yscale=log10) scatter!(x) ERROR: Found invalid y-limits (0.0f0…

---

## [Need a simple backend for plots inside pluto that support click event when plotting implicit equations](https://discourse.julialang.org/t/need-a-simple-backend-for-plots-inside-pluto-that-support-click-event-when-plotting-implicit-equations/107862)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 1\
**Last updated:** [December 27, 2023, 10:32am UTC](https://discourse.julialang.org/t/need-a-simple-backend-for-plots-inside-pluto-that-support-click-event-when-plotting-implicit-equations/107862 "2023-12-27T10:32:19Z")

</div>

hello I want to get coordinates of implicit equations plot and pass it to a function, I have found using plots; plotlyjs() can do this but it doesn’t work inside pluto. Currently I use plotly backend and it gives a pop…

---

## [Having legend on top of twinx() line](https://discourse.julialang.org/t/having-legend-on-top-of-twinx-line/107970)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 1\
**Last updated:** [December 24, 2023, 2:52pm UTC](https://discourse.julialang.org/t/having-legend-on-top-of-twinx-line/107970 "2023-12-24T14:52:59Z")

</div>

Hi there, I am plotting 4 different sine waves. The scale of one of these waves is on a seperate y axis. Using the code below, I have obtained the following graph: plot(sol\_2\_elem, idxs = wk2model.source.Δp, labels="2 E…

---

## [How to produce a 3D polar plot in Makie?](https://discourse.julialang.org/t/how-to-produce-a-3d-polar-plot-in-makie/107950)

<div class="topic-metadata">

**Author:** [@Daptine](https://discourse.julialang.org/u/Daptine)\
**Replies:** 7\
**Last updated:** [December 23, 2023, 12:42am UTC](https://discourse.julialang.org/t/how-to-produce-a-3d-polar-plot-in-makie/107950 "2023-12-23T00:42:16Z")

</div>

I wonder how to produce plots like the one below (a 3D array factor) using Makie? If this is not possible in Makie, any packages that support this? Thanks a lot.

---

## [Extracting raw data from qplot](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671)

<div class="topic-metadata">

**Author:** [@alex123](https://discourse.julialang.org/u/alex123)\
**Replies:** 2\
**Last updated:** [December 22, 2023, 2:55pm UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671 "2023-12-22T14:55:16Z")

</div>

Hi, I am using Quantica for finding the band structure of twisted bilayer graphene. Here is the part of my code that finds the hamiltonian and plots the band structure: b = hamiltonian(tbg, model) |\> bands(subdiv((0, 2…

---

## [Lining up zeros on plot with 2 y axes](https://discourse.julialang.org/t/lining-up-zeros-on-plot-with-2-y-axes/107736)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 7\
**Last updated:** [December 21, 2023, 11:28am UTC](https://discourse.julialang.org/t/lining-up-zeros-on-plot-with-2-y-axes/107736 "2023-12-21T11:28:26Z")

</div>

Hi there, I am plotting 2 different datasets on the same plot, but using different scaled y axes, using the following code: plot(ShiSimpleSolV, idxs = \[circ\_sys.MV.q\]) plot!(twinx(), ShiSimpleSolV, idxs = \[circ\_sys.MV…

---

## [Makie add manual legend](https://discourse.julialang.org/t/makie-add-manual-legend/107821)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 4:27pm UTC](https://discourse.julialang.org/t/makie-add-manual-legend/107821 "2023-12-19T16:27:13Z")

</div>

I have a plot such as barplot(1:3, 2:4, color = \[:red, :blue, :red\]) and would like to add a legend such that the red =\> "A" and blue =\> "B", how could I accomplish that?

---

## [Saved .png/.pdf shows title on top of plot](https://discourse.julialang.org/t/saved-png-pdf-shows-title-on-top-of-plot/107650)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 5\
**Last updated:** [December 18, 2023, 2:45pm UTC](https://discourse.julialang.org/t/saved-png-pdf-shows-title-on-top-of-plot/107650 "2023-12-18T14:45:23Z")

</div>

With Plots v1.39.0 on a MacOS arm 14.2, when saving plots (histograms) as .png or .pdf I get a different figure where the title is put on top of the plot. I am using the following code to plot: lay = @layout \[°;°;°…

---

## [Specifying plot colours using Plots.jl, getting multicolour lines](https://discourse.julialang.org/t/specifying-plot-colours-using-plots-jl-getting-multicolour-lines/107735)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 10:18am UTC](https://discourse.julialang.org/t/specifying-plot-colours-using-plots-jl-getting-multicolour-lines/107735 "2023-12-18T10:18:04Z")

</div>

Hi there, I’m tring to plot two different datasets on the same axis, the first as a blue line and the second as a red line. I have tried plot(sol, idxs = \[idx1, idx2\], linecolor=\[:blue,:red\]) but instead of one line b…

---

## [MathTeX font does not match pdfLaTeX font](https://discourse.julialang.org/t/mathtex-font-does-not-match-pdflatex-font/107670)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 3:13pm UTC](https://discourse.julialang.org/t/mathtex-font-does-not-match-pdflatex-font/107670 "2023-12-17T15:13:47Z")

</div>

I’m using LaTeXstrings in GLMakie to render math. It seems like the mathcal font in LaTeXstrings is different from the typical font used for mathcal pdfLaTeX. Here’s an example of a render with LaTeXStrings: L"$\\mathcal…

---

## [Interactive ABM plot with agents and GLMakie](https://discourse.julialang.org/t/interactive-abm-plot-with-agents-and-glmakie/98913)

<div class="topic-metadata">

**Author:** [@sea\_slug](https://discourse.julialang.org/u/sea_slug)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 11:26am UTC](https://discourse.julialang.org/t/interactive-abm-plot-with-agents-and-glmakie/98913 "2023-12-17T11:26:19Z")

</div>

I am trying to produce an interactive plot of an agent based model using GLMakie. I Have done this before no problem (a few months ago), but now when I run the code it just produces a static plot in VSCode. I have been …

---

## [Centred subplot in Makie](https://discourse.julialang.org/t/centred-subplot-in-makie/107660)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 1:09pm UTC](https://discourse.julialang.org/t/centred-subplot-in-makie/107660 "2023-12-15T13:09:58Z")

</div>

Hi, I am looking for a way to do the below in the image. I know I could generate a subplot which spans the whole length of A and B however I can not appear to find an intuitive way to plot a third figure C which spans h…

---

## [How to put labels for arrows?](https://discourse.julialang.org/t/how-to-put-labels-for-arrows/107524)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 10:48pm UTC](https://discourse.julialang.org/t/how-to-put-labels-for-arrows/107524 "2023-12-12T22:48:13Z")

</div>

I simply want to recreate smth like here: Arrows with labels: on the sides or on the tops.

---

## [How can I extend a GridPosition?](https://discourse.julialang.org/t/how-can-i-extend-a-gridposition/107527)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 2\
**Last updated:** [December 13, 2023, 9:13am UTC](https://discourse.julialang.org/t/how-can-i-extend-a-gridposition/107527 "2023-12-13T09:13:12Z")

</div>

I have plot with multiple subplots, each of it is a GridPosition. f = Figure(resolution = (1200, 1400)) ga = f\[1, 1\] gc = f\[2, 1\] ge = f\[3, 1\] gg = f\[4, 1\] gb = f\[1, 2\] gd = f\[2, 2\] gf = f\[3,…

---

## [How to link axes in a Makie figure?](https://discourse.julialang.org/t/how-to-link-axes-in-a-makie-figure/62622)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [December 13, 2023, 1:26am UTC](https://discourse.julialang.org/t/how-to-link-axes-in-a-makie-figure/62622 "2023-12-13T01:26:15Z")

</div>

Suppose I have a figure with multiple subfigures: using GLMakie fig = Figure() scatter(fig\[1,1\], rand(10)) scatter(fig\[1,2\], rand(10)) How to link all axes in the figure? I am aware of linkaxes! but it expects axes ob…

---

## [Incorrect filling in polar plot using fillrange](https://discourse.julialang.org/t/incorrect-filling-in-polar-plot-using-fillrange/107390)

<div class="topic-metadata">

**Author:** [@TheBigZet](https://discourse.julialang.org/u/TheBigZet)\
**Replies:** 0\
**Last updated:** [December 10, 2023, 11:00pm UTC](https://discourse.julialang.org/t/incorrect-filling-in-polar-plot-using-fillrange/107390 "2023-12-10T23:00:40Z")

</div>

I am trying to create a polar plot, with hatched area between the series and a constant value. I’ve managed to do so with this code: x1 = collect(range(0, π, length = 100)) x2 = collect(range(π, 0, length = 100)) y1 =…

---

## [Two arrows](https://discourse.julialang.org/t/two-arrows/107453)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 4\
**Last updated:** [December 11, 2023, 4:51pm UTC](https://discourse.julialang.org/t/two-arrows/107453 "2023-12-11T16:51:55Z")

</div>

Can anyone please show how to create a simplest plot with two arrows using Makie.arrow? Documentation here arrows · Makie is written at really advance level.

---

## [Problem to use Javis](https://discourse.julialang.org/t/problem-to-use-javis/107367)

<div class="topic-metadata">

**Author:** [@Abdou](https://discourse.julialang.org/u/Abdou)\
**Replies:** 0\
**Last updated:** [December 9, 2023, 8:27pm UTC](https://discourse.julialang.org/t/problem-to-use-javis/107367 "2023-12-09T20:27:56Z")

</div>

after installing the latest version of Javis(0.9) on windows 7 sp1 and trying to use it, the compilation of the package gives a lot of error messages which the first is about accessing a file in my Temp directory for re…

---

## [Haigh-Westergaard coordinates / π-plane plots](https://discourse.julialang.org/t/haigh-westergaard-coordinates-plane-plots/107335)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 0\
**Last updated:** [December 8, 2023, 3:45pm UTC](https://discourse.julialang.org/t/haigh-westergaard-coordinates-plane-plots/107335 "2023-12-08T15:45:21Z")

</div>

Hi, Does anyone have experience with this type of visualisation? Is there a package that supports this type of diagram? cheers and thanks!

---

## [Recursive loop of callbacks in signal connect method of Gtk4 widgets](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274)

<div class="topic-metadata">

**Author:** [@apurvdarji](https://discourse.julialang.org/u/apurvdarji)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 2:53pm UTC](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274 "2023-12-07T14:53:25Z")

</div>

I am trying to do bi-directional binding of two textboxes which are GtkEntry widgets from Gtk4.jl. The two textboxes should have the same text. I am using signal connect handlers on change events to achieve that. But it …

---

## [Logarithmic colorbar for multiple colored plots](https://discourse.julialang.org/t/logarithmic-colorbar-for-multiple-colored-plots/107205)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 7:47pm UTC](https://discourse.julialang.org/t/logarithmic-colorbar-for-multiple-colored-plots/107205 "2023-12-06T19:47:55Z")

</div>

Hi, I have a series of plots, each associated with a different value of a parameter called k. The idea was to plot each line with a different color from a colormap and have the colorbar indicate which value of k each pl…

---

## [Possible to emulate Plots.jl's zerolines layout in Makie?](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 6:52pm UTC](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230 "2023-12-06T18:52:18Z")

</div>

Is there a built-in option in Makie to format an Axis to emulate the style of plot(x,y, framestyle=:zerolines), i.e. no outer spines and axis lines drawn through x=0 and y=0? Essentially, trying to achieve something like…

---

## [Reload theme in Makie](https://discourse.julialang.org/t/reload-theme-in-makie/107191)

<div class="topic-metadata">

**Author:** [@danbulnet](https://discourse.julialang.org/u/danbulnet)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 10:55am UTC](https://discourse.julialang.org/t/reload-theme-in-makie/107191 "2023-12-06T10:55:58Z")

</div>

Hello, I am trying to make a simple GUI using Makie.jl. I would like to allow users to change themes by pressing a button. I found that the following code doesn’t work: set\_theme!(theme\_light()) while that snippet w…

---

## [Errors using Makie plots with Observable metadata Vectors of variable length](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 6:16pm UTC](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469 "2023-12-05T18:16:48Z")

</div>

I would like to generate a Makie animation that has a variable number of points and polygons per frame, and am running into some odd behavior. I am using scatter() and poly() with Observables holding the data points, an…

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

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