# Visualization

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

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

**Page:** 46

---

## [How to detect a container resize event in GTK](https://discourse.julialang.org/t/how-to-detect-a-container-resize-event-in-gtk/59624)

<div class="topic-metadata">

**Author:** [@johntrinder](https://discourse.julialang.org/u/johntrinder)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 12:51am UTC](https://discourse.julialang.org/t/how-to-detect-a-container-resize-event-in-gtk/59624 "2022-08-16T00:51:28Z")

</div>

I’ve scoured google but came up with nothing. I’ve done the following: id = signal\_connect(alig, “check-resize”) do widget, event println(“The window was resized”) end where ‘alig’ is a GtkAlignment to which I add a…

---

## [PyCall Holoviews output in Jupyter notebook](https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Replies:** 1\
**Last updated:** [August 13, 2022, 3:36pm UTC](https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707 "2022-08-13T15:36:35Z")

</div>

Is it possible to get the pyviz stack working with PyCall in a Jupyter notebook? using PyCall hv = pyimport("holoviews") hv.extension("bokeh" ) t=range(-1,1,10) hv.Curve((t,t .^ 2)) currently yields PyObject :Curve \[…

---

## [How to group/color lines per ID in Makie?](https://discourse.julialang.org/t/how-to-group-color-lines-per-id-in-makie/85622)

<div class="topic-metadata">

**Author:** [@aelmokadem](https://discourse.julialang.org/u/aelmokadem)\
**Replies:** 8\
**Last updated:** [August 12, 2022, 6:06pm UTC](https://discourse.julialang.org/t/how-to-group-color-lines-per-id-in-makie/85622 "2022-08-12T18:06:31Z")

</div>

Hi all. I am using CairoMakie.jl to plot a figure for longitudinal theophylline concentration data in 12 subjects simultaneously. The code I am using is Theoph = dataset("datasets", "Theoph") f = Figure() Axis(f\[1,1\]) C…

---

## [1000x1000 heatmap with pyplot() won't render in VS Code plots pane](https://discourse.julialang.org/t/1000x1000-heatmap-with-pyplot-wont-render-in-vs-code-plots-pane/85671)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 5:25pm UTC](https://discourse.julialang.org/t/1000x1000-heatmap-with-pyplot-wont-render-in-vs-code-plots-pane/85671 "2022-08-12T17:25:02Z")

</div>

using Plots pyplot() @time heatmap(rand(1,1)) @time heatmap(rand(10,10)) @time heatmap(rand(100,100)) @time heatmap(rand(1000,1000)) Each takes up to a handful of milliseconds to run, but the 1k x 1k grid simply won’t r…

---

## [Automatic update in Makie with Observable of vector](https://discourse.julialang.org/t/automatic-update-in-makie-with-observable-of-vector/85623)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 5\
**Last updated:** [August 11, 2022, 8:28pm UTC](https://discourse.julialang.org/t/automatic-update-in-makie-with-observable-of-vector/85623 "2022-08-11T20:28:22Z")

</div>

I need to iteratively call a Makie recipe according to an observable value. Lets say I write a recipe MyPlot and I want to iteratively call Scatter inside. using Makie @recipe(MyPlot, x) do scene Theme( re…

---

## [X and y axis equal scaling](https://discourse.julialang.org/t/x-and-y-axis-equal-scaling/30366)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 7:40pm UTC](https://discourse.julialang.org/t/x-and-y-axis-equal-scaling/30366 "2022-08-11T19:40:08Z")

</div>

How do I make the x and y axis have equal scaling? If can cheat it with size = (800,800), for example, but then if I add labels or a title, or change the axis limits, this requires a lot of adjusting. Is there any way I…

---

## [Figure caption in Pluto](https://discourse.julialang.org/t/figure-caption-in-pluto/85564)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 0\
**Last updated:** [August 10, 2022, 4:42am UTC](https://discourse.julialang.org/t/figure-caption-in-pluto/85564 "2022-08-10T04:42:50Z")

</div>

This may be obvious to Pluto users, but I was struggling for a while with creating captioned figures in Pluto notebooks. I used to have a cell with a Makie figure as output, followed by a Markdown cell containing the cap…

---

## [Error reading an XLSX file](https://discourse.julialang.org/t/error-reading-an-xlsx-file/85352)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 6:20pm UTC](https://discourse.julialang.org/t/error-reading-an-xlsx-file/85352 "2022-08-08T18:20:58Z")

</div>

Hello everybody I’m having trouble reading the fields from my XLSX file, when I try this error message appears: MethodError: no method matching iterate(::XLSX.DataTable) using DataFrames, XLSX r = string(@\_\_DIR\_\_,"\\\\t…

---

## [Makie, JSServe and Observables: Can I wrap whole figures in Observables?](https://discourse.julialang.org/t/makie-jsserve-and-observables-can-i-wrap-whole-figures-in-observables/82670)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 1\
**Last updated:** [August 8, 2022, 12:38am UTC](https://discourse.julialang.org/t/makie-jsserve-and-observables-can-i-wrap-whole-figures-in-observables/82670 "2022-08-08T00:38:18Z")

</div>

Hi there! Mostly a question for @sdanisch I guess, but maybe others know as well… I’m creating interactive plots that work offline using WGLMakie and JSServe. For this, I have a custom function that takes a function wit…

---

## [How to precompile Makie?](https://discourse.julialang.org/t/how-to-precompile-makie/20345)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 6\
**Last updated:** [August 7, 2022, 10:45am UTC](https://discourse.julialang.org/t/how-to-precompile-makie/20345 "2022-08-07T10:45:01Z")

</div>

I tried to precompile Makie, because it seemed easy: # add PackageCompiler Pkg.add("PackageCompiler") using PackageCompiler # This is not well tested, so please be careful # The safe option: PackageCompiler.compile\_pa…

---

## [Plot with ribbon in MonteCarloMeasurements.jl](https://discourse.julialang.org/t/plot-with-ribbon-in-montecarlomeasurements-jl/85360)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 4\
**Last updated:** [August 7, 2022, 9:24am UTC](https://discourse.julialang.org/t/plot-with-ribbon-in-montecarlomeasurements-jl/85360 "2022-08-07T09:24:18Z")

</div>

Given a function y = a \* x + b where a and b are of the type Particles. By using MonteCarloMeasurements.jl and Plots.jl, I can plot many sample function y(x) as follows using MonteCarloMeasurements using Plots p = Part…

---

## [@gif without saving all images](https://discourse.julialang.org/t/gif-without-saving-all-images/85160)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 5\
**Last updated:** [August 6, 2022, 10:22am UTC](https://discourse.julialang.org/t/gif-without-saving-all-images/85160 "2022-08-06T10:22:47Z")

</div>

Is it possible to generate an animation with @gif without saving all images to disk?

---

## [Julia GLMakie plotting "contour" animation, old frames stay](https://discourse.julialang.org/t/julia-glmakie-plotting-contour-animation-old-frames-stay/85283)

<div class="topic-metadata">

**Author:** [@Kenneth\_E\_Lee](https://discourse.julialang.org/u/Kenneth_E_Lee)\
**Replies:** 1\
**Last updated:** [August 4, 2022, 10:48am UTC](https://discourse.julialang.org/t/julia-glmakie-plotting-contour-animation-old-frames-stay/85283 "2022-08-04T10:48:03Z")

</div>

Trying to use the GLMakie.record() function to make an animation of GLMakie.contour!() 3D contour plots. The code is quite classic. I will just list out the structure of it. @lift GLMakie.contour!(ax, xx.val, yy.val, zz…

---

## [Change width of a particular stack in Makie bar plot](https://discourse.julialang.org/t/change-width-of-a-particular-stack-in-makie-bar-plot/85269)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 0\
**Last updated:** [August 3, 2022, 10:30pm UTC](https://discourse.julialang.org/t/change-width-of-a-particular-stack-in-makie-bar-plot/85269 "2022-08-03T22:30:20Z")

</div>

I need to have some customization in my bar plots, and was wondering if someone could help me achieve the following two things: How to specify different widths to different stacks in the bar plot? For example, in the p…

---

## [Is it necessary to add GR.jl?](https://discourse.julialang.org/t/is-it-necessary-to-add-gr-jl/85217)

<div class="topic-metadata">

**Author:** [@vitaminace33](https://discourse.julialang.org/u/vitaminace33)\
**Replies:** 3\
**Last updated:** [August 3, 2022, 8:48am UTC](https://discourse.julialang.org/t/is-it-necessary-to-add-gr-jl/85217 "2022-08-03T08:48:13Z")

</div>

GR is the default backend for plotting and works out of the box. Hence, the question, is it necessary to add GR.jl via Pkg.add? Would this add any extra capabilities to plotting?

---

## [How can I change a single color in a Plots.jl palette?](https://discourse.julialang.org/t/how-can-i-change-a-single-color-in-a-plots-jl-palette/85172)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 4\
**Last updated:** [August 2, 2022, 4:04pm UTC](https://discourse.julialang.org/t/how-can-i-change-a-single-color-in-a-plots-jl-palette/85172 "2022-08-02T16:04:11Z")

</div>

If I have a palette, is there some way to change the colors by index? c = palette(:tab10) c\[10\] = colorant"black" ERROR: MethodError: no method matching setindex!(::ColorPalette, ::RGB{N0f8}, ::Int64)

---

## [Are there any interesting visualization examples in Julia？](https://discourse.julialang.org/t/are-there-any-interesting-visualization-examples-in-julia/62661)

<div class="topic-metadata">

**Author:** [@Wind](https://discourse.julialang.org/u/Wind)\
**Replies:** 16\
**Last updated:** [August 2, 2022, 5:37am UTC](https://discourse.julialang.org/t/are-there-any-interesting-visualization-examples-in-julia/62661 "2022-08-02T05:37:48Z")

</div>

I found a web page with a lot of dazzling and interesting javascript visualization examples. It’s true that programming language is the best drawing tool. Since Julia is very fast and easy to use, I assume it can do a l…

---

## [Makie inconsistency between GLMakie output and saved mp4 output](https://discourse.julialang.org/t/makie-inconsistency-between-glmakie-output-and-saved-mp4-output/85112)

<div class="topic-metadata">

**Author:** [@gottacatchenall](https://discourse.julialang.org/u/gottacatchenall)\
**Replies:** 0\
**Last updated:** [August 1, 2022, 6:37pm UTC](https://discourse.julialang.org/t/makie-inconsistency-between-glmakie-output-and-saved-mp4-output/85112 "2022-08-01T18:37:41Z")

</div>

Hi, I’m running the following code to create an animation with two axes within a figure. using Makie, GLMakie using Distributions fig = Figure(resolution=(1600,800)) ax1 = Axis(fig\[1,1\], title="Sampling Locations"…

---

## [Plots.jl contour line colors](https://discourse.julialang.org/t/plots-jl-contour-line-colors/85084)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 6:40pm UTC](https://discourse.julialang.org/t/plots-jl-contour-line-colors/85084 "2022-08-01T18:40:09Z")

</div>

When using contour (not contourf) with Plots.jl, is there a way to force all the contour lines to be a single fixed color?

---

## [Makie.jl figure with broken axis](https://discourse.julialang.org/t/makie-jl-figure-with-broken-axis/85062)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 7:09am UTC](https://discourse.julialang.org/t/makie-jl-figure-with-broken-axis/85062 "2022-08-01T07:09:05Z")

</div>

I intend to create a figure with a broken Axis, which can be useful when the data range is relatively large but relevant details occur only close to the maximal / minimal values. For example, let’s say we want to create…

---

## [When plotting Optimization.jl callbacks with Plots.jl, use just one figure in VS Code plots paned](https://discourse.julialang.org/t/when-plotting-optimization-jl-callbacks-with-plots-jl-use-just-one-figure-in-vs-code-plots-paned/84948)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 2:28pm UTC](https://discourse.julialang.org/t/when-plotting-optimization-jl-callbacks-with-plots-jl-use-just-one-figure-in-vs-code-plots-paned/84948 "2022-07-29T14:28:16Z")

</div>

In the callback function below cb = function(θ,l,pred) … how can I have only the current prediction appear on a plot with each iteration to illustrate the progress of fitting? I have tried putting fig = plot() inside th…

---

## [Plotting MCMCChains with Makie](https://discourse.julialang.org/t/plotting-mcmcchains-with-makie/84860)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 7\
**Last updated:** [July 29, 2022, 1:13pm UTC](https://discourse.julialang.org/t/plotting-mcmcchains-with-makie/84860 "2022-07-29T13:13:06Z")

</div>

It is currently trivially simple to plot the posterior likelihood functions from a MCMC chain with StatsPlots. However, it was quite easy to make a function that allows the same automatic plotting with Makie: Setupjulia…

---

## [Makie - Keep GLMakie window on top of everything](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 4:21am UTC](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722 "2022-07-29T04:21:02Z")

</div>

Is there a built-in way to ask GLMakie to keep the figure window on top of all the others? I know of external programs that can do it to any window, but it would be slightly more convenient for me if I could do it from …

---

## [Vscode plot save button png instead of svg?](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 1:02pm UTC](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914 "2022-07-28T13:02:40Z")

</div>

I’m on vscode Version: 1.69.2 . I used to be able to save a plot in the plotting pane by clicking the save symbol and that gave me a .png file. now it seems i can only save svg. how can I change that back to saving .png …

---

## [Bar and line charts combined in PlotlyJS](https://discourse.julialang.org/t/bar-and-line-charts-combined-in-plotlyjs/84870)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 12:55pm UTC](https://discourse.julialang.org/t/bar-and-line-charts-combined-in-plotlyjs/84870 "2022-07-27T12:55:40Z")

</div>

Hello! I’m trying to plot a bar chart and a line chart combined in the same double y-axis plot, using PlotlyJS, by running the following code: fixed\_cost = \[791.57;773.16;765.58;758.15;750.86;743.71;736.69;729.81;723.0…

---

## [GUI package for a "real-time" control application](https://discourse.julialang.org/t/gui-package-for-a-real-time-control-application/84673)

<div class="topic-metadata">

**Author:** [@Hawkes](https://discourse.julialang.org/u/Hawkes)\
**Replies:** 30\
**Last updated:** [July 25, 2022, 6:01pm UTC](https://discourse.julialang.org/t/gui-package-for-a-real-time-control-application/84673 "2022-07-25T18:01:23Z")

</div>

Hi, since some time I’m wondering how to (i.e. using which GUI library) to build a GUI-based control/measurement application using Julia. In the past I have used Python + PyQt + PyQtGraph to create quite performant GUIs…

---

## [Converting a PyCall numpy ×3 Array{UInt8, 3} to RGB](https://discourse.julialang.org/t/converting-a-pycall-numpy-x3-array-uint8-3-to-rgb/70537)

<div class="topic-metadata">

**Author:** [@Pytrator](https://discourse.julialang.org/u/Pytrator)\
**Replies:** 3\
**Last updated:** [July 25, 2022, 5:26pm UTC](https://discourse.julialang.org/t/converting-a-pycall-numpy-x3-array-uint8-3-to-rgb/70537 "2022-07-25T17:26:01Z")

</div>

Hey guys, I use the NumPy per PyCall to get screenshots of my desktop. I get these images back as 1440×3440×3 Array{UInt8, 3} Discord user borodi#9175 already shared a function of him that converts this array to a BGR. …

---

## [How do I get PyPlot to always be in interactive mode in the REPL?](https://discourse.julialang.org/t/how-do-i-get-pyplot-to-always-be-in-interactive-mode-in-the-repl/84724)

<div class="topic-metadata">

**Author:** [@danielc](https://discourse.julialang.org/u/danielc)\
**Replies:** 0\
**Last updated:** [July 24, 2022, 8:23pm UTC](https://discourse.julialang.org/t/how-do-i-get-pyplot-to-always-be-in-interactive-mode-in-the-repl/84724 "2022-07-24T20:23:36Z")

</div>

So I recently had to reinstall Julia and I just can’t get PyPlot working the way it should. In the REPL, PyPlot defaults to interactive mode, meaning that plots are updated immediately and you don’t have to run show(). E…

---

## [Fast, simple graphics?](https://discourse.julialang.org/t/fast-simple-graphics/84694)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Replies:** 12\
**Last updated:** [July 24, 2022, 8:09am UTC](https://discourse.julialang.org/t/fast-simple-graphics/84694 "2022-07-24T08:09:47Z")

</div>

I’m running a simulation and would like to watch my agents moving around as the simulation runs. Currently, I’m using Plots, just running plot(...) in a loop. However, this is very slow - plotting each frame takes at lea…

---

## [Multiple Makie display windows](https://discourse.julialang.org/t/multiple-makie-display-windows/26295)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 21\
**Last updated:** [July 23, 2022, 4:45pm UTC](https://discourse.julialang.org/t/multiple-makie-display-windows/26295 "2022-07-23T16:45:56Z")

</div>

Hi, I am wandering if multiply Makie Display Windows could be created with different scenes, could be very useful when compare several 3D plots.

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

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