# Visualization

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

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

**Page:** 20

---

## [Printing specific unicode character in otf file using MathTeXEngine](https://discourse.julialang.org/t/printing-specific-unicode-character-in-otf-file-using-mathtexengine/113252)

<div class="topic-metadata">

**Author:** [@maxee](https://discourse.julialang.org/u/maxee)\
**Replies:** 1\
**Last updated:** [April 19, 2024, 8:59pm UTC](https://discourse.julialang.org/t/printing-specific-unicode-character-in-otf-file-using-mathtexengine/113252 "2024-04-19T20:59:46Z")

</div>

When using MathTeXEngine within Makie, I need to put a specific font for N in the graph. I am using \\mathcal{N} within LaTeX, and would like an N which looks similar. I cannot change the font for the LaTeX font. The mat…

---

## [How to correctly pick the index of heatmap cell?](https://discourse.julialang.org/t/how-to-correctly-pick-the-index-of-heatmap-cell/113230)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 11:28am UTC](https://discourse.julialang.org/t/how-to-correctly-pick-the-index-of-heatmap-cell/113230 "2024-04-19T11:28:16Z")

</div>

My goal is to click the cell in heatmap and got its index. Currently it is implemented the following way on(events(f).mousebutton, priority = 2) do event if event.button == Mouse.left && event.action == Mouse…

---

## [Strange Makie Observable updating behavior within recipe](https://discourse.julialang.org/t/strange-makie-observable-updating-behavior-within-recipe/113225)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 4\
**Last updated:** [April 19, 2024, 11:25am UTC](https://discourse.julialang.org/t/strange-makie-observable-updating-behavior-within-recipe/113225 "2024-04-19T11:25:24Z")

</div>

Hello all, I’m currently facing a strange error while using a custom recipe. This error only showed up with recent versions of Makie, but I could not find the source. Here is the problem, for meshscatters, Makie has onl…

---

## [Makie does not accept Vector{DataTime} types？](https://discourse.julialang.org/t/makie-does-not-accept-vector-datatime-types/113218)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 3\
**Last updated:** [April 19, 2024, 7:44am UTC](https://discourse.julialang.org/t/makie-does-not-accept-vector-datatime-types/113218 "2024-04-19T07:44:53Z")

</div>

Why doesn’t Makie accept DataTime type, DataTime type is often used. julia\> typeof(e) Vector{Float64} (alias for Array{Float64, 1}) julia\> typeof(time) Vector{DateTime} (alias for Array{DateTime, 1}) julia\> lines(time…

---

## [Makie read legend color](https://discourse.julialang.org/t/makie-read-legend-color/113076)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 3\
**Last updated:** [April 17, 2024, 6:12pm UTC](https://discourse.julialang.org/t/makie-read-legend-color/113076 "2024-04-17T18:12:42Z")

</div>

Is it possible to read back the colors from an existing Legend, or axis?

---

## [Makie - transformation of coordinates when using PolarAxis vs Axis](https://discourse.julialang.org/t/makie-transformation-of-coordinates-when-using-polaraxis-vs-axis/112989)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 4:20am UTC](https://discourse.julialang.org/t/makie-transformation-of-coordinates-when-using-polaraxis-vs-axis/112989 "2024-04-17T04:20:40Z")

</div>

Is there a way to check in a makie plotting recipe what type of axis is being plotted on? I am trying to work on a plotting recipe for AbstractTrees with both ‘dendrogram’ layouts and circular layouts Ideally, a…

---

## [Makie recipe subplots?](https://discourse.julialang.org/t/makie-recipe-subplots/113037)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 8:56pm UTC](https://discourse.julialang.org/t/makie-recipe-subplots/113037 "2024-04-16T20:56:29Z")

</div>

I could not figure this out, but does Makie recipe support making multiple subplots? For instance: function Makie.plot!(plt::MyPlot) lines!(plt\[1,1\], ...) scatter!(plt\[1,2\], ...) end

---

## [How to specify xticks with min, max an arbitrary number?](https://discourse.julialang.org/t/how-to-specify-xticks-with-min-max-an-arbitrary-number/113021)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 3:03pm UTC](https://discourse.julialang.org/t/how-to-specify-xticks-with-min-max-an-arbitrary-number/113021 "2024-04-16T15:03:13Z")

</div>

I want to specify ax.xticks with min of xvalue, 0.0, mean of xvalue, max of xvalue. How can I implement that?

---

## [Mesh is displayed properly on CairoMakie, but not in GLMakie](https://discourse.julialang.org/t/mesh-is-displayed-properly-on-cairomakie-but-not-in-glmakie/112977)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 0\
**Last updated:** [April 15, 2024, 7:58pm UTC](https://discourse.julialang.org/t/mesh-is-displayed-properly-on-cairomakie-but-not-in-glmakie/112977 "2024-04-15T19:58:24Z")

</div>

Hello! I’m running the following code snippet to produce a sphere: using GLMakie fig = Figure() ax = Axis3(fig\[1, 1\], aspect=:equal) mesh!(ax, Sphere(Point3f(0), 1), alpha=0.1) scatter!(ax,0,0,0, color=:red) fig wi…

---

## [Plot two legends (e.g. one for color and one for shape) with \`Plots.jl\`](https://discourse.julialang.org/t/plot-two-legends-e-g-one-for-color-and-one-for-shape-with-plots-jl/40746)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 5\
**Last updated:** [April 15, 2024, 7:04am UTC](https://discourse.julialang.org/t/plot-two-legends-e-g-one-for-color-and-one-for-shape-with-plots-jl/40746 "2024-04-15T07:04:01Z")

</div>

How can I make a plot like this in Plots.jl (this was made with matplotlib): Basically four lines: plot( data1, color=c1, linestyle=s1) plot!(data2, color=c2, linestyle=s1) plot!(data3, color=c1, linestyle=s2) plot!(…

---

## [Gtk stopped working on MacOS in March or April 2024](https://discourse.julialang.org/t/gtk-stopped-working-on-macos-in-march-or-april-2024/112904)

<div class="topic-metadata">

**Author:** [@JeffFessler](https://discourse.julialang.org/u/JeffFessler)\
**Replies:** 2\
**Last updated:** [April 13, 2024, 4:38pm UTC](https://discourse.julialang.org/t/gtk-stopped-working-on-macos-in-march-or-april-2024/112904 "2024-04-13T16:38:41Z")

</div>

Gtk stopped working for me on MacOS sometime this semester (I am teaching a music signal processing course using Julia with \>60 students). Here is a MWE of code that worked a month or so ago and now does not work on Mac…

---

## [How to avoid "Julia is not responding" when using a file dialog](https://discourse.julialang.org/t/how-to-avoid-julia-is-not-responding-when-using-a-file-dialog/112075)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [March 25, 2024, 12:14pm UTC](https://discourse.julialang.org/t/how-to-avoid-julia-is-not-responding-when-using-a-file-dialog/112075 "2024-03-25T12:14:47Z")

</div>

I have a GLMakie based GUI app and want to load a file using a native file dialog. This is my code: using GLMakie, NativeFileDialog fig = Figure(size=(200, 200), backgroundcolor=RGBf(0.7, 0.8, 1)) btn\_RUN = Button(fig…

---

## [Problem with hover display in heatmap with plotlyjs backend](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 7\
**Last updated:** [April 13, 2024, 1:56am UTC](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586 "2024-04-13T01:56:59Z")

</div>

if i use the plotly backend to make a heatmap with a small number of categorical variables then everything is fine using Plots plotly() categories = string.(collect('a':'e')) n = length(categories) #5 heatmap(categorie…

---

## [How to do "reactive conditional plotting" in Makie recipes?](https://discourse.julialang.org/t/how-to-do-reactive-conditional-plotting-in-makie-recipes/112871)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 6\
**Last updated:** [April 12, 2024, 8:00pm UTC](https://discourse.julialang.org/t/how-to-do-reactive-conditional-plotting-in-makie-recipes/112871 "2024-04-12T20:00:26Z")

</div>

I want to show a plot in the recipe if any condition is true and do something else otherwise, maybe another plot, or do nothing in the case of my MWE. How can I do this in Makie recipes? MWE: using Makie using GLMakie…

---

## [Colours from a \[0,1\] float?](https://discourse.julialang.org/t/colours-from-a-0-1-float/112866)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [April 12, 2024, 11:10am UTC](https://discourse.julialang.org/t/colours-from-a-0-1-float/112866 "2024-04-12T11:10:00Z")

</div>

I have some data that I want to represent in a histogram with a different colour of the bin that depends on a float in the 0,1 range. I can see I can pass to the histogram call a colour parameter with the vector of colo…

---

## [Cairomakie inset plot at specific (x,y) coordinates](https://discourse.julialang.org/t/cairomakie-inset-plot-at-specific-x-y-coordinates/84797)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 3\
**Last updated:** [April 11, 2024, 12:15pm UTC](https://discourse.julialang.org/t/cairomakie-inset-plot-at-specific-x-y-coordinates/84797 "2024-04-11T12:15:54Z")

</div>

Hi Guys, by using BBox() one can create an inset plot. The location is determined by the arguments, which are given as pixels. This works mostly but for certain use cases, it would be nice to specify an absolute locati…

---

## [I cannot use Julia kernel in Jupyter Notebook/Jupyter lab after updating to Julia 1.9.0](https://discourse.julialang.org/t/i-cannot-use-julia-kernel-in-jupyter-notebook-jupyter-lab-after-updating-to-julia-1-9-0/99649)

<div class="topic-metadata">

**Author:** [@arinbasu](https://discourse.julialang.org/u/arinbasu)\
**Replies:** 15\
**Last updated:** [April 10, 2024, 3:46pm UTC](https://discourse.julialang.org/t/i-cannot-use-julia-kernel-in-jupyter-notebook-jupyter-lab-after-updating-to-julia-1-9-0/99649 "2024-04-10T15:46:19Z")

</div>

I have installed Jupyter Lab, and IJulia. Now if I do $ jupyter lab, I get to see the Jupyter Lab web interface, where if I select “Julia-1.9.0 kernel”, the kernel does not load, and in the terminal I see the followin…

---

## [Problem with observables and animations](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731)

<div class="topic-metadata">

**Author:** [@oddsen](https://discourse.julialang.org/u/oddsen)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 2:45pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731 "2024-04-09T14:45:45Z")

</div>

Hi, Im trying to animate something with points In this code, it is supposed to show points moving for each iteration. The problem is that the points from the previous iteration aren’t being removed, resulting in an a…

---

## [Arrows on Axis in Makie](https://discourse.julialang.org/t/arrows-on-axis-in-makie/79015)

<div class="topic-metadata">

**Author:** [@kfrb](https://discourse.julialang.org/u/kfrb)\
**Replies:** 7\
**Last updated:** [April 9, 2024, 12:33pm UTC](https://discourse.julialang.org/t/arrows-on-axis-in-makie/79015 "2024-04-09T12:33:59Z")

</div>

First, I love Makie and am currently switching to it as my daily plotting library! I often need arrow tips on the axis ends. Unfortunately, I could not find anything about it in the docs, so I used the following workaro…

---

## [Rowgap!() not working properly](https://discourse.julialang.org/t/rowgap-not-working-properly/112682)

<div class="topic-metadata">

**Author:** [@brotmesmer](https://discourse.julialang.org/u/brotmesmer)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 8:36am UTC](https://discourse.julialang.org/t/rowgap-not-working-properly/112682 "2024-04-09T08:36:21Z")

</div>

Hi all, when trying to layout a plot similar to the the example in the Makie layout tutorial i ran into a problem using the rowgap!() command: MethodError: objects of type Int64 are not callable colgap!() works flawle…

---

## [Annotating only a few points with StatsPlots](https://discourse.julialang.org/t/annotating-only-a-few-points-with-statsplots/112635)

<div class="topic-metadata">

**Author:** [@dlshew19](https://discourse.julialang.org/u/dlshew19)\
**Replies:** 1\
**Last updated:** [April 7, 2024, 9:50am UTC](https://discourse.julialang.org/t/annotating-only-a-few-points-with-statsplots/112635 "2024-04-07T09:50:09Z")

</div>

Basically I’m trying label the a few of the markers with a name column of my dataframe. I have stats on the x and y axis and I want to label the player who’s it is but I don’t want to crowd the plot. This is how the data…

---

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

<div class="topic-metadata">

**Author:** [@oddsen](https://discourse.julialang.org/u/oddsen)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 3:54pm UTC](https://discourse.julialang.org/t/need-help-with-makie-animation/112527 "2024-04-04T15:54:56Z")

</div>

This is my code : I want to create an animation or slide illustrating the movement of my points on a sphere as the variable ‘i’ increases from 1 to ‘Stop’. This will allow me to visualize the trajectory of my three p…

---

## [How to tweak tick label position in Makie?](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 6:31pm UTC](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085 "2024-04-02T18:31:11Z")

</div>

The new layout system is awesome, and the basic and layout tutorials gave very good explanations. After reading all the docs, in particular the Modifying ticks section, I see how to set the ticks strings (otherwise th…

---

## [Makie - Reuse axis / Clear plots](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 6\
**Last updated:** [April 2, 2024, 4:31pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160 "2024-04-02T16:31:56Z")

</div>

Hello!! Is there a way to clean everything that has been plot into an Axis but keepong the axis? I know of convenient methods to create a new Axis within a given fugure, passing a Dict with parameters in order to set i…

---

## [LaTeX friendly vector graphics with Makie](https://discourse.julialang.org/t/latex-friendly-vector-graphics-with-makie/84704)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 2:26am UTC](https://discourse.julialang.org/t/latex-friendly-vector-graphics-with-makie/84704 "2024-04-01T02:26:43Z")

</div>

Is there a way to produce vector graphics figures with Makie such that they can be included in a LaTeX document and have LaTeX typeset all text in the figure? My first idea was to use CairoMakie to produce a figure.svg f…

---

## [How to not plot axis ticks on top and right in Plots.jl with GR backend?](https://discourse.julialang.org/t/how-to-not-plot-axis-ticks-on-top-and-right-in-plots-jl-with-gr-backend/112345)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [March 31, 2024, 6:35pm UTC](https://discourse.julialang.org/t/how-to-not-plot-axis-ticks-on-top-and-right-in-plots-jl-with-gr-backend/112345 "2024-03-31T18:35:06Z")

</div>

This is the inverse question for: Axis ticks on top and right plot with framestyle=:box used to not put axis ticks on top and right, but after Feature request: plot axes and ticks on all four sides · Issue #2218 · Julia…

---

## [Error loading FileIOExt](https://discourse.julialang.org/t/error-loading-fileioext/112353)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [March 31, 2024, 2:21pm UTC](https://discourse.julialang.org/t/error-loading-fileioext/112353 "2024-03-31T14:21:39Z")

</div>

When I type: using Plots I get the following error message: ┌ Warning: Module FileIOExt with build ID ffffffff-ffff-ffff-0000-0a3d1eb7c6d1 is missing from the cache. │ This may mean FileIOExt \[f5f51d8f-5827-5d2e-939b-…

---

## [(Plots.jl) aspect\_ratio=1.0 for 3d plot](https://discourse.julialang.org/t/plots-jl-aspect-ratio-1-0-for-3d-plot/58607)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 16\
**Last updated:** [March 30, 2024, 7:43pm UTC](https://discourse.julialang.org/t/plots-jl-aspect-ratio-1-0-for-3d-plot/58607 "2024-03-30T19:43:25Z")

</div>

Issue I don’t know how to set aspect\_ratio=:equal for 3d plot (like axis\_equal in MATLAB). It seems that only x and y axes’ aspect ratio are equal. Example code using Plots function test() N = 10 xs = range(0…

---

## [Python pcolormesh() alternative in Julia](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia/111885)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 15\
**Last updated:** [March 30, 2024, 5:03am UTC](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia/111885 "2024-03-30T05:03:02Z")

</div>

I want to get equivalent plot in Julia that i have using Python pcolormesh() function. Here x and z are two 270x100 matrices. You can download folder containing that Python script and data at VelocPythJul.tar.gz - Google…

---

## [CairoMakie stop splitting line into segments when using varying colour along line](https://discourse.julialang.org/t/cairomakie-stop-splitting-line-into-segments-when-using-varying-colour-along-line/112234)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [March 29, 2024, 3:58pm UTC](https://discourse.julialang.org/t/cairomakie-stop-splitting-line-into-segments-when-using-varying-colour-along-line/112234 "2024-03-29T15:58:27Z")

</div>

When you have a line with varying colour, CairoMakie splits the line up into segments defined by your data points. Is there a way to avoid this? code to produce fig: using CairoMakie f = Figure() ax = Axis(f\[1, 1\]) x…

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

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