# Visualization

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

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

**Page:** 16

---

## [Update non linear solve with sliders (Makie)](https://discourse.julialang.org/t/update-non-linear-solve-with-sliders-makie/117767)

<div class="topic-metadata">

**Author:** [@Mehdi\_MABED](https://discourse.julialang.org/u/Mehdi_MABED)\
**Replies:** 1\
**Last updated:** [August 2, 2024, 3:39pm UTC](https://discourse.julialang.org/t/update-non-linear-solve-with-sliders-makie/117767 "2024-08-02T15:39:08Z")

</div>

I would like to plot iwith GLMakie the solution of a non linear equation that I solve with the NonlinearSolve.jl package, but I would like this plot to be updated when I move a slider (the parameter of the equation is li…

---

## [Choosing colors for lines over heatmap](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 10:43pm UTC](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652 "2024-08-01T22:43:09Z")

</div>

I have a heatmap in viridis or inferno and I want to draw grid lines on it but I don’t know what color to make them so they’re visible. Is there a good automatic or manual way to pick colors for this? let n = 500 f, ax,…

---

## [How do you control the font size of a figure that is used in an academic publication?](https://discourse.julialang.org/t/how-do-you-control-the-font-size-of-a-figure-that-is-used-in-an-academic-publication/117713)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 1:28pm UTC](https://discourse.julialang.org/t/how-do-you-control-the-font-size-of-a-figure-that-is-used-in-an-academic-publication/117713 "2024-08-01T13:28:37Z")

</div>

Hi, everyone! I wonder how do you control the font size of a figure that is used in an academic publication, for example, if we plot the figure with Makie and write a paper with LaTex? Usually, we can tune in Julia both…

---

## [Figure and font size when using \`Plots\`](https://discourse.julialang.org/t/figure-and-font-size-when-using-plots/117611)

<div class="topic-metadata">

**Author:** [@cmichelenstrofer](https://discourse.julialang.org/u/cmichelenstrofer)\
**Replies:** 8\
**Last updated:** [July 31, 2024, 7:34pm UTC](https://discourse.julialang.org/t/figure-and-font-size-when-using-plots/117611 "2024-07-31T19:34:10Z")

</div>

I am trying to save a plot at a specific size (in physical length units, like inches) and have the correct font size. The idea is that then I could just insert it into my LaTeX document without scaling and have the same …

---

## [How do I make a Makie.jl recipe which defaults to 3D rendering?](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631)

<div class="topic-metadata">

**Author:** [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 1:44pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631 "2024-07-30T13:44:23Z")

</div>

I have a recipe that used to run fine with Makie 0.15. In the current Makie version (0.21) it renders as 2D unless I pass the keyword argument axis=(type=Makie.Axis3,). How can I make 3D rendering the default?

---

## [Bar plot proportions with same bar height = 1](https://discourse.julialang.org/t/bar-plot-proportions-with-same-bar-height-1/117566)

<div class="topic-metadata">

**Author:** [@elisadonati23](https://discourse.julialang.org/u/elisadonati23)\
**Replies:** 6\
**Last updated:** [July 29, 2024, 10:52am UTC](https://discourse.julialang.org/t/bar-plot-proportions-with-same-bar-height-1/117566 "2024-07-29T10:52:45Z")

</div>

Hi all! Quite new into julia and struggling a lot with plots. I am moving from R and I cannot find a way to do a similar plot (using ggplot2) ggplot(propdf, aes(x = date, y = prop, fill = age\_year)) + geom\_bar(stat = …

---

## [Makie artefacts around coloured region of surface?](https://discourse.julialang.org/t/makie-artefacts-around-coloured-region-of-surface/117471)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [July 26, 2024, 12:29pm UTC](https://discourse.julialang.org/t/makie-artefacts-around-coloured-region-of-surface/117471 "2024-07-26T12:29:18Z")

</div>

I’m colouring certain regions of a surface, and at the transition between two colours there is a colour not present in the colour matrix given to the color attribute of the surface I’m not exactly sure why this is happe…

---

## [\[Makie.jl\] 3D voxelized visualization of a cubical matrix](https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360)

<div class="topic-metadata">

**Author:** [@KirillGerke](https://discourse.julialang.org/u/KirillGerke)\
**Replies:** 25\
**Last updated:** [July 25, 2024, 9:39pm UTC](https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360 "2024-07-25T21:39:24Z")

</div>

Dear All, Here is another chapter of the struggle to make cool figures with Makie. My aim is to generate numerous visualizations of the 3D images that are represented by voxels. While i used the hints from the examples…

---

## [\[GLMakie\] Overlay plots in animated 3D scene?](https://discourse.julialang.org/t/glmakie-overlay-plots-in-animated-3d-scene/116750)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 8\
**Last updated:** [July 25, 2024, 10:08am UTC](https://discourse.julialang.org/t/glmakie-overlay-plots-in-animated-3d-scene/116750 "2024-07-25T10:08:52Z")

</div>

I am now back at an old problem which I abandoned due to lack of time: displaying overlay plots (2D) in an animated 3D scene :wink: I started a GH discussion back then and I got it almost working with the help of Simon …

---

## [Common label for multiple legend entries using Plots.jl](https://discourse.julialang.org/t/common-label-for-multiple-legend-entries-using-plots-jl/117412)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 3\
**Last updated:** [July 24, 2024, 7:27pm UTC](https://discourse.julialang.org/t/common-label-for-multiple-legend-entries-using-plots-jl/117412 "2024-07-24T19:27:19Z")

</div>

I have produced the following plot using Plots.jl, GR backend: Is it possible to have one label for each two lines in the legend? What I mean is, I would like to have a single label “60%-30%” for the red line and the…

---

## [Arrow between subplots](https://discourse.julialang.org/t/arrow-between-subplots/117344)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [July 24, 2024, 10:56am UTC](https://discourse.julialang.org/t/arrow-between-subplots/117344 "2024-07-24T10:56:27Z")

</div>

Hello, I need to add arrows between the Axis. As an example of my image, which I drawed using GIMP Please help me add them to make it look like in the image above My code and image: using JLD2, CairoMakie, MAT, GLM…

---

## [Exporting 3D Makie Plots to .stl files?](https://discourse.julialang.org/t/exporting-3d-makie-plots-to-stl-files/99308)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 7\
**Last updated:** [July 22, 2024, 11:09pm UTC](https://discourse.julialang.org/t/exporting-3d-makie-plots-to-stl-files/99308 "2024-07-22T23:09:52Z")

</div>

I did a quick search of the Makie docs and here on discourse and I didn’t see any hits discussing this. Is it possible to export 3D plots to .stl files for 3D printing?

---

## [Nice fonts with Plots, GR and LaTeXStrings](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 19\
**Last updated:** [July 22, 2024, 1:43pm UTC](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037 "2024-07-22T13:43:49Z")

</div>

This not a question, just something that might be helpful to others. With Plots 1.12 and GR0.57.4 (at least), and using these options below, one can get a plot with homogeneous fonts (“Computer Modern”) in every element. …

---

## [\[Makie\] \\widehat and \\widetilde in xlabel](https://discourse.julialang.org/t/makie-widehat-and-widetilde-in-xlabel/117277)

<div class="topic-metadata">

**Author:** [@Jeonghun\_Lee](https://discourse.julialang.org/u/Jeonghun_Lee)\
**Replies:** 2\
**Last updated:** [July 22, 2024, 3:26am UTC](https://discourse.julialang.org/t/makie-widehat-and-widetilde-in-xlabel/117277 "2024-07-22T03:26:24Z")

</div>

Here’s my code. using CairoMakie using LaTeXStrings fig = Figure() ax = Axis(fig\[1,1\], xlabel=L"\\widehat{EE}") fig I got the following error message. { "name": "MathTeXEngine.TeXParseError", "message": "TeXParseE…

---

## [Set custom colorbar tick-labels](https://discourse.julialang.org/t/set-custom-colorbar-tick-labels/69806)

<div class="topic-metadata">

**Author:** [@luraess](https://discourse.julialang.org/u/luraess)\
**Replies:** 6\
**Last updated:** [July 21, 2024, 3:56pm UTC](https://discourse.julialang.org/t/set-custom-colorbar-tick-labels/69806 "2024-07-21T15:56:46Z")

</div>

Hi, using Plots.jl and GR backend, how to set custom (text) colorbar tick-labels for each of the 5 color “bins” from this MWE using Plots.jl heatmap(rand(5,5), color=palette(:inferno, 5)) Thanks !

---

## [Blending colours of overlapping lines with lighten mode](https://discourse.julialang.org/t/blending-colours-of-overlapping-lines-with-lighten-mode/117291)

<div class="topic-metadata">

**Author:** [@BenCichos](https://discourse.julialang.org/u/BenCichos)\
**Replies:** 0\
**Last updated:** [July 21, 2024, 9:05am UTC](https://discourse.julialang.org/t/blending-colours-of-overlapping-lines-with-lighten-mode/117291 "2024-07-21T09:05:38Z")

</div>

I want to plot Rays with multiple colours in Makie. Sometimes these rays might overlap each other, for example when I want to show light diffraction from a prism, I would want to represent a white ray but made out of mul…

---

## [Notebook widgets do not show up](https://discourse.julialang.org/t/notebook-widgets-do-not-show-up/116985)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 1\
**Last updated:** [July 21, 2024, 2:11am UTC](https://discourse.julialang.org/t/notebook-widgets-do-not-show-up/116985 "2024-07-21T02:11:06Z")

</div>

I have Julia version 1.10.4 and the following packages installed in my work environment: \[61744808\] DynamicalSystems v3.3.17 \[7073ff75\] IJulia v1.25.0 \[c601a237\] Interact v0.10.5 \[91a5bcdd\] Plots v1.40.5 \[c3e4b0f8\] …

---

## [Using lens in Plots.jl with subplots](https://discourse.julialang.org/t/using-lens-in-plots-jl-with-subplots/117162)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [July 18, 2024, 11:23am UTC](https://discourse.julialang.org/t/using-lens-in-plots-jl-with-subplots/117162 "2024-07-18T11:23:20Z")

</div>

Hi all, I’m trying to add zoomed insets to a figure that contains four panels. I’m not sure how to configure the lens function to be added to a specific subplot in the layout. My plot function looks like this: #Adjust…

---

## [Adjusting Font Size in Plot.jl: Legend Symbols and Lines Out of Scale](https://discourse.julialang.org/t/adjusting-font-size-in-plot-jl-legend-symbols-and-lines-out-of-scale/117141)

<div class="topic-metadata">

**Author:** [@TobiasSchaefer](https://discourse.julialang.org/u/TobiasSchaefer)\
**Replies:** 1\
**Last updated:** [July 17, 2024, 8:17pm UTC](https://discourse.julialang.org/t/adjusting-font-size-in-plot-jl-legend-symbols-and-lines-out-of-scale/117141 "2024-07-17T20:17:36Z")

</div>

Dear Julia community, Using default settings, the font size in a figure created with Plot.jl is very small. However, if I try to adapt the font sizes, the symbols and lines in the legend get out of scale. using Plots …

---

## [Modifying the legend of a plot with a colorbar](https://discourse.julialang.org/t/modifying-the-legend-of-a-plot-with-a-colorbar/117153)

<div class="topic-metadata">

**Author:** [@prconlin](https://discourse.julialang.org/u/prconlin)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 6:04pm UTC](https://discourse.julialang.org/t/modifying-the-legend-of-a-plot-with-a-colorbar/117153 "2024-07-17T18:04:44Z")

</div>

Hello, I’m trying to modify the legend of this plot: The plot represents a random walk, which is simply a series of (x,y) coordinates. To indicate position vs time, I applied a gradient color scale to the line using…

---

## [Second (non-linear) X-Axis](https://discourse.julialang.org/t/second-non-linear-x-axis/117082)

<div class="topic-metadata">

**Author:** [@jprenderg](https://discourse.julialang.org/u/jprenderg)\
**Replies:** 11\
**Last updated:** [July 16, 2024, 1:50pm UTC](https://discourse.julialang.org/t/second-non-linear-x-axis/117082 "2024-07-16T13:50:30Z")

</div>

Hello, Does anyone know how to make a plot with a second x-axis (on the top edge of the plot). I’d like to make values of the second x-axis a user supplied function of values on the primary x-axis. Thanks, Joe

---

## [Multiple colobars](https://discourse.julialang.org/t/multiple-colobars/116970)

<div class="topic-metadata">

**Author:** [@ArneSpang](https://discourse.julialang.org/u/ArneSpang)\
**Replies:** 8\
**Last updated:** [July 15, 2024, 10:15am UTC](https://discourse.julialang.org/t/multiple-colobars/116970 "2024-07-15T10:15:53Z")

</div>

I am trying to make a plot with a heatmap in the background and contour plot of a different field on top. I could steal some ideas from this thread (Overlay a contour over a heatmap - #8 by lazarusA) and I get as far as …

---

## [Alpha keyword ignored in scatterlines](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 2:52am UTC](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954 "2024-07-15T02:52:11Z")

</div>

MWE: using CairoMakie set\_theme!(theme\_latexfonts()) update\_theme!( palette=(color=ColorSchemes.glasbey\_category10\_n256.colors,), ScatterLines=(cycle=Cycle(:color),) ) function main() f = Figure() ax =…

---

## [Fullscreen doesn't work in GLMakie](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 6:23am UTC](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014 "2024-07-14T06:23:11Z")

</div>

I’m trying to display a fullscreen image in GLMakie, but it isn’t working. I’m running the following code: using GLMakie GLMakie.activate!(decorated=false, fullscreen=true) w, h = 2560, 1080 # my monitor's resolution i…

---

## [Create custom shapes in Makie.jl](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 4:49pm UTC](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000 "2024-07-13T16:49:30Z")

</div>

Hello, I would like to create a custom shape using Makie.jl. Something like the figure below This is basically a rectangle with one curved side instead of strainght. I have no clue if it is possible to create such a…

---

## [Legend with many labels can't fit in output](https://discourse.julialang.org/t/legend-with-many-labels-cant-fit-in-output/116947)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 2\
**Last updated:** [July 12, 2024, 8:09am UTC](https://discourse.julialang.org/t/legend-with-many-labels-cant-fit-in-output/116947 "2024-07-12T08:09:49Z")

</div>

Hello, I have a plot with many lines, and a legend with labels for all those lines. Here is an example output. using CairoMakie set\_theme!(theme\_latexfonts()) update\_theme!( palette=(color=ColorSchemes.glasbey\_cat…

---

## [3D array visualization](https://discourse.julialang.org/t/3d-array-visualization/116822)

<div class="topic-metadata">

**Author:** [@nams](https://discourse.julialang.org/u/nams)\
**Replies:** 4\
**Last updated:** [July 9, 2024, 5:35pm UTC](https://discourse.julialang.org/t/3d-array-visualization/116822 "2024-07-09T17:35:01Z")

</div>

Hi all, I am looking for a function similar to PyPlot matshow to visualize a 3D array of integers. Does anyone can help me. Thanks.

---

## [Custom color gradient transition points for heatmap in Plots using pyplot backend](https://discourse.julialang.org/t/custom-color-gradient-transition-points-for-heatmap-in-plots-using-pyplot-backend/116724)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 5\
**Last updated:** [July 8, 2024, 8:24am UTC](https://discourse.julialang.org/t/custom-color-gradient-transition-points-for-heatmap-in-plots-using-pyplot-backend/116724 "2024-07-08T08:24:55Z")

</div>

Hello, I am trying to plot a heatmap using a custom color gradient. More precisely, I want to space out the colors in a particular way. However, I am unable to set the color gradient appropriately using the pyplot pack…

---

## [Makie ecdfplot color](https://discourse.julialang.org/t/makie-ecdfplot-color/116675)

<div class="topic-metadata">

**Author:** [@VincentPoupart](https://discourse.julialang.org/u/VincentPoupart)\
**Replies:** 2\
**Last updated:** [July 5, 2024, 9:22pm UTC](https://discourse.julialang.org/t/makie-ecdfplot-color/116675 "2024-07-05T21:22:05Z")

</div>

Hi everyone, I have problems with changing the curves color in Makie ecdfplot: f14 = Figure(size = (700, 450)) ax14 = Axis(f14\[1,1\], title = "Cumulative distribution long axis orientation, n = $(nrow(filtered\_df))", xla…

---

## [Some questions about \`Plots\`](https://discourse.julialang.org/t/some-questions-about-plots/116649)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [July 5, 2024, 12:34pm UTC](https://discourse.julialang.org/t/some-questions-about-plots/116649 "2024-07-05T12:34:29Z")

</div>

How to make the title closer to the figure? How to make the xlabel/ylabel and the tick numbers closer to the axis? In some cases, if I set the size of the combined figure, some of xlables or ylabels near to the border w…

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

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