# Visualization

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

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

**Page:** 26

---

## [Light shading for 'inverted' surface plot in GLMakie](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 8:28am UTC](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064 "2023-12-04T08:28:27Z")

</div>

If I want to plot an ‘inverted’ surface, like the cupcake mold in the top figure below. I set the light directions to be lights = \[ AmbientLight(RGBf(1, 1, 1)), SpotLight(0.4\*RGBf(1, 1, 1), Point3f(10, …

---

## [Notify not working when triggered by a button](https://discourse.julialang.org/t/notify-not-working-when-triggered-by-a-button/107010)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 0\
**Last updated:** [December 1, 2023, 5:55pm UTC](https://discourse.julialang.org/t/notify-not-working-when-triggered-by-a-button/107010 "2023-12-01T17:55:09Z")

</div>

My code for updating a heatmap is not working when triggered by a button. I have tried to boil things down to a minimum working example. The expected behaviour is that at each evaluation of the cost function, one pixel …

---

## [Override or change opacity of a given RGBA color?](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 5:05pm UTC](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880 "2023-12-01T17:05:24Z")

</div>

I’ve seen a construct like (:red, 0.3) to control the color and opacity separately. What I’d like to achieve here is to change the opacity of a given RGBA color. What’s the idiomatic way? At the end of this message, I …

---

## [What is the argument to change the legend title?](https://discourse.julialang.org/t/what-is-the-argument-to-change-the-legend-title/106996)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 2:58pm UTC](https://discourse.julialang.org/t/what-is-the-argument-to-change-the-legend-title/106996 "2023-12-01T14:58:27Z")

</div>

In Makie documentation I have seen this way to put a label of the legend: f\[1, 2\] = Legend(f, ax, “Trig Functions”, framevisible = false) But is there a way to assing a legend title using some kwarg (argument) like a “…

---

## [Position of axis labels and titles with Plots](https://discourse.julialang.org/t/position-of-axis-labels-and-titles-with-plots/99925)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 8:30am UTC](https://discourse.julialang.org/t/position-of-axis-labels-and-titles-with-plots/99925 "2023-12-01T08:30:19Z")

</div>

Dear julia community, I am struggling trying to adjust the position of the x and y labels of my plots. I have a figure made by 4 heatmaps with a nearby colormap: plot\_xlim\_heat = (-3,3) plot\_xlim\_diss = (-5,5) #…

---

## [How can I move an axis in a 3d plot, so that it is shown "outside" of the grid?](https://discourse.julialang.org/t/how-can-i-move-an-axis-in-a-3d-plot-so-that-it-is-shown-outside-of-the-grid/96365)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 9\
**Last updated:** [December 1, 2023, 8:02am UTC](https://discourse.julialang.org/t/how-can-i-move-an-axis-in-a-3d-plot-so-that-it-is-shown-outside-of-the-grid/96365 "2023-12-01T08:02:35Z")

</div>

Hi all, I’m making a plot using Plots.jl with the default GR backend. When I run this code # density\_matrix contains the data I want to plot p = plot(density\_matrix, st = :surface, xlabel="Binary weight", ylab…

---

## [Transitioning 3D surface plot to Makie v0.20](https://discourse.julialang.org/t/transitioning-3d-surface-plot-to-makie-v0-20/106928)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [November 30, 2023, 10:46am UTC](https://discourse.julialang.org/t/transitioning-3d-surface-plot-to-makie-v0-20/106928 "2023-11-30T10:46:56Z")

</div>

I had a figure which consists of multiple 3D surface plots. The script looks something like using CairoMakie; CairoMakie.activate!() update\_theme!(Surface = (diffuse = Vec3f(1,0), specular = Vec3f(0.2), shading = true)…

---

## [Makie: PDF paper size (or MadiaBox)?](https://discourse.julialang.org/t/makie-pdf-paper-size-or-madiabox/106900)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 13\
**Last updated:** [November 30, 2023, 7:11am UTC](https://discourse.julialang.org/t/makie-pdf-paper-size-or-madiabox/106900 "2023-11-30T07:11:40Z")

</div>

How do you specify the paper size of the PDF image? Alternatively, how do you control the physical size of the axes? I must be fundamentally misunderstanding how the sizing of the plot works. In the example at the end…

---

## [Point Occlusion in 3D Scatter Makie](https://discourse.julialang.org/t/point-occlusion-in-3d-scatter-makie/95413)

<div class="topic-metadata">

**Author:** [@Jordan\_Cluts](https://discourse.julialang.org/u/Jordan_Cluts)\
**Replies:** 14\
**Last updated:** [November 28, 2023, 10:53pm UTC](https://discourse.julialang.org/t/point-occlusion-in-3d-scatter-makie/95413 "2023-11-28T22:53:03Z")

</div>

When I create a 3D scatter plot in Makie some of the points that are “closer” to the camera are plotted behind points that are further from the camera. This can make the plots harder to interpret. Is there a setting or t…

---

## [Makie text function no longer working](https://discourse.julialang.org/t/makie-text-function-no-longer-working/106812)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 5:29pm UTC](https://discourse.julialang.org/t/makie-text-function-no-longer-working/106812 "2023-11-27T17:29:26Z")

</div>

The text function from Makie is no longer working in an environment. I have updated GLMakie v0.9.1 and CairoMakie v0.11.1. It does work in my global environment using GLMakie v0.8.6 In the local environment where it do…

---

## [How to update Makie plot upon zooming?](https://discourse.julialang.org/t/how-to-update-makie-plot-upon-zooming/106788)

<div class="topic-metadata">

**Author:** [@Zetison](https://discourse.julialang.org/u/Zetison)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 3:21pm UTC](https://discourse.julialang.org/t/how-to-update-makie-plot-upon-zooming/106788 "2023-11-27T15:21:40Z")

</div>

I’m trying to update the plot with higher resolution when zooming in a Makie plot. But it seems events(ax).scroll is not triggered. Is this a bug? The following MWE illustrates this issue: using GLMakie function updat…

---

## [Makie: plotting text at arbitrary position in \`GridLayout\`?](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 5:54am UTC](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407 "2023-11-23T05:54:57Z")

</div>

I asked how to plot some text at an arbitrary position in a Figure in this thread . The simplest answer was to plot the text using the coordinates of fig.scene. Then, my question here is, does a GridLayout has its own…

---

## [Makie: open-ended contouring levels for contourf?](https://discourse.julialang.org/t/makie-open-ended-contouring-levels-for-contourf/106411)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 3:03am UTC](https://discourse.julialang.org/t/makie-open-ended-contouring-levels-for-contourf/106411 "2023-11-23T03:03:19Z")

</div>

This thread discusses how to limit the contouring values. My question is a followup on that: How to paint all values above and below the limits and coordinate with the colorbar? The first image below is what I need and …

---

## [Plots.jl pythonplot() matplotlib downgrading](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599 "2023-11-22T21:41:36Z")

</div>

When attempting to plot three aligned subplots in Plots.jl’s pythonplot() backend, the following error message is displayed: ERROR: Python: AttributeError: 'GrouperView' object has no attribute 'join' Python stacktrace:…

---

## [Makie: defaulting to minus symbol everywhere?](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 13\
**Last updated:** [November 22, 2023, 3:53pm UTC](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291 "2023-11-22T15:53:13Z")

</div>

I have the feeling that this problem has already been solved, but I haven’t been able to locate the solution. Basically, I want all numeric labels and letterings for negative numbers to use the unicode minus symbol, not…

---

## [GLMakie - Question about extracting 3D data](https://discourse.julialang.org/t/glmakie-question-about-extracting-3d-data/106504)

<div class="topic-metadata">

**Author:** [@sajjad\_khan](https://discourse.julialang.org/u/sajjad_khan)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 11:18am UTC](https://discourse.julialang.org/t/glmakie-question-about-extracting-3d-data/106504 "2023-11-22T11:18:14Z")

</div>

Hello! Need an assistance from GLMakie experts. I have a 3D data as x, y and z coordinates that is render as a 2D image. I want to extract the 3D data by drawing a line profile around and then render that as a color code…

---

## [PlotlyJS: subplots with subplot\_titles + annotations](https://discourse.julialang.org/t/plotlyjs-subplots-with-subplot-titles-annotations/106417)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [November 19, 2023, 9:30pm UTC](https://discourse.julialang.org/t/plotlyjs-subplots-with-subplot-titles-annotations/106417 "2023-11-19T21:30:35Z")

</div>

I need to create a figure with subplots using PlotlyJS. In particular, I need one with annotations and individual titles in the different subplots. I searched the internet and found an excellent example by @empet, which …

---

## [Plots.jl plotly heatmap labels](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 8:58am UTC](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252 "2023-11-17T08:58:23Z")

</div>

I’d like to create a large heatmap using Plots.jl and plotly. which should look like this, where all y axis labels are shown, these align with the tool tip, and if I zoom in I get an increased granularity of the x axis d…

---

## [Histogram counts from Makie](https://discourse.julialang.org/t/histogram-counts-from-makie/106323)

<div class="topic-metadata">

**Author:** [@panbroggi](https://discourse.julialang.org/u/panbroggi)\
**Replies:** 5\
**Last updated:** [November 17, 2023, 8:46am UTC](https://discourse.julialang.org/t/histogram-counts-from-makie/106323 "2023-11-17T08:46:08Z")

</div>

Hi everyone! Do you know how I can recover the bin count from an histogram, e.g. the following? hist(rand(100))

---

## [Makie: row 2 colorbar without affecting row 1](https://discourse.julialang.org/t/makie-row-2-colorbar-without-affecting-row-1/106218)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 2:11pm UTC](https://discourse.julialang.org/t/makie-row-2-colorbar-without-affecting-row-1/106218 "2023-11-15T14:11:13Z")

</div>

I’m plotting two equal-sized graphs on the first row (fig\[1,1\] and fig\[1,2\]) and a single contour plot on the second row (fig\[2,1\]). My question is, how do you plot the colorbar for the contour plot? What is the standar…

---

## [Plots: adding plots to \`twinx()\` axis](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 10:19am UTC](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223 "2023-11-15T10:19:04Z")

</div>

I’m trying to construct a plot using the Plots package with a normal axis and a twinx() axis. Then I want to add plots to both axes, but it doesn’t seem to work: using Plots plot(sin,lc=:red, legend=:left) fg = plot!(tw…

---

## [Unusual behaviour with non-uniform level for a contour plot](https://discourse.julialang.org/t/unusual-behaviour-with-non-uniform-level-for-a-contour-plot/106227)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 5:32pm UTC](https://discourse.julialang.org/t/unusual-behaviour-with-non-uniform-level-for-a-contour-plot/106227 "2023-11-14T17:32:41Z")

</div>

When I pass a non-uniform level to a contour plot, the color bar acts as expected, but the actual contour plot is colored incorrectly. Is there a way around this? As an example, using uniform levels l1: using Plots x …

---

## [Scaling color gradient with custom function](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 9\
**Last updated:** [November 14, 2023, 4:21pm UTC](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200 "2023-11-14T16:21:55Z")

</div>

I have a contourf plot which uses a color gradient but I want the values’ color to have a specific meaning. Specifically, I am using the :jet color gradient and I want any value in \[0,3\] to be blue to green, any value i…

---

## [Deactivating the drag rotation interaction in an LScene](https://discourse.julialang.org/t/deactivating-the-drag-rotation-interaction-in-an-lscene/106174)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 4:04pm UTC](https://discourse.julialang.org/t/deactivating-the-drag-rotation-interaction-in-an-lscene/106174 "2023-11-14T16:04:25Z")

</div>

How can I temporarily deactivate (and later reactivate) the rotation interaction (:dragrotate) for an LScene? The deactivate\_interaction! and activate\_interaction! methods seem only to be defined on Axis and Axis3. Some…

---

## [Theta ticks in polar plots (Plots.jl)?](https://discourse.julialang.org/t/theta-ticks-in-polar-plots-plots-jl/106148)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 2:43pm UTC](https://discourse.julialang.org/t/theta-ticks-in-polar-plots-plots-jl/106148 "2023-11-13T14:43:34Z")

</div>

Hello, I couldn’t find an answer in the documentation so here I am. Do you know if it is possible to modify the angular ticks (with a formatter, or directly specifying myself some values e.g. 30° will be ‘Monday’ or so…

---

## [Plot a circle with a given radius with Plots.jl](https://discourse.julialang.org/t/plot-a-circle-with-a-given-radius-with-plots-jl/23295)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 20\
**Last updated:** [November 13, 2023, 1:13pm UTC](https://discourse.julialang.org/t/plot-a-circle-with-a-given-radius-with-plots-jl/23295 "2023-11-13T13:13:30Z")

</div>

Hi, I can’t figure out how to plot circles with given radii. I would like the radius to be given as floats with plots units (not integers). I try to play with markersize but the display sizes do not correspond to xy u…

---

## [Issue with vlines + logscale in Makie?](https://discourse.julialang.org/t/issue-with-vlines-logscale-in-makie/106129)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 7:47am UTC](https://discourse.julialang.org/t/issue-with-vlines-logscale-in-makie/106129 "2023-11-13T07:47:11Z")

</div>

Hello, I just want to put an xscale in log10, with a vertical line, here a minimal working example. using GLMakie fig = let x = exp10.( range(-8, -2, length=20) ) y = x fig = Figure(fontsize = 25, resoluti…

---

## [Changing axis in polar seasonal plots with Cairomakie](https://discourse.julialang.org/t/changing-axis-in-polar-seasonal-plots-with-cairomakie/106108)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 6\
**Last updated:** [November 12, 2023, 2:01pm UTC](https://discourse.julialang.org/t/changing-axis-in-polar-seasonal-plots-with-cairomakie/106108 "2023-11-12T14:01:43Z")

</div>

I am trying to replicate the seasonal plot with the polar axis from this example, but I couldn’t figure out how to replace the degree axis with months. This is the code: Creating the dataframe link = "https://vincentar…

---

## [Plots.jl white marker with coloured stroke](https://discourse.julialang.org/t/plots-jl-white-marker-with-coloured-stroke/104888)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 5\
**Last updated:** [November 11, 2023, 3:49pm UTC](https://discourse.julialang.org/t/plots-jl-white-marker-with-coloured-stroke/104888 "2023-11-11T15:49:11Z")

</div>

Using the GR backend, I would like to have scatter plots where the inside of the markers are white whilst the edge/stroke is the color of the current palette. The problem is that setting markercolor=:white will also mak…

---

## [How do I flip the r-axis in polar plot?](https://discourse.julialang.org/t/how-do-i-flip-the-r-axis-in-polar-plot/106022)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 2\
**Last updated:** [November 10, 2023, 11:44pm UTC](https://discourse.julialang.org/t/how-do-i-flip-the-r-axis-in-polar-plot/106022 "2023-11-10T23:44:10Z")

</div>

I want to plot satellite track over a ground station, like how Gpredict and other ground station tool does it: In that polar plot, for the r-axis, 90 degrees is at the center and 0 degrees is at the edge. In Julia it…

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

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