# Visualization

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

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

**Page:** 17

---

## [Automatic x/y lims cut off markers](https://discourse.julialang.org/t/automatic-x-y-lims-cut-off-markers/116582)

<div class="topic-metadata">

**Author:** [@jerlich](https://discourse.julialang.org/u/jerlich)\
**Replies:** 3\
**Last updated:** [July 4, 2024, 10:33am UTC](https://discourse.julialang.org/t/automatic-x-y-lims-cut-off-markers/116582 "2024-07-04T10:33:25Z")

</div>

when using large markers, the edge of the marker is outside of the x / y lims. e.g: scatter(\[1,2,1,2\],\[1,1,2,2\].\*0.5; markersize=60, marker='◯', figure=(;size=(200,200))) Should the auto x/y lims take into a…

---

## [Effects of using empty!(scene) in Makie.jl](https://discourse.julialang.org/t/effects-of-using-empty-scene-in-makie-jl/116570)

<div class="topic-metadata">

**Author:** [@Jeff\_Wack](https://discourse.julialang.org/u/Jeff_Wack)\
**Replies:** 2\
**Last updated:** [July 3, 2024, 5:03pm UTC](https://discourse.julialang.org/t/effects-of-using-empty-scene-in-makie-jl/116570 "2024-07-03T17:03:59Z")

</div>

The following script throws an error: using CairoMakie s = Scene() scatter!(s,\[0,0,1/2,1/2\],\[0,1/2,0,1/2\]) display(s) empty!(s) scatter!(s,\[0,0,-1/2,-1/2\],\[0,-1/2,0,-1/2\]) display(s) KeyError: key :markercolor…

---

## [How to modify the axis in a recipe](https://discourse.julialang.org/t/how-to-modify-the-axis-in-a-recipe/116405)

<div class="topic-metadata">

**Author:** [@Jeff\_Wack](https://discourse.julialang.org/u/Jeff_Wack)\
**Replies:** 1\
**Last updated:** [July 3, 2024, 8:22am UTC](https://discourse.julialang.org/t/how-to-modify-the-axis-in-a-recipe/116405 "2024-07-03T08:22:49Z")

</div>

I am trying to create a Makie recipe to make a plot from a custom datatype. In these plots I would like to have a completely blank white background, in other words have no visible axis. Normally to make a plot like this…

---

## [How can I plot a scatter plot over a heatmap with a different color gradient?](https://discourse.julialang.org/t/how-can-i-plot-a-scatter-plot-over-a-heatmap-with-a-different-color-gradient/116493)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 8\
**Last updated:** [July 2, 2024, 8:04pm UTC](https://discourse.julialang.org/t/how-can-i-plot-a-scatter-plot-over-a-heatmap-with-a-different-color-gradient/116493 "2024-07-02T20:04:15Z")

</div>

I want to overlay a scatter plot onto a heatmap, where the points in the scatter plot are colored based on values at those points. If the values of the scatter points are in the same range as the heatmap’s values, this i…

---

## [Custom divergent colormap with unequal sides](https://discourse.julialang.org/t/custom-divergent-colormap-with-unequal-sides/115484)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 10\
**Last updated:** [July 2, 2024, 2:35pm UTC](https://discourse.julialang.org/t/custom-divergent-colormap-with-unequal-sides/115484 "2024-07-02T14:35:44Z")

</div>

I am working with Makie.jl and I wish to create a custom colormap. Taking any divergent colormap provided by Makie, such as :balance for example, I want to make a colormap that has the same colors as :balance or :delta, …

---

## [How to make a numeric list in Literate.jl](https://discourse.julialang.org/t/how-to-make-a-numeric-list-in-literate-jl/116517)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 11:59am UTC](https://discourse.julialang.org/t/how-to-make-a-numeric-list-in-literate-jl/116517 "2024-07-02T11:59:35Z")

</div>

In Literate.jl I just want to make number list 1. 2. 3. And as pictures below show it doesn’t work. How to solve this?

---

## [Is there a way to add padding between axis ticks and axis label in Plots.jl with gr?](https://discourse.julialang.org/t/is-there-a-way-to-add-padding-between-axis-ticks-and-axis-label-in-plots-jl-with-gr/116498)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 5\
**Last updated:** [July 2, 2024, 8:09am UTC](https://discourse.julialang.org/t/is-there-a-way-to-add-padding-between-axis-ticks-and-axis-label-in-plots-jl-with-gr/116498 "2024-07-02T08:09:36Z")

</div>

Hi all! I’m using the GR backend to create a plot. The axis label is written with a LatexString, but for some reason, there is almost no space between the tick labels and the axis label. I’ve been trying for a while to …

---

## [How to make \`barplot\` in makie show different fill styles?](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 1:29pm UTC](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464 "2024-07-01T13:29:00Z")

</div>

I want the bars in a barplot to have different fill styles instead of just being filled with a solid color. For example, I want to have grid-like stripes, zebra stripes with two alternating colors, and so on. How can I…

---

## [Proper order when cycling through colormap](https://discourse.julialang.org/t/proper-order-when-cycling-through-colormap/116209)

<div class="topic-metadata">

**Author:** [@erathorn](https://discourse.julialang.org/u/erathorn)\
**Replies:** 6\
**Last updated:** [July 1, 2024, 12:30pm UTC](https://discourse.julialang.org/t/proper-order-when-cycling-through-colormap/116209 "2024-07-01T12:30:46Z")

</div>

Using this (slightly adapted) code from the documentation, we can see, that the cycler, uses the two extreme colors from the colormap. using CairoMakie categories = rand(1:3, 1000) values = randn(1000) dodge = rand(1:2…

---

## [How to plot a rounded rectangle with \`Makie\`?](https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 12:25pm UTC](https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457 "2024-07-01T12:25:46Z")

</div>

I can do this using rectangle('Position', \[-1, 1, 1, 1\], 'Curvature', 0.2) in MATLAB.

---

## [Real time plotting (with Makie)](https://discourse.julialang.org/t/real-time-plotting-with-makie/20432)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 13\
**Last updated:** [June 30, 2024, 12:36am UTC](https://discourse.julialang.org/t/real-time-plotting-with-makie/20432 "2024-06-30T00:36:11Z")

</div>

Currently I’m trying to plot real-time measured values (force values from a robot controller). By real-time I mean, at a 125Hz frequency as the values arrive. I’m working with Makie and concluded to this code based on th…

---

## [How many named colors are there in \`Makie\`?](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 7:07am UTC](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373 "2024-06-29T07:07:40Z")

</div>

How many named colors (not the color bars) are there in Makie? For example, :red, :blue, :green, :yellow… Where can I find the full list?

---

## [How to add a legend to a violin plot?](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-violin-plot/116374)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [June 29, 2024, 7:06am UTC](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-violin-plot/116374 "2024-06-29T07:06:51Z")

</div>

fig = Figure() ax = Axis(fig\[1, 1\]) categories = rand(1:3, 1000) values = randn(1000) violin!(ax, categories, values, color=(:red,0.3), label="data1") categories = rand(1:3, 1000) values = randn(1000) violin!(ax, categor…

---

## [Questions on \`hist | Makie\`](https://discourse.julialang.org/t/questions-on-hist-makie/116347)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 14\
**Last updated:** [June 28, 2024, 3:30pm UTC](https://discourse.julialang.org/t/questions-on-hist-makie/116347 "2024-06-28T15:30:03Z")

</div>

hist | Makie can draw multiple histograms on one figure like what follows But I wonder if these histograms share a same height scale so that we can compare between different histograms according to the bar heights. T…

---

## [Plot combination and rotation using CairoMakie and AlgebraOfGraphics](https://discourse.julialang.org/t/plot-combination-and-rotation-using-cairomakie-and-algebraofgraphics/116332)

<div class="topic-metadata">

**Author:** [@Bonjour-Lemonde](https://discourse.julialang.org/u/Bonjour-Lemonde)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 9:14am UTC](https://discourse.julialang.org/t/plot-combination-and-rotation-using-cairomakie-and-algebraofgraphics/116332 "2024-06-28T09:14:17Z")

</div>

Hi all, I want to know how to achieve plotting as shown below: currently, I could only achieved plotting as shown below using the following code: using AlgebraOfGraphics using Distributions using DataFrames using…

---

## [2D interpolation of large data to calculate depth profiles](https://discourse.julialang.org/t/2d-interpolation-of-large-data-to-calculate-depth-profiles/116190)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 32\
**Last updated:** [June 25, 2024, 10:14pm UTC](https://discourse.julialang.org/t/2d-interpolation-of-large-data-to-calculate-depth-profiles/116190 "2024-06-25T22:14:11Z")

</div>

I am working with a dataset which is essentially a depth sample map: x and y coordinates on an irregular grid and the corresponding depth values. I need to calculate tons of depth profiles for different lines defined by …

---

## [Two y-axis - Issue with limits](https://discourse.julialang.org/t/two-y-axis-issue-with-limits/116205)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 8:34pm UTC](https://discourse.julialang.org/t/two-y-axis-issue-with-limits/116205 "2024-06-25T20:34:30Z")

</div>

Hi :slight\_smile: I am using GLMakie and I would like to add a second yaxis. I have some troubles for defining the limits of both y-axis. The axis seem dependent (when I fix the limit of ax2, it changes the vizualisatio…

---

## [How to display moving objects in Makie.jl](https://discourse.julialang.org/t/how-to-display-moving-objects-in-makie-jl/54282)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [June 25, 2024, 7:36pm UTC](https://discourse.julialang.org/t/how-to-display-moving-objects-in-makie-jl/54282 "2024-06-25T19:36:43Z")

</div>

Hello, I am now able to display a 3D scene in the way I want it. But how can I display a moving system? My main loop looks like this: for i = 0:4 # calculate a vector of 3D coordinates X = range(0,…

---

## [How to ensure Makie's theme activation occurs when called in a module?](https://discourse.julialang.org/t/how-to-ensure-makies-theme-activation-occurs-when-called-in-a-module/116114)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [June 23, 2024, 6:27pm UTC](https://discourse.julialang.org/t/how-to-ensure-makies-theme-activation-occurs-when-called-in-a-module/116114 "2024-06-23T18:27:05Z")

</div>

I had some script with lots of convenience plotting functions for Makie, as well as a bunch of themes I like to use in my work. For reproducibility I decided to make it a Julia package so that it can be added and its git…

---

## [Makie.jl v0.16.1 - How to manually set limits for 3D LScene?](https://discourse.julialang.org/t/makie-jl-v0-16-1-how-to-manually-set-limits-for-3d-lscene/74651)

<div class="topic-metadata">

**Author:** [@jshahbazi](https://discourse.julialang.org/u/jshahbazi)\
**Replies:** 4\
**Last updated:** [June 22, 2024, 2:20pm UTC](https://discourse.julialang.org/t/makie-jl-v0-16-1-how-to-manually-set-limits-for-3d-lscene/74651 "2024-06-22T14:20:11Z")

</div>

In v0.15.x, I could manually set the limits for a 3D LScene via xlims!(lscene.scene, (0, 10)), but in v0.16 that ability is no longer available. It seems to involve using an Axis3, but I’m not sure how to combine an Axi…

---

## [Plotting HEALPix map onto mollweide projection with GeoMakie](https://discourse.julialang.org/t/plotting-healpix-map-onto-mollweide-projection-with-geomakie/115805)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 6\
**Last updated:** [June 22, 2024, 12:59am UTC](https://discourse.julialang.org/t/plotting-healpix-map-onto-mollweide-projection-with-geomakie/115805 "2024-06-22T00:59:19Z")

</div>

Hi, I am trying to create a figure like this: https://www.researchgate.net/publication/353085441/figure/fig1/AS:1043304233848839@1625754521890/All-sky-map-showing-the-best-fit-positions-and-90-containment-regions-approxi…

---

## [GeoMakie meshimage colormap not applying and ticks overlapping](https://discourse.julialang.org/t/geomakie-meshimage-colormap-not-applying-and-ticks-overlapping/115903)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 3\
**Last updated:** [June 22, 2024, 12:48am UTC](https://discourse.julialang.org/t/geomakie-meshimage-colormap-not-applying-and-ticks-overlapping/115903 "2024-06-22T00:48:56Z")

</div>

Hi, this is a continuation of a previous question I’ve had on here. At the moment I have some code like this to produce a mollweide projection image of the whole sky: using Healpix using GeoMakie function main() f…

---

## [GLMakie: LScene aspect ratio](https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 1\
**Last updated:** [June 21, 2024, 9:33am UTC](https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911 "2024-06-21T09:33:37Z")

</div>

How can I change the aspect ration of an LScene? Previously, I, following the suggestion from Makie aspect ratio 3D plot, used the scale! function: import GLMakie as mak x = y = range(-10, 10, 101) z = range(-5, 5, 10…

---

## [GLMakie: volume plot for nonuniform grid](https://discourse.julialang.org/t/glmakie-volume-plot-for-nonuniform-grid/115913)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 12:25pm UTC](https://discourse.julialang.org/t/glmakie-volume-plot-for-nonuniform-grid/115913 "2024-06-20T12:25:25Z")

</div>

After the recent Makie update the volume plots show the deprecation warning if you pass arrays as the coordinates for the axes: import GLMakie as mak x = y = range(-10, 10, 101) z = range(-5, 5, 101) F = \[exp(-(xi^2 + …

---

## [\[GLMakie\] Objects are still displayed after \`delete!()\`](https://discourse.julialang.org/t/glmakie-objects-are-still-displayed-after-delete/115793)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 4\
**Last updated:** [June 18, 2024, 9:43am UTC](https://discourse.julialang.org/t/glmakie-objects-are-still-displayed-after-delete/115793 "2024-06-18T09:43:40Z")

</div>

I am currently working on the next release of an interactive 3D display for neutrino events and the main new feature is the ability to interact with the scene from the Julia REPL. Modifying existing objects (colouring an…

---

## [Plotting DifferentialEquations.jl solutions, re-indexing](https://discourse.julialang.org/t/plotting-differentialequations-jl-solutions-re-indexing/108106)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 7\
**Last updated:** [June 14, 2024, 6:51pm UTC](https://discourse.julialang.org/t/plotting-differentialequations-jl-solutions-re-indexing/108106 "2024-06-14T18:51:08Z")

</div>

Hi there, I am solving a system of differential equations using Differential equations.jl, and have the following result: I would like to only plot the solution when it has stabilised (from 5 seconds onwards). I have …

---

## [Errorline like plot for histograms](https://discourse.julialang.org/t/errorline-like-plot-for-histograms/113911)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 2:32pm UTC](https://discourse.julialang.org/t/errorline-like-plot-for-histograms/113911 "2024-06-13T14:32:53Z")

</div>

I would like to create an envelope plot for multiple histogram (input as matrix) something like what is done with errorline in StatsPlots. (I did not find a Makie equivalent of errorline). Basically, what I want would l…

---

## [Linewidth in data space in GLMakie](https://discourse.julialang.org/t/linewidth-in-data-space-in-glmakie/115502)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 7:36am UTC](https://discourse.julialang.org/t/linewidth-in-data-space-in-glmakie/115502 "2024-06-13T07:36:03Z")

</div>

How can I make the linewidth of a lines plot be in data space, so that ot changes when scrolling?

---

## [Forest plot for meta-analisys](https://discourse.julialang.org/t/forest-plot-for-meta-analisys/25985)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 3\
**Last updated:** [June 11, 2024, 7:07pm UTC](https://discourse.julialang.org/t/forest-plot-for-meta-analisys/25985 "2024-06-11T19:07:03Z")

</div>

Hello! How can i make this with Julia? Thx!

---

## [Handling colors in new \`Makie.voxels\` function](https://discourse.julialang.org/t/handling-colors-in-new-makie-voxels-function/115251)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 9\
**Last updated:** [June 11, 2024, 2:04pm UTC](https://discourse.julialang.org/t/handling-colors-in-new-makie-voxels-function/115251 "2024-06-11T14:04:03Z")

</div>

The new voxels function was introduced in Makie v0.21 to plot 3D Cartesian grids more efficiently. However, it assumes Array{\<:Real,3} for the colors. Can it sill be used with general Colors.jl colors? It is easy to conv…

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

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