# Visualization

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

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

**Page:** 21

---

## [Discriminate between NaN and Inf in plots](https://discourse.julialang.org/t/discriminate-between-nan-and-inf-in-plots/112171)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 7\
**Last updated:** [March 28, 2024, 6:13pm UTC](https://discourse.julialang.org/t/discriminate-between-nan-and-inf-in-plots/112171 "2024-03-28T18:13:05Z")

</div>

I have a plot where some values originate from devision by 0 and some originate from 0/0, I would like to add new colours to the heatmap to descriminate between them. Does anyone have an idea on how to do this in plots.…

---

## [\`Spy\` function behavior with sparse matrices](https://discourse.julialang.org/t/spy-function-behavior-with-sparse-matrices/112232)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 1:58pm UTC](https://discourse.julialang.org/t/spy-function-behavior-with-sparse-matrices/112232 "2024-03-28T13:58:18Z")

</div>

I am trying to generate sparsity patterns for some matrices for a project. However, I cannot seem to find the necessary command to make all the sparsity patterns the same size. Below is an example and the output: A = sp…

---

## [Contour goes out of grid in Meshes.jl](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 27, 2024, 3:48pm UTC](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187 "2024-03-27T15:48:06Z")

</div>

I am using Meshes.jl and GLMakie.jl for plotting on irregular grid. Contour of psi\[1,:,:\] (red lines) goes out of the circular sector. I want to apply contour on this irregular grid (circular sector). begin grid = S…

---

## [File picker for Makie](https://discourse.julialang.org/t/file-picker-for-makie/32295)

<div class="topic-metadata">

**Author:** [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)\
**Replies:** 4\
**Last updated:** [March 25, 2024, 5:15pm UTC](https://discourse.julialang.org/t/file-picker-for-makie/32295 "2024-03-25T17:15:58Z")

</div>

hello, i’m new to Makie and i’m trying to build a GUI to plot data from a CSV file. to load the file i want the user to choose a CSV and then pars the data to the plot. i was looking for something like the “filepicker”…

---

## [PColormesh equivalent in Makie](https://discourse.julialang.org/t/pcolormesh-equivalent-in-makie/104075)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 6\
**Last updated:** [March 25, 2024, 4:01am UTC](https://discourse.julialang.org/t/pcolormesh-equivalent-in-makie/104075 "2024-03-25T04:01:16Z")

</div>

I’m looking for a Makie equivalent to the matplotlib pcolormesh. I attempted to do this with the mesh plotting function in CairoMakie. I’m testing my code by trying to reproduce this plot from the pcolormesh documentati…

---

## [Python pcolormesh() alternative in JULIA --\`Makie.convert\_arguments\` for the plot type MakieCore.Heatmap and its conversion trait MakieCore.CellGrid() was unsuccessful](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia-makie-convert-arguments-for-the-plot-type-makiecore-heatmap-and-its-conversion-trait-makiecore-cellgrid-was-unsuccessful/111959)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 17\
**Last updated:** [March 24, 2024, 6:00pm UTC](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia-makie-convert-arguments-for-the-plot-type-makiecore-heatmap-and-its-conversion-trait-makiecore-cellgrid-was-unsuccessful/111959 "2024-03-24T18:00:40Z")

</div>

I am using x,z as shown below in heatmap() input. I am getting error Makie.convert\_arguments for the plot type MakieCore.Heatmap and its conversion trait MakieCore.CellGrid() was unsuccessful. My code is :point\_down: …

---

## [How to place a menu in GLMakie?](https://discourse.julialang.org/t/how-to-place-a-menu-in-glmakie/112025)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [March 24, 2024, 11:56am UTC](https://discourse.julialang.org/t/how-to-place-a-menu-in-glmakie/112025 "2024-03-24T11:56:41Z")

</div>

I have the following code: using GLMakie const running = Observable(false) fig = Figure(size=(400, 400), backgroundcolor=RGBf(0.7, 0.8, 1)) sub\_fig = fig\[1,1\] fig\[2, 1\] = buttongrid = GridLayout(tellwidth=true) btn\_…

---

## [How to construct a \`Mesh\` from faces containing \`TriangleFace\` and \`QuadFace\` with GeometryBasics](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 5\
**Last updated:** [March 23, 2024, 3:38pm UTC](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001 "2024-03-23T15:38:17Z")

</div>

I am trying to do read/write of a simple Wavefront .obj file without triangulation. However, the following will result in an error. julia\> using GeometryBasics # v0.4.10 julia\> vertices = Point3f\[(0, 0, 0), (1, 0, 0),…

---

## [GLMakie crash when using PrecompileTools](https://discourse.julialang.org/t/glmakie-crash-when-using-precompiletools/111974)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 5:19pm UTC](https://discourse.julialang.org/t/glmakie-crash-when-using-precompiletools/111974 "2024-03-22T17:19:49Z")

</div>

I observe a strange crash when I execute in the terminal: mkdir tmp cd tmp julia --project="." and then in Julia using Pkg pkg"add KiteViewers" pkg"add KiteUtils" using KiteViewers, KiteUtils viewer=Viewer3D(true); s…

---

## [Warning: error closing screen](https://discourse.julialang.org/t/warning-error-closing-screen/111939)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 4:42pm UTC](https://discourse.julialang.org/t/warning-error-closing-screen/111939 "2024-03-21T16:42:33Z")

</div>

I can run my simulation fine from the REPL. You can find my code at: GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems But if I run it from bash with the command: julia --project -t 7,…

---

## [MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol)](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938 "2024-03-21T16:07:26Z")

</div>

I am getting MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol) My code is :face\_with\_diagonal\_mouth: begin # Create the plot plot() # Define colormap colormap = …

---

## [How to detect if a GLMakie window is closed?](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 2:19pm UTC](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933 "2024-03-21T14:19:12Z")

</div>

When I start my program, I open an GLMakie window. How can I detect if the window is still open or if it was closed by the user? Is there an on\_close() event? I want to stop my simulation when the user closes the window…

---

## [Axis label rotation in Makie LScene](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 4:54pm UTC](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832 "2024-03-19T16:54:32Z")

</div>

Hi all, after a long journey in the Makie doc, Beautiful Makie website and Julia discourse, I decided to post my question. When playing with LScene, we can easily get the following visualization Code to reproduce the…

---

## [How to plot a curvilinear domain using Plots?](https://discourse.julialang.org/t/how-to-plot-a-curvilinear-domain-using-plots/111804)

<div class="topic-metadata">

**Author:** [@arturofburgos](https://discourse.julialang.org/u/arturofburgos)\
**Replies:** 2\
**Last updated:** [March 19, 2024, 3:39pm UTC](https://discourse.julialang.org/t/how-to-plot-a-curvilinear-domain-using-plots/111804 "2024-03-19T15:39:58Z")

</div>

Hello Everyone, I have been trying to create the same plot here that I created using PyPlot, but now using Plots. Does anyone know how to work around this issue? using PyPlot # ion() # pygui(true) r\_ini = 1.0 r\_end = …

---

## [UndefVarError: \`colorbar\` not defined while using Plots.jl](https://discourse.julialang.org/t/undefvarerror-colorbar-not-defined-while-using-plots-jl/111784)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 8:31am UTC](https://discourse.julialang.org/t/undefvarerror-colorbar-not-defined-while-using-plots-jl/111784 "2024-03-19T08:31:45Z")

</div>

While using Plots.jl i am getting error UndefVarError: colorbar not defined Please code below :point\_right: begin fig = plot(size=(300, 300)) # figsize=(20, 20) ax = fig\[1\] # Define colormap colormap = :jet #…

---

## [GTK4 compound widget](https://discourse.julialang.org/t/gtk4-compound-widget/111584)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 11:13pm UTC](https://discourse.julialang.org/t/gtk4-compound-widget/111584 "2024-03-18T23:13:01Z")

</div>

Hello, I’m struggling to make a compound widget using struct under GTK4, does anyone have an example ? Thanks

---

## [Is “repeat“ mousebutton action implemented in Makie?](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 9:15am UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647 "2024-03-18T09:15:02Z")

</div>

I got a bit confused by one of the examples provided on the Makie web page on events (Events · Makie). In the code example that illustrates the implementation of dragging a point, one of the conditions checks whether the…

---

## [Updating Makie plot based on button action](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 6\
**Last updated:** [March 17, 2024, 6:11pm UTC](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706 "2024-03-17T18:11:23Z")

</div>

I’m currently discovering interactions with on in GLMakie. I’ve tried to make an example where I can start an animation by clicking on a button The animation performed as a loop however, it seems intermediate frames …

---

## [How to re-draw a plot with PyPlot](https://discourse.julialang.org/t/how-to-re-draw-a-plot-with-pyplot/111701)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 5:42pm UTC](https://discourse.julialang.org/t/how-to-re-draw-a-plot-with-pyplot/111701 "2024-03-16T17:42:25Z")

</div>

I can create a plot with PyPlot: using PyPlot fig=figure("first") X = 0:0.1:2pi Y = sin.(X) p = plot(X, Y) But after closing the PyPlot window I cannot get it back. I tried: p display(p) show(p) fig display(fig) sho…

---

## [How to create a string with observable values in GLMakie?](https://discourse.julialang.org/t/how-to-create-a-string-with-observable-values-in-glmakie/111525)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [March 15, 2024, 12:28pm UTC](https://discourse.julialang.org/t/how-to-create-a-string-with-observable-values-in-glmakie/111525 "2024-03-15T12:28:49Z")

</div>

Hello, I am using GLMakie to make an interactive plot. I would like to make a label to a slider that shows the actual value of an observable. But how do I extract the value so that it can be rounded and displayed? In t…

---

## [Cannot change linestyle of line using attributes.linestyle in GLMakie](https://discourse.julialang.org/t/cannot-change-linestyle-of-line-using-attributes-linestyle-in-glmakie/111561)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 7:43am UTC](https://discourse.julialang.org/t/cannot-change-linestyle-of-line-using-attributes-linestyle-in-glmakie/111561 "2024-03-15T07:43:47Z")

</div>

I want to change some attributes of lines that have already been drawn. I can change the color and line width by overwriting the values of line attributes.color and attributes.linewidth. However, I cannot change the line…

---

## [From GLMakie v0.4.7 to GLMakie v0.9.9](https://discourse.julialang.org/t/from-glmakie-v0-4-7-to-glmakie-v0-9-9/111607)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 19\
**Last updated:** [March 14, 2024, 8:15pm UTC](https://discourse.julialang.org/t/from-glmakie-v0-4-7-to-glmakie-v0-9-9/111607 "2024-03-14T20:15:26Z")

</div>

I am porting this code from GLMakie v0.4.7 to GLMakie v0.9.9. This means from Makie 0.15.3 to Makie 0.21.0 (I think). See also: Migrating from GLMakie 0.4.7 to current I tried this already two years ago and failed, bu…

---

## [Argument for number of axis ticks](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 4:15pm UTC](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817 "2024-03-14T16:15:30Z")

</div>

Is there a keyword argument to tune the number of ticks? How could this be done? I usually use Plots with the GR backend. Often the routine finds a good number for the ticks. Sometimes, I’d like to tune it a bit, e.g…

---

## [Plotting empty vector causes MethodError if axis limits are not explicitly set](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 3:40pm UTC](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623 "2024-03-14T15:40:34Z")

</div>

I want to plot vertical lines on an axis by passing vlines! an observable to a vector with positions. In my intended use case, the vector will initially be empty. This works fine when I explicitly specify the axis bounda…

---

## [How to disable the lighting in GLMakie](https://discourse.julialang.org/t/how-to-disable-the-lighting-in-glmakie/111550)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 2\
**Last updated:** [March 13, 2024, 11:54am UTC](https://discourse.julialang.org/t/how-to-disable-the-lighting-in-glmakie/111550 "2024-03-13T11:54:41Z")

</div>

I plot a figure like: How to disable the reverse lighting at those points? The picture is generated by codes like: second(x) = x\[2\] fig = Figure() axes = LScene(fig\[1, 1\]) for i in eachindex(points) scatter!(ax…

---

## [How to use amsmath/mathtools in Plots.jl?](https://discourse.julialang.org/t/how-to-use-amsmath-mathtools-in-plots-jl/111542)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 9:12am UTC](https://discourse.julialang.org/t/how-to-use-amsmath-mathtools-in-plots-jl/111542 "2024-03-13T09:12:33Z")

</div>

How can I use amsmath or mathtools commands in Plots.jl? Neither GR + LaTeXStrings.jl nor PGFPlotsX.jl recognize commands like \\lVert A \\rVert

---

## [PGFPlots Healpix / Mollweide / Aitoff projections?](https://discourse.julialang.org/t/pgfplots-healpix-mollweide-aitoff-projections/106832)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:24pm UTC](https://discourse.julialang.org/t/pgfplots-healpix-mollweide-aitoff-projections/106832 "2024-03-12T18:24:41Z")

</div>

I really like PGFPlotsX.jl to create plots which seamlessly integrate into papers but I now I need to make a bunch of Healpix Mollweide projections to visualise data spread on the surface on a sphere (essentially skymaps…

---

## [Ylim shifts image in plot](https://discourse.julialang.org/t/ylim-shifts-image-in-plot/111512)

<div class="topic-metadata">

**Author:** [@parzt](https://discourse.julialang.org/u/parzt)\
**Replies:** 5\
**Last updated:** [March 12, 2024, 5:03pm UTC](https://discourse.julialang.org/t/ylim-shifts-image-in-plot/111512 "2024-03-12T17:03:06Z")

</div>

I’m trying to plot a section of an image file using Plots.jl and then draw in certain points in the image. It works nicely when I plot the whole image: using Plots using FileIO, HTTP, ImageIO bg\_img2 = load(HTTP.URI("h…

---

## [Interactive Julia plot of a compiled mathematical model](https://discourse.julialang.org/t/interactive-julia-plot-of-a-compiled-mathematical-model/111523)

<div class="topic-metadata">

**Author:** [@Marci93Bio](https://discourse.julialang.org/u/Marci93Bio)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 3:13pm UTC](https://discourse.julialang.org/t/interactive-julia-plot-of-a-compiled-mathematical-model/111523 "2024-03-12T15:13:30Z")

</div>

Hello! I’m having some trouble building an interactive plotting tool for my Julia code. Here’s the problem: I have a mathematical model implemented in Julia. I want to create a tool that plots the state variables and …

---

## [Create a LaTeX style title with the content of a variable \[Solved\]](https://discourse.julialang.org/t/create-a-latex-style-title-with-the-content-of-a-variable-solved/111470)

<div class="topic-metadata">

**Author:** [@Denis\_Dardenne](https://discourse.julialang.org/u/Denis_Dardenne)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 3:54pm UTC](https://discourse.julialang.org/t/create-a-latex-style-title-with-the-content-of-a-variable-solved/111470 "2024-03-11T15:54:24Z")

</div>

My aim is to title my plot with a LaTeX style. My code is the following using Plots using LaTeXStrings V= "My Title" plot(\[1,2\],\[1,2\], title=L"&(V)") But it does not work. I already used title=latexstring(V) , but th…

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

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