# Visualization

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

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

**Page:** 12

---

## [Idiomatic way to overplot on subplots](https://discourse.julialang.org/t/idiomatic-way-to-overplot-on-subplots/123844)

<div class="topic-metadata">

**Author:** [@mekapses](https://discourse.julialang.org/u/mekapses)\
**Replies:** 3\
**Last updated:** [December 16, 2024, 12:01am UTC](https://discourse.julialang.org/t/idiomatic-way-to-overplot-on-subplots/123844 "2024-12-16T00:01:30Z")

</div>

If I want to create 10 histograms of 10 samples, and overplot a predicted curve on each one, and then plot all 10 subplots in a layout, what’s the most Julianic way of doing this? I’ve been using nested loops and a colle…

---

## [Makie: Linked camera of 3d plots go out of sync on slider change](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837)

<div class="topic-metadata">

**Author:** [@sanjeev](https://discourse.julialang.org/u/sanjeev)\
**Replies:** 1\
**Last updated:** [December 15, 2024, 4:26am UTC](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837 "2024-12-15T04:26:43Z")

</div>

I have a figure with two LScenes and a slider which is used to change data in the scenes. I have linked the cameras in the two LScenes, using the method shown in this post. The problem is that when I change the slider on…

---

## [Move "Label" on top of the colorbar using Makie](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813)

<div class="topic-metadata">

**Author:** [@Van\_Sy\_Tnut](https://discourse.julialang.org/u/Van_Sy_Tnut)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 5:39pm UTC](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813 "2024-12-13T17:39:25Z")

</div>

Hello everyone! I would like to move the label to the top of the Colorbar by using Makie. Can anyone help me how to do this ? Thank you so much using Makie using GLMakie fig = Figure() Create an axis Axis(fig\[1, 1…

---

## [Circle comes out oval using Makie](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:46pm UTC](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778 "2024-12-12T18:46:34Z")

</div>

Hi, I am trying to create circles using CairoMakie. But they turn out oval. What’s up? MWE: using CairoMakie using Makie.GeometryBasics const global inch::Float64 = 96 const global cm::Float64 = inch / 2.54 const glob…

---

## [Polar heatmap for angles between 0 and 90°?](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743)

<div class="topic-metadata">

**Author:** [@dutille](https://discourse.julialang.org/u/dutille)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 5:33pm UTC](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743 "2024-12-12T17:33:32Z")

</div>

Using Julia 1.11. In a perfect world I would expect the script below to deliver a heatmap in a quarter of disk. But I get a full disk. I tried to adjust the limits. since specifying ylim will adjust the range for the rad…

---

## [How to plot a "global" legend when using subplots?](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 6:51am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531 "2024-12-07T06:51:13Z")

</div>

Take this example: using Plots pla = plot(x-\>x^2, title="Plot A", legend=nothing);plot!(x-\>x^3) plb = plot(x-\>x^(1/2), title="Plot B", legend=nothing);plot!(x-\>x^(1/3)) plot(pla,plb,plb,pla,layout=(2,2),plot\_title="Two …

---

## [Why does the plot line disappear?](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406)

<div class="topic-metadata">

**Author:** [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 2:26pm UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406 "2024-12-06T14:26:54Z")

</div>

In the case below, plot line disappears. using Plots plot(\[1.0e9,1,1,1,1\],ylim=(0.0,10)) But, in the another case below, plot line does not disappear. Everything operates normally. plot(\[1,1,1,1\],ylim=(0.0,10)) My ve…

---

## [Differential Equation Log Plot](https://discourse.julialang.org/t/differential-equation-log-plot/123435)

<div class="topic-metadata">

**Author:** [@TheLazyFarmer](https://discourse.julialang.org/u/TheLazyFarmer)\
**Replies:** 1\
**Last updated:** [December 4, 2024, 8:21am UTC](https://discourse.julialang.org/t/differential-equation-log-plot/123435 "2024-12-04T08:21:21Z")

</div>

Hello, I have some values from a differential equation I solved, I am trying to plot the y-axis as a logarithmic. However, I am unsure how to go about this approach: For reference, I have this example solution from an …

---

## [Changing distance between axes and x/y guides?](https://discourse.julialang.org/t/changing-distance-between-axes-and-x-y-guides/70043)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 9\
**Last updated:** [December 2, 2024, 7:29pm UTC](https://discourse.julialang.org/t/changing-distance-between-axes-and-x-y-guides/70043 "2024-12-02T19:29:23Z")

</div>

How do I change the space between the frame/ticks/ticks numbers and the x/y axis guides? E.g. in this case: plot(x -\> x^2,xguide="X-axis",yguide="Y-axis") (red markings are added to me to show what distance I want t…

---

## [Makie matrix image display issue](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 7\
**Last updated:** [December 1, 2024, 12:16pm UTC](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281 "2024-12-01T12:16:12Z")

</div>

Hi users The following function IMAGE\_SU\_A\_METRIC, using Makie.jl and CairoMakie.jl is meant to give an image of an input matrix SU\_A\_METRX using a couple of parameters from an input structure STR\_DTA\_AMT: function IM…

---

## [Trying to clear a layout but getting stuck at nested GridLayouts](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 4\
**Last updated:** [November 30, 2024, 7:37pm UTC](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269 "2024-11-30T19:37:09Z")

</div>

I’m trying to delete the layout altogether with the code, below, because I want to regenerate the content in response to input from the user. clear\_layout(fig.layout) successfully removes all the Axes, Labels, etc, but I…

---

## [Zoomed inset using Makie?](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 6\
**Last updated:** [November 29, 2024, 7:07pm UTC](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717 "2024-11-29T19:07:39Z")

</div>

Is it possible to achieve zooming in a portion of an (already drawn) axis and display it as another axis, or as an inset? Something like this in matplotlib:

---

## [Makie mathcal boldface](https://discourse.julialang.org/t/makie-mathcal-boldface/123233)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 7:04am UTC](https://discourse.julialang.org/t/makie-mathcal-boldface/123233 "2024-11-29T07:04:32Z")

</div>

Hi all, I’m having an issue using calligraphic fonts using LaTeXStrings.jl within Makie. A previous question noted that the default calligraphic fonts didn’t align between LaTeXStrings and their tex file – and this prob…

---

## [Visualizing Electric Equipotentials](https://discourse.julialang.org/t/visualizing-electric-equipotentials/123023)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 0\
**Last updated:** [November 24, 2024, 7:29pm UTC](https://discourse.julialang.org/t/visualizing-electric-equipotentials/123023 "2024-11-24T19:29:21Z")

</div>

Hey all, not a question this time, but rather I just wanted to share something I whipped up a little bit ago for my class on introductory electromagnetism. Basically, it’s a drop-in way to visualize the contour lines of…

---

## [Updating Label value twice in the same Makie event handler](https://discourse.julialang.org/t/updating-label-value-twice-in-the-same-makie-event-handler/122918)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 3\
**Last updated:** [November 24, 2024, 3:04pm UTC](https://discourse.julialang.org/t/updating-label-value-twice-in-the-same-makie-event-handler/122918 "2024-11-24T15:04:13Z")

</div>

in the MWE below, “start” is never displayed. is there a way to make it so? using GLMakie f = Figure() b = Button(f\[1,1\], label="foo") l = Label(f\[1,2\], "") on(b.clicks) do \_ l.text\[\] = "start" sleep(1) # lon…

---

## [Accessing axis in Makie plot recipes](https://discourse.julialang.org/t/accessing-axis-in-makie-plot-recipes/66006)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 5\
**Last updated:** [November 24, 2024, 9:18am UTC](https://discourse.julialang.org/t/accessing-axis-in-makie-plot-recipes/66006 "2024-11-24T09:18:18Z")

</div>

Is there a way to access the axis in a Makie plot recipe? I’d like to apply xlims!(ax, ...) and set ax.aspect = .....

---

## [Setting the foreground color of colorbar tick marks](https://discourse.julialang.org/t/setting-the-foreground-color-of-colorbar-tick-marks/122911)

<div class="topic-metadata">

**Author:** [@marcusps](https://discourse.julialang.org/u/marcusps)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 10:57pm UTC](https://discourse.julialang.org/t/setting-the-foreground-color-of-colorbar-tick-marks/122911 "2024-11-22T22:57:23Z")

</div>

I am trying to make plot some data on black background, and setting fg\_color to :white works well except for one details. The tick marks on the color bar remain black, and thus are rendered essentially invisible. The la…

---

## [Plots.contourf and PlotlyJS.contour behaviour with regard to the x,y,z input](https://discourse.julialang.org/t/plots-contourf-and-plotlyjs-contour-behaviour-with-regard-to-the-x-y-z-input/122897)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 7:17pm UTC](https://discourse.julialang.org/t/plots-contourf-and-plotlyjs-contour-behaviour-with-regard-to-the-x-y-z-input/122897 "2024-11-22T19:17:52Z")

</div>

I have been using PlotlyJS.contour() in a program to plot data, but I need to switch to Plot.contourf(). I use PlotlyJS.contour(x=x,y=y,z=z) such that x::Vector and y::Vector contain the x and y coordinates of the point…

---

## [Has Plots.mesh3d() opacity with respect to depth when displaying multiple shapes?](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 0\
**Last updated:** [November 22, 2024, 9:17am UTC](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941 "2024-11-22T09:17:15Z")

</div>

using Plots Plots.mesh3d(\[1,2,2,1\],\[1,1,1,1\],\[1,1,2,2\], connections=\[(1,2,3,4)\], linecolor=:black) Plots.mesh3d!(\[1,2,2,1\],\[1.1,1.1,1.1,1.1\],\[1,1,2,2\], connections=\[(1,2,3,4)\], linecolor=:black) D…

---

## [Multiple chart types in Plots.jl](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 8:25pm UTC](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904 "2024-11-21T20:25:52Z")

</div>

Is it possible to have multiple chart types in a subplot using Plots.jl ? (the same way one could do it with PlotlyJS) I ideally would like to combine a contourf with a regular line plot (see example below) Reference: M…

---

## [Calling multiple user plot recipes from single recipe](https://discourse.julialang.org/t/calling-multiple-user-plot-recipes-from-single-recipe/122885)

<div class="topic-metadata">

**Author:** [@Ickaser](https://discourse.julialang.org/u/Ickaser)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 7:28pm UTC](https://discourse.julialang.org/t/calling-multiple-user-plot-recipes-from-single-recipe/122885 "2024-11-21T19:28:40Z")

</div>

I am building a suite of Plots.jl recipes for my common visualizations, which has been very helpful–this functionality is awesome. I’ve arrived at a point where I would like to compose multiple of my user recipes in a s…

---

## [Documenting a plot recipe](https://discourse.julialang.org/t/documenting-a-plot-recipe/122423)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 3:23pm UTC](https://discourse.julialang.org/t/documenting-a-plot-recipe/122423 "2024-11-21T15:23:02Z")

</div>

ModelPredictiveControl.jl defines plot recipes that works on SimResult types. My recipes include keyword arguments like plotu=false so user can type using ModelPredictiveControl, ControlSystemsBase, Plots res = sim!(Lin…

---

## [Makie - single bar label for stacked bar](https://discourse.julialang.org/t/makie-single-bar-label-for-stacked-bar/122873)

<div class="topic-metadata">

**Author:** [@sleak](https://discourse.julialang.org/u/sleak)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 10:34pm UTC](https://discourse.julialang.org/t/makie-single-bar-label-for-stacked-bar/122873 "2024-11-20T22:34:14Z")

</div>

I have a stacked bar plot, and can add a label to each block in the stack with bar\_labels=:y. But this is noisy, and I’d like to only add a single label to the top of the stack, showing the total stacked value. How do I …

---

## [Cannot change the init\_value of look\_at kwarg from Makie.Camera3D](https://discourse.julialang.org/t/cannot-change-the-init-value-of-look-at-kwarg-from-makie-camera3d/118250)

<div class="topic-metadata">

**Author:** [@xczphysics](https://discourse.julialang.org/u/xczphysics)\
**Replies:** 5\
**Last updated:** [November 20, 2024, 2:21pm UTC](https://discourse.julialang.org/t/cannot-change-the-init-value-of-look-at-kwarg-from-makie-camera3d/118250 "2024-11-20T14:21:18Z")

</div>

This is the code modified (only 1 line) from Cameras | Makie HAVE tried some other walkarounds, none works, either… using GeometryBasics, LinearAlgebra function frustum\_snapshot(cam) r = Rect3f(Point3f(-1, -1, -1)…

---

## [Adding slider that will show a vertical line across my plot?](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 4:39am UTC](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605 "2024-11-20T04:39:11Z")

</div>

Hi all, I have a stacked plot with shared x- and y- axes, and the main goal of this is to quickly see where general trends compare over each plot – and I think having a line over each plot that I can scan over would mak…

---

## [Zoom in/out only works for first drawing on a figure](https://discourse.julialang.org/t/zoom-in-out-only-works-for-first-drawing-on-a-figure/122752)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 2:57pm UTC](https://discourse.julialang.org/t/zoom-in-out-only-works-for-first-drawing-on-a-figure/122752 "2024-11-18T14:57:49Z")

</div>

Hi All. I’m wondering if somebody can explain the following behavior. I draw something, empty! the axis scene, and then draw something similar. All the drawing works as expected but I’ve noticed that while I can zoom in…

---

## [Error when running \`using Plots; pythonplot();\` in old environment](https://discourse.julialang.org/t/error-when-running-using-plots-pythonplot-in-old-environment/122670)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [November 15, 2024, 4:09pm UTC](https://discourse.julialang.org/t/error-when-running-using-plots-pythonplot-in-old-environment/122670 "2024-11-15T16:09:41Z")

</div>

I was loading an old Julia environment (maybe half a year old? It is 1.10.4). I then run julia\> using Plots julia\> pythonplot() And get a ERROR: InitError: PythonCall.PyException(PythonCall.Py(Ptr{PythonCall.C.PyObjec…

---

## [CairoMakie plots disappear once linked to an Illustrator file](https://discourse.julialang.org/t/cairomakie-plots-disappear-once-linked-to-an-illustrator-file/122492)

<div class="topic-metadata">

**Author:** [@LorenzoFioroni](https://discourse.julialang.org/u/LorenzoFioroni)\
**Replies:** 6\
**Last updated:** [November 14, 2024, 1:29pm UTC](https://discourse.julialang.org/t/cairomakie-plots-disappear-once-linked-to-an-illustrator-file/122492 "2024-11-14T13:29:06Z")

</div>

Hello everyone, I’m facing an issue with using CairoMakie and Adobe Illustrator 2025 that I hope someone here can help me with. The workflow involves generating some plots with CairoMakie, linking these plots into Illus…

---

## [Plots: use of \`twinx()\` and \`frame=:box\` looks ugly](https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 7:32pm UTC](https://discourse.julialang.org/t/plots-use-of-twinx-and-frame-box-looks-ugly/122581 "2024-11-13T19:32:19Z")

</div>

I like to use the frame keyword when plotting with Plots.jl – it makes the plot nicer, in my view. However, if I use twin ordinate axes, the default is ugly with frame=:box: Here is without frame specification: Next…

---

## [Makie Broken Axis on Log Scale](https://discourse.julialang.org/t/makie-broken-axis-on-log-scale/122571)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 3:27pm UTC](https://discourse.julialang.org/t/makie-broken-axis-on-log-scale/122571 "2024-11-13T15:27:11Z")

</div>

Hello! I have some data I’d like to plot with a broken axis. Basically there is one data point at the beginning that is way different than the rest. I found this post about implementing a broken axis. I tried to adapt …

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

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