# Visualization

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

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

**Page:** 24

---

## [LaTeX strings do not vertically align in Plots](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304)

<div class="topic-metadata">

**Author:** [@ysfoo](https://discourse.julialang.org/u/ysfoo)\
**Replies:** 11\
**Last updated:** [January 29, 2024, 7:59am UTC](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304 "2024-01-29T07:59:39Z")

</div>

I’ve noticed that strings containing LaTeX do not vertically align when their contents differ: using Plots using LaTeXStrings plot( \[1 2 3\], \[1 2 3\], label=\[L"text $g$" L"text $x$" "text"\], legendcolumn=-1, ) resul…

---

## [How to keep the cursor focus on the REPL?](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 8:09pm UTC](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321 "2024-01-27T20:09:46Z")

</div>

I need help with Gtk.jl for the following basic problem. I am trying to get input from the REPL in a closed loop program and update a Gtk window that keeps track of all items generated during program execution. See the…

---

## [Plotting a matrix with wireframe where one axis isn't 1:max](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:42pm UTC](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316 "2024-01-26T22:42:27Z")

</div>

I’m plotting a matrix in which the interpretation of one axis isn’t the 1:n where n is size of the axis. For example: using Plots data = reshape(rand(9), 3,3) p = wireframe(data) # works fine with both axis 1:3 xtick…

---

## [Multiple choice option in GLMakie Menu](https://discourse.julialang.org/t/multiple-choice-option-in-glmakie-menu/109190)

<div class="topic-metadata">

**Author:** [@ilkerarslan](https://discourse.julialang.org/u/ilkerarslan)\
**Replies:** 0\
**Last updated:** [January 24, 2024, 10:36am UTC](https://discourse.julialang.org/t/multiple-choice-option-in-glmakie-menu/109190 "2024-01-24T10:36:26Z")

</div>

Hi, Is there a way of selecting multiple elements in a GLMakie Menu? Or is there another control function to do this?

---

## [Issues with secondary y-axis in Plots.jl](https://discourse.julialang.org/t/issues-with-secondary-y-axis-in-plots-jl/109107)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 6:40pm UTC](https://discourse.julialang.org/t/issues-with-secondary-y-axis-in-plots-jl/109107 "2024-01-22T18:40:27Z")

</div>

Hello all, :slight\_smile: I am working on a plot with two y-axis. The plot is showing how a quantity is changing over time and I would like to have on the left axis its nominal value and on the right axis the percentage…

---

## [Makie axis tick relabelling, marching cubes algorithm output](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077)

<div class="topic-metadata">

**Author:** [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)\
**Replies:** 2\
**Last updated:** [January 22, 2024, 12:08am UTC](https://discourse.julialang.org/t/makie-axis-tick-relabelling-marching-cubes-algorithm-output/109077 "2024-01-22T00:08:33Z")

</div>

Hi all! I’m plotting a mesh made using MarchingCubes.jl and want to readjust the axis tick labels. Currently, the values just represent how many cubes there are along each dimension (e.g. 0:11 x 0:11 x 0:11), but I want …

---

## [Contourf vs contour plotting time in CairoMakie](https://discourse.julialang.org/t/contourf-vs-contour-plotting-time-in-cairomakie/109074)

<div class="topic-metadata">

**Author:** [@andrew\_burger4](https://discourse.julialang.org/u/andrew_burger4)\
**Replies:** 3\
**Last updated:** [January 21, 2024, 9:53pm UTC](https://discourse.julialang.org/t/contourf-vs-contour-plotting-time-in-cairomakie/109074 "2024-01-21T21:53:26Z")

</div>

Hello, if I run the code below with contourf and contour, I see two different times: 4.5 seconds and 1.5 seconds, respectively. Is this performance hit expected just filling in the contours? plotting() begin using …

---

## [Change the focus of Gtk windows](https://discourse.julialang.org/t/change-the-focus-of-gtk-windows/19560)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 9\
**Last updated:** [January 19, 2024, 2:51pm UTC](https://discourse.julialang.org/t/change-the-focus-of-gtk-windows/19560 "2024-01-19T14:51:03Z")

</div>

I have two overlapping Gtk-windows open. How can I change the focus via button clicking to get the hidden Gtk-window on top? Any advice would be very welcome. Carsten

---

## [How to translate and scale Makie.image?](https://discourse.julialang.org/t/how-to-translate-and-scale-makie-image/108741)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [January 19, 2024, 6:02pm UTC](https://discourse.julialang.org/t/how-to-translate-and-scale-makie-image/108741 "2024-01-19T18:02:47Z")

</div>

Makie.image plots a set of pixels efficiently, assuming that the image starts at the origin (0,0) and that the pixels are of size 1x1. We tried to apply Makie.scale! and Makie.translate! to the result of Makie.image to …

---

## [No strict ticks found message](https://discourse.julialang.org/t/no-strict-ticks-found-message/45217)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 13\
**Last updated:** [January 19, 2024, 10:58am UTC](https://discourse.julialang.org/t/no-strict-ticks-found-message/45217 "2024-01-19T10:58:23Z")

</div>

I was plotting and realised a message was popping up in the REPL. I am using Julia 1.5 in Atom and StatsPlots.jl and Plot.jl. Any idea what is causing it? Warning: No strict ticks found └ @ PlotUtils C:\\Users\\Helga\\.ju…

---

## [\[PSA\] Custom default backends for Plots.jl broken on julia 1.10](https://discourse.julialang.org/t/psa-custom-default-backends-for-plots-jl-broken-on-julia-1-10/108979)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 7:57pm UTC](https://discourse.julialang.org/t/psa-custom-default-backends-for-plots-jl-broken-on-julia-1-10/108979 "2024-01-18T19:57:34Z")

</div>

Julia 1.10 turned loading packages that are not direct dependencies at precompile time into an error. Historically Plots.jl relied on some sketchy code loading practices to make the multiple backend story workable. That…

---

## [How to control lighting in 3D plots for CairoMakie?](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 0\
**Last updated:** [January 18, 2024, 6:13pm UTC](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981 "2024-01-18T18:13:09Z")

</div>

I’m having some difficulty with the lighting options when saving a 3D figure using CairoMakie. In particular, none of the lighting options work (commented out in the code below), nor does the option invert\_normals = true …

---

## [Strange behavior of plot---plot successful only if it is the last line of the code](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [January 18, 2024, 3:17pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952 "2024-01-18T15:17:41Z")

</div>

I am using vscode in anaconda. The following code using Plots a = 3+4 plot(\[1,2,3\],\[2,4,8\]) can produce a figure. But this code cannot using Plots plot(\[1,2,3\],\[2,4,8\]) a = 3+4 It seems that the plot is displayed o…

---

## [GLMakie crashes when maximising window after saving high resolution .png](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 12:11pm UTC](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949 "2024-01-18T12:11:59Z")

</div>

Quick aside: should I be putting stuff like this onto github instead of here? I’ve never really interacted with github more than my own repos. Step 1, make figure: begin f = Figure() ax = Axis3(f\[1, 1\], aspect = :data)…

---

## [Julia Makie plot with WCS coordinates](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 4:36pm UTC](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917 "2024-01-17T16:36:55Z")

</div>

have a specific question regarding the Makie library In my work, I frequently deal with astronomical images that require the projection of the axes onto the World Coordinate System (WCS) of the map. I am aware that the …

---

## [GLMakie Box(f\[1,1\]) hides Axis3 content](https://discourse.julialang.org/t/glmakie-box-f-1-1-hides-axis3-content/108868)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 5\
**Last updated:** [January 16, 2024, 5:21pm UTC](https://discourse.julialang.org/t/glmakie-box-f-1-1-hides-axis3-content/108868 "2024-01-16T17:21:12Z")

</div>

I’m using the Box function with different colours to differentiate between panels in my figure. The issue I’m having is that the Box hides the Axis3 lines and the axis contents. Is there a known way around this? I do re…

---

## [Plots with formatted DateTime xticks?](https://discourse.julialang.org/t/plots-with-formatted-datetime-xticks/48649)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 7:05am UTC](https://discourse.julialang.org/t/plots-with-formatted-datetime-xticks/48649 "2024-01-16T07:05:09Z")

</div>

I need to plot some data with DateTime type along the abscissa, and would like to have a nice formatting of the xtick argument. Consider this example: using Plots, Dates # function timeperiod(x::Float64) Second(Int…

---

## [Struggling with layouting Makie plots](https://discourse.julialang.org/t/struggling-with-layouting-makie-plots/108690)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 4\
**Last updated:** [January 15, 2024, 11:01am UTC](https://discourse.julialang.org/t/struggling-with-layouting-makie-plots/108690 "2024-01-15T11:01:00Z")

</div>

Apologies, this is a very similar question to one I asked yesterday, but a bit different. Apologies as well if the answer is in the docs, but I’m struggling to find it. I’ve been playing around with various combinations …

---

## [How to make a Pair Plot in Plots.jl?](https://discourse.julialang.org/t/how-to-make-a-pair-plot-in-plots-jl/53785)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [January 14, 2024, 11:19pm UTC](https://discourse.julialang.org/t/how-to-make-a-pair-plot-in-plots-jl/53785 "2024-01-14T23:19:38Z")

</div>

Hey everyone, I feel like I am totally overthinking this but am running into a wall. I was able to make a pairplot using some code from a Makie discussion here. I have been trying to do the same thing using Plots.jl. In…

---

## [Plot sol of differentialequation](https://discourse.julialang.org/t/plot-sol-of-differentialequation/108768)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 3\
**Last updated:** [January 14, 2024, 4:58am UTC](https://discourse.julialang.org/t/plot-sol-of-differentialequation/108768 "2024-01-14T04:58:34Z")

</div>

using Plots, DifferentialEquations function projectile\_motion(v₀, θ) g = 9.8067 # acceleration due to gravity (m/s^2) t\_final = 2 \* v₀ \* sind(θ) / g # total flight time # Define the system of second-or…

---

## [How to plot a cube in 3D in Plots.jl](https://discourse.julialang.org/t/how-to-plot-a-cube-in-3d-in-plots-jl/86919)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 10\
**Last updated:** [January 13, 2024, 8:56am UTC](https://discourse.julialang.org/t/how-to-plot-a-cube-in-3d-in-plots-jl/86919 "2024-01-13T08:56:32Z")

</div>

I would like to plot a 3D cube in Plots.jl and I have not been able to. I know that there are solutions in Makie but I would like to use the Plots.jl interface because I want to combine this with other things plotted wi…

---

## [Setting \`pt\_per\_unit\` in GLMakie for animation](https://discourse.julialang.org/t/setting-pt-per-unit-in-glmakie-for-animation/107063)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 2:27pm UTC](https://discourse.julialang.org/t/setting-pt-per-unit-in-glmakie-for-animation/107063 "2024-01-12T14:27:16Z")

</div>

With the recent update to GLMakie, I know we can set set pt\_per\_unit while saving figure created by GLMakie. What about animation? I make my animation with something like the following: t\_idx = Observable(1) fig = Figu…

---

## [Save plot as .tex file](https://discourse.julialang.org/t/save-plot-as-tex-file/108691)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 6\
**Last updated:** [January 12, 2024, 9:31am UTC](https://discourse.julialang.org/t/save-plot-as-tex-file/108691 "2024-01-12T09:31:08Z")

</div>

Hi all, I’m trying to export my plot in Julia as a pgf plot. So basically I want a .tex file with the data, the header, etc. automatically generated from the plot. However I’m not sure how to do it correctly. Currently …

---

## [How to filter geojson files?](https://discourse.julialang.org/t/how-to-filter-geojson-files/108599)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 1\
**Last updated:** [January 12, 2024, 2:08am UTC](https://discourse.julialang.org/t/how-to-filter-geojson-files/108599 "2024-01-12T02:08:34Z")

</div>

I just want to try GeoMakie.jl package follow this page: csv :economic-growth map:geojson gdp.csv file include 173 countries and region , but geojson include 255 feature how to alignment data ? how to fill …

---

## [Converting Gtk.GtkAspectFrame to Gtk4.jl](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:10pm UTC](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684 "2024-01-11T14:10:18Z")

</div>

There seems to be a few subtle changes between Gtk.jl to Gtk4.jl that I’m just not able to figure out by myself. Perhaps anyone has a clue? In Gtk there’s a af = GtkAspectFrame("label", 0.5, 0.5, 4/3), that you can then…

---

## [How to unsmooth GLMakie volume plot?](https://discourse.julialang.org/t/how-to-unsmooth-glmakie-volume-plot/107659)

<div class="topic-metadata">

**Author:** [@xinady](https://discourse.julialang.org/u/xinady)\
**Replies:** 10\
**Last updated:** [January 11, 2024, 1:16am UTC](https://discourse.julialang.org/t/how-to-unsmooth-glmakie-volume-plot/107659 "2024-01-11T01:16:28Z")

</div>

Hi, I’m working with 3d voxels data and want to use volume function from GLMakie. I noticed that visualized volume is kind of smoothed/averaged. For example, code for one voxel inside cube is: julia\> using GLMakie ju…

---

## [VTK in IJulia / Visualizing Ferrite Results](https://discourse.julialang.org/t/vtk-in-ijulia-visualizing-ferrite-results/108484)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 18\
**Last updated:** [January 10, 2024, 6:01pm UTC](https://discourse.julialang.org/t/vtk-in-ijulia-visualizing-ferrite-results/108484 "2024-01-10T18:01:34Z")

</div>

I am looking for a way to open/visualize VTK files generated by Ferrite.jl, ideally in a Jupyter notebook but any other suggestions will be welcome. VTKView seems abandoned and DashVTK just seems to have vanished. Is the…

---

## [Makie: Unwanted whitespace to right of 3D subplots, and don't fully understand behaviour of colgap! with 3D plots](https://discourse.julialang.org/t/makie-unwanted-whitespace-to-right-of-3d-subplots-and-dont-fully-understand-behaviour-of-colgap-with-3d-plots/108636)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 5:26pm UTC](https://discourse.julialang.org/t/makie-unwanted-whitespace-to-right-of-3d-subplots-and-dont-fully-understand-behaviour-of-colgap-with-3d-plots/108636 "2024-01-10T17:26:34Z")

</div>

I have a small issue where there is some unwanted whitespace on the right of my figure. Also, the behaviour of colgap is a bit weird to me with 3D plots. The code I am using just makes four 2d plots and four 3d plots in…

---

## ["Reset" Makie without killing Julia process?](https://discourse.julialang.org/t/reset-makie-without-killing-julia-process/108504)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 11\
**Last updated:** [January 10, 2024, 5:18pm UTC](https://discourse.julialang.org/t/reset-makie-without-killing-julia-process/108504 "2024-01-10T17:18:38Z")

</div>

I semi-frequently seem to try things using Makie that stops it from working. Just now, I set rowsize! and colsize!(fig.layout,1,Aspect(1,1.0)), which gave an error. Not a problem, I thought I’d just create a new figure a…

---

## [Error bar color in Gadfly](https://discourse.julialang.org/t/error-bar-color-in-gadfly/108561)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 1:32pm UTC](https://discourse.julialang.org/t/error-bar-color-in-gadfly/108561 "2024-01-09T13:32:18Z")

</div>

I’m trying to make a dodged bar plot with error bars in Gadfly. The problem is that the error bars are the same color as the bars, so you can’t see them. I’d like to just make the error bars black. plot( base\_race\_c…

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

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