# Visualization

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

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

**Page:** 11

---

## [Makie recipe to plot ODESolution of DifferentialEquations.jl?](https://discourse.julialang.org/t/makie-recipe-to-plot-odesolution-of-differentialequations-jl/105879)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 11\
**Last updated:** [January 23, 2025, 12:28am UTC](https://discourse.julialang.org/t/makie-recipe-to-plot-odesolution-of-differentialequations-jl/105879 "2025-01-23T00:28:55Z")

</div>

Related to this question. Is there a recipe to plot the DiffEq solution components against time? I tried Makie.convert\_arguments(sol::ODESolution) = (sol.t, \[\[v\[1\] for v in sol.u\], \[\[v\[2\] for v in sol.u\]\]\]) but it pl…

---

## [Makie log scale axis with nicer ticks](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 1:02pm UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062 "2025-01-22T13:02:57Z")

</div>

Is there any way how to set the ticks in log scale axis automatically (default) to be only 10^N, where N is an integer? I do not like the 10^0.5 10^1.5 etc.

---

## [Makie - \`\]test Makie\` 1 test stuck?](https://discourse.julialang.org/t/makie-test-makie-1-test-stuck/125038)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 0\
**Last updated:** [January 21, 2025, 6:49pm UTC](https://discourse.julialang.org/t/makie-test-makie-1-test-stuck/125038 "2025-01-21T18:49:40Z")

</div>

Hi, I’ve attempted to fix a bug in Makie, and am attempting to run the tests. I’ve got an environment with Makie, GLMakie, CairoMakie and ReferenceTests all dev’d. I then typed \]test Makie. tests never finished, so I c…

---

## [Control on density plot marker shape and color](https://discourse.julialang.org/t/control-on-density-plot-marker-shape-and-color/124846)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 3\
**Last updated:** [January 21, 2025, 7:12am UTC](https://discourse.julialang.org/t/control-on-density-plot-marker-shape-and-color/124846 "2025-01-21T07:12:47Z")

</div>

I am trying to plot different probability densities on the same plot from a data frame, based on a group. However, there is an overlap on the lines and I need to use different marker shapes and colors for better visibili…

---

## [Band filled by vertical gradient in Makie.jl](https://discourse.julialang.org/t/band-filled-by-vertical-gradient-in-makie-jl/124987)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 10:43pm UTC](https://discourse.julialang.org/t/band-filled-by-vertical-gradient-in-makie-jl/124987 "2025-01-20T22:43:55Z")

</div>

Hello, I would like to make a band filled by a vertical gradient using CairoMakie.jl. The result should be similar to this example. How can I do it in a clear way using CairoMakie.jl?

---

## [Makie - Need Help with Animation](https://discourse.julialang.org/t/makie-need-help-with-animation/124890)

<div class="topic-metadata">

**Author:** [@parf](https://discourse.julialang.org/u/parf)\
**Replies:** 1\
**Last updated:** [January 18, 2025, 8:30pm UTC](https://discourse.julialang.org/t/makie-need-help-with-animation/124890 "2025-01-18T20:30:36Z")

</div>

Hello everyone! I have a function that plots a graph for a given frame (time point): function create\_figure(frame) time = (frame-1)\*t\_step xs = range(0, L, length=500) ys = range(0, L, length=500) zs =…

---

## [Wrong heatmap orientation with Plots.jl](https://discourse.julialang.org/t/wrong-heatmap-orientation-with-plots-jl/124822)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 16\
**Last updated:** [January 16, 2025, 2:53pm UTC](https://discourse.julialang.org/t/wrong-heatmap-orientation-with-plots-jl/124822 "2025-01-16T14:53:12Z")

</div>

I do not understand what I am doing wrong plotting a 2D function. The resulted heatmap is rotated 90 deg. using Plots rosenbrock(x, y; a=1, b=100) = (a - x)^2 + b\*(y - x^2)^2 # Define the range for x and y x = -2:0.01…

---

## [Makie.jl: how to display labels on a waterfall chart](https://discourse.julialang.org/t/makie-jl-how-to-display-labels-on-a-waterfall-chart/124742)

<div class="topic-metadata">

**Author:** [@ajk](https://discourse.julialang.org/u/ajk)\
**Replies:** 3\
**Last updated:** [January 16, 2025, 9:00am UTC](https://discourse.julialang.org/t/makie-jl-how-to-display-labels-on-a-waterfall-chart/124742 "2025-01-16T09:00:27Z")

</div>

Hi, I can’t figure out how to label the bars in a Makie waterfall chart anymore. It used to be possible to pass all barplot options to waterfall(...), e.g. the following code used to run. Since updating I now have to com…

---

## [Makie.jl Series Plot Color Cycling with Observable Legends](https://discourse.julialang.org/t/makie-jl-series-plot-color-cycling-with-observable-legends/114599)

<div class="topic-metadata">

**Author:** [@matthew3245](https://discourse.julialang.org/u/matthew3245)\
**Replies:** 1\
**Last updated:** [January 14, 2025, 11:42pm UTC](https://discourse.julialang.org/t/makie-jl-series-plot-color-cycling-with-observable-legends/114599 "2025-01-14T23:42:54Z")

</div>

My goal is to plot a series of data and have their legends be observable so I can change them later. This works already using series! using the labels keyword argument set to a vector of observables. However, when I add …

---

## [Makie : Update plot legend through Observables](https://discourse.julialang.org/t/makie-update-plot-legend-through-observables/86786)

<div class="topic-metadata">

**Author:** [@dgs](https://discourse.julialang.org/u/dgs)\
**Replies:** 11\
**Last updated:** [January 14, 2025, 11:32pm UTC](https://discourse.julialang.org/t/makie-update-plot-legend-through-observables/86786 "2025-01-14T23:32:13Z")

</div>

Hello, I am trying to a basic app with GLMakie with some user input. The (scatter) plot nicely updates with a slider which basically selects which dots to plots but I can’t seem to find a way to update the legend (thro…

---

## [Automatically insert variable name or symbol in Title and Colorbar](https://discourse.julialang.org/t/automatically-insert-variable-name-or-symbol-in-title-and-colorbar/124624)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 17\
**Last updated:** [January 10, 2025, 5:38pm UTC](https://discourse.julialang.org/t/automatically-insert-variable-name-or-symbol-in-title-and-colorbar/124624 "2025-01-10T17:38:33Z")

</div>

I have many different variable names or symbols for different data. I will insert one of those variable at a time in my safe\_log( ) function. I expect cbar.label and ax.title to accept that variable name automatically r…

---

## [Setting inner size of figures generated by Plots.jl nside Pluto notebook](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 0\
**Last updated:** [January 10, 2025, 11:34am UTC](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635 "2025-01-10T11:34:39Z")

</div>

Currently I’m code follows as below using Plots; gr(size=(600,600)) begin Plots.plot(\[3,4\],\[10,8\]) Plots.plot!(twinx(),\[.8,.2\],\[.4,-4\]) Plots.plot!(xguidefontsize=20,yguidefontsize=20, tickfontsize=20, fontfamily=…

---

## [\[solved\] Plotting 2 plots on same figure with dual axis](https://discourse.julialang.org/t/solved-plotting-2-plots-on-same-figure-with-dual-axis/124623)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 6:55am UTC](https://discourse.julialang.org/t/solved-plotting-2-plots-on-same-figure-with-dual-axis/124623 "2025-01-10T06:55:59Z")

</div>

I wanted to plots 2 data on the same figure with their respective legends one on left, bottom while for the other on top and right. For example, using Plots, plot(\[.4,.3\],\[.8,.3\]) plot!(\[5,3\],\[4,8\]) this is the output…

---

## [\[question\] Finding number of closed potential contours and area enclosed by them](https://discourse.julialang.org/t/question-finding-number-of-closed-potential-contours-and-area-enclosed-by-them/124034)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 16\
**Last updated:** [January 10, 2025, 5:38am UTC](https://discourse.julialang.org/t/question-finding-number-of-closed-potential-contours-and-area-enclosed-by-them/124034 "2025-01-10T05:38:20Z")

</div>

Hello, I’m trying to calculate the number of closed contours in a potential as well the area enclosed by closed, i.e. In this image below at certain energy level there are 4 closed contours. I’m trying to figure a way t…

---

## [How to modify the label details from a \`poly\` object (not just the text)](https://discourse.julialang.org/t/how-to-modify-the-label-details-from-a-poly-object-not-just-the-text/124609)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 9:04pm UTC](https://discourse.julialang.org/t/how-to-modify-the-label-details-from-a-poly-object-not-just-the-text/124609 "2025-01-09T21:04:30Z")

</div>

I’m trying to change the figure below to make the red and green squares in the labels box smaller (and, as a side effect, make the label box smaller, such that it doesn’t overlap with the circles). How can I achieve tha…

---

## [How to adjust the number and format of DateTime ticks using Plots.jl?](https://discourse.julialang.org/t/how-to-adjust-the-number-and-format-of-datetime-ticks-using-plots-jl/101980)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 12:07pm UTC](https://discourse.julialang.org/t/how-to-adjust-the-number-and-format-of-datetime-ticks-using-plots-jl/101980 "2023-07-24T12:07:33Z")

</div>

I am trying to plot a time series with Plots.jl. The x axis is in DateTime format, and I want to format the dates and limit the number of ticks. The following reproducible example serves to show what I am trying to acco…

---

## [VSI image support in Images.jl](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 3:38am UTC](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824 "2025-01-09T03:38:28Z")

</div>

On a whim I tried to load a .vsi image file from an Olympus microscope (cellSense software) into Julia (I wasn’t expecting it to work) and I was surprised to see that it didn’t give an error-- it loaded the first frame o…

---

## [Programmatically Get Makie Figure Size](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 2:14pm UTC](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893 "2025-01-08T14:14:56Z")

</div>

Hello, Is it possible to programmatically get the width and height of a figure in Makie assuming you did not explicitly specify them in the call to Figure()? I’m curious because they would be helpful for placing a zoom…

---

## [Makie inset fully "on top"](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 1:04pm UTC](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492 "2025-01-07T13:04:31Z")

</div>

Similar to this question. I’m drawing a figure that has a main axis and an inset (a zoom). How would I go about to have the whole inset with a background, effectively blocking out the underlying main figure? Using a gra…

---

## [How to save interactive plot with GLMakie](https://discourse.julialang.org/t/how-to-save-interactive-plot-with-glmakie/124352)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 5\
**Last updated:** [January 4, 2025, 3:15pm UTC](https://discourse.julialang.org/t/how-to-save-interactive-plot-with-glmakie/124352 "2025-01-04T15:15:10Z")

</div>

I am drawing an interactive plot with GLMakie that includes sliders. Is it possible to make a button to save the figure, preferably with the sliders or better with/without it? I can draw the button, but is there a simpl…

---

## [GLMakie LoadError when plotting contour](https://discourse.julialang.org/t/glmakie-loaderror-when-plotting-contour/124424)

<div class="topic-metadata">

**Author:** [@Jonas\_Bachmann](https://discourse.julialang.org/u/Jonas_Bachmann)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 12:14pm UTC](https://discourse.julialang.org/t/glmakie-loaderror-when-plotting-contour/124424 "2025-01-04T12:14:41Z")

</div>

I am trying to make 3D contour plots in julia with GLMakie.jl. using GLMakie fig = Figure() ax = Axis3(fig\[1, 1\]) data = rand(30, 30, 30) surf = GLMakie.contour!(ax, data) save("fig.png", fig) When I run it, I get the…

---

## [Update a Plotly chart in Pluto in response to a click?](https://discourse.julialang.org/t/update-a-plotly-chart-in-pluto-in-response-to-a-click/124382)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 9:57pm UTC](https://discourse.julialang.org/t/update-a-plotly-chart-in-pluto-in-response-to-a-click/124382 "2025-01-02T21:57:14Z")

</div>

I would like to highlight the point that was clicked in a Plotly chart, within a Pluto notebook. I understand that since Pluto doesn’t support WebIO, you cannot use PlotlyJS but must use PlutoPlotly. Based on a supplied …

---

## [Wind Rose 'hard' stacked barplot edges in GLMakie](https://discourse.julialang.org/t/wind-rose-hard-stacked-barplot-edges-in-glmakie/124277)

<div class="topic-metadata">

**Author:** [@ewillcox](https://discourse.julialang.org/u/ewillcox)\
**Replies:** 5\
**Last updated:** [January 1, 2025, 9:16pm UTC](https://discourse.julialang.org/t/wind-rose-hard-stacked-barplot-edges-in-glmakie/124277 "2025-01-01T21:16:52Z")

</div>

Hello, I am aiming to draw a wind rose similar to the below (from PlotlyJS.jl) in Makie. I can plot a stacked barplot into a PolarAxis: using GLMakie; using ColorSchemes; tbl = (cat = \[1, 1, 1, 2, 2, 2, 3, 3, 3\], …

---

## [(Plots) how to set color of ticks?](https://discourse.julialang.org/t/plots-how-to-set-color-of-ticks/123974)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 7\
**Last updated:** [December 20, 2024, 11:57pm UTC](https://discourse.julialang.org/t/plots-how-to-set-color-of-ticks/123974 "2024-12-20T23:57:51Z")

</div>

How to set color of ticks? Not font or axis, only ticks. Upd: using Plots.jl (gr backend) Like this:

---

## [Double yaxis using plotlyjs() as backend](https://discourse.julialang.org/t/double-yaxis-using-plotlyjs-as-backend/123978)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 3\
**Last updated:** [December 20, 2024, 5:30am UTC](https://discourse.julialang.org/t/double-yaxis-using-plotlyjs-as-backend/123978 "2024-12-20T05:30:38Z")

</div>

Hello, there, I want plot δGDP and δM2 vs Year on left yaxis, whereas δGDP/δM2 vs Year on the right side Here is my code: anyon can help me with plot!? Thanks! using Plots plotlyjs() begin p = plot( Year, \[δM2…

---

## [Plots.jl precompile performance](https://discourse.julialang.org/t/plots-jl-precompile-performance/123979)

<div class="topic-metadata">

**Author:** [@deszoeke](https://discourse.julialang.org/u/deszoeke)\
**Replies:** 4\
**Last updated:** [December 19, 2024, 4:56pm UTC](https://discourse.julialang.org/t/plots-jl-precompile-performance/123979 "2024-12-19T16:56:11Z")

</div>

Is there a lightweight version or workflow for Plots.jl that doesn’t precompile all the backends and dependencies? Most users will only need to use a small subset of backends from one environment, or maybe ever. Could th…

---

## [Alert! error when slicing](https://discourse.julialang.org/t/alert-error-when-slicing/123860)

<div class="topic-metadata">

**Author:** [@govindanupam](https://discourse.julialang.org/u/govindanupam)\
**Replies:** 8\
**Last updated:** [December 18, 2024, 3:21pm UTC](https://discourse.julialang.org/t/alert-error-when-slicing/123860 "2024-12-18T15:21:24Z")

</div>

My intension was to do Slicing an 3d object which is inside the stl file. Please help with below code using FileIO using GeometryBasics using GLMakie rotate\_x(point::GeometryBasics.Point{3, Float32}, angle\_deg::Float…

---

## [PlotlyJS error when plotting in Emacs running in WSL](https://discourse.julialang.org/t/plotlyjs-error-when-plotting-in-emacs-running-in-wsl/123685)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [December 11, 2024, 4:00am UTC](https://discourse.julialang.org/t/plotlyjs-error-when-plotting-in-emacs-running-in-wsl/123685 "2024-12-11T04:00:01Z")

</div>

Is this a known issue? ERROR: IOError: connect: connection refused (ECONNREFUSED) Stacktrace: \[1\] wait\_connected @ /snap/julia/113/share/julia/stdlib/v1.11/Sockets/src/Sockets.jl:528 \[2\] connect @ /snap/juli…

---

## [Makie: adding more ticks to log axis](https://discourse.julialang.org/t/makie-adding-more-ticks-to-log-axis/123878)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 9\
**Last updated:** [December 16, 2024, 3:47pm UTC](https://discourse.julialang.org/t/makie-adding-more-ticks-to-log-axis/123878 "2024-12-16T15:47:48Z")

</div>

Hello everyone, In Makie, what would be the simplest way to add more ticks to the following axis: Using xticks = collect(logrange(1e-5, 1e1, 7)) puts the ticks where I want them to be, but they’re displayed with deci…

---

## [GMT: add lines to a map](https://discourse.julialang.org/t/gmt-add-lines-to-a-map/123852)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 12:36am UTC](https://discourse.julialang.org/t/gmt-add-lines-to-a-map/123852 "2024-12-16T00:36:02Z")

</div>

After plotting a map region with coast, I’d like to add a series of lines. I’m unable to correctly specify the arguments for the lines! call. I’ve also tried giving the x and y as separate \[long\] and \[lat\] vectors to lin…

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

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