# Visualization

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

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

**Page:** 55

---

## [How to use Log10 axis scale for Makie heatmaps](https://discourse.julialang.org/t/how-to-use-log10-axis-scale-for-makie-heatmaps/75722)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 3:07pm UTC](https://discourse.julialang.org/t/how-to-use-log10-axis-scale-for-makie-heatmaps/75722 "2022-02-03T15:07:52Z")

</div>

Hello, I cannot figure out how to properly set a log10 axis scale for heatmaps. I get an error of invalid x-limits even if I set positive axis limits. I know log10 is not defined for negative values (when I dont want a …

---

## [How to draw a textbox around a text in Makie.jl?](https://discourse.julialang.org/t/how-to-draw-a-textbox-around-a-text-in-makie-jl/75672)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 1\
**Last updated:** [February 2, 2022, 11:57pm UTC](https://discourse.julialang.org/t/how-to-draw-a-textbox-around-a-text-in-makie-jl/75672 "2022-02-02T23:57:01Z")

</div>

In Makie.jl, how can I draw a box around a text? More specifically, I’d like to draw the bounding box of a given text that I’ve plotted using the text! function. In fact, it is even better if I could use the existing Te…

---

## [Subplot enumeration for papers with Makie.jl](https://discourse.julialang.org/t/subplot-enumeration-for-papers-with-makie-jl/61685)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [February 2, 2022, 5:20pm UTC](https://discourse.julialang.org/t/subplot-enumeration-for-papers-with-makie-jl/61685 "2022-02-02T17:20:02Z")

</div>

Hi there, I have a figure like this: made with PyPlot. The contents of the figure do not matter, only the letters that are in the upper right corner of each axis. Such “enumeration” is critical for publication qualit…

---

## [Collect trace indices meeting condition](https://discourse.julialang.org/t/collect-trace-indices-meeting-condition/75531)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 2\
**Last updated:** [February 2, 2022, 4:42am UTC](https://discourse.julialang.org/t/collect-trace-indices-meeting-condition/75531 "2022-02-02T04:42:06Z")

</div>

Continuing the discussion from Change each trace meeting condition in PlotyJS plot: Now I understand that the second argument in restyle! can’t just be a single index, but also a vector of indices. So my question this t…

---

## [Plot does not update with a string vector as an observable in Makie](https://discourse.julialang.org/t/plot-does-not-update-with-a-string-vector-as-an-observable-in-makie/75503)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 12:57pm UTC](https://discourse.julialang.org/t/plot-does-not-update-with-a-string-vector-as-an-observable-in-makie/75503 "2022-01-31T12:57:27Z")

</div>

Hello, I tried to use a vector of strings as an Observable and the text! command to interactively update a plot in Makie. Here is an example: using GLMakie string\_vec = Observable(\["a", "b"\]) string\_test = Observable(…

---

## [Why does \`relayout!(p, template=...)\` get overwritten by next \`relayout!\`?](https://discourse.julialang.org/t/why-does-relayout-p-template-get-overwritten-by-next-relayout/75536)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 8:30pm UTC](https://discourse.julialang.org/t/why-does-relayout-p-template-get-overwritten-by-next-relayout/75536 "2022-01-31T20:30:18Z")

</div>

For the code p = make\_subplots( rows=2, cols=1, shared\_xaxes=true, ) add\_trace!(p, scatter(y=1:2), row=1, col=1) add\_trace!(p, scatter(y=1:2), row=2, col=1) relayout!( p, template="plotly\_white", )…

---

## [Change each trace meeting condition in PlotyJS plot](https://discourse.julialang.org/t/change-each-trace-meeting-condition-in-plotyjs-plot/75474)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 7:05pm UTC](https://discourse.julialang.org/t/change-each-trace-meeting-condition-in-plotyjs-plot/75474 "2022-01-31T19:05:21Z")

</div>

The title states it all. Here an example with the Julia code without the requested part. using DataFrames using PlotlyJS df = DataFrame( x = 1:5, a = rand(5), b\_calc = rand(5), c = rand(5), d\_calc =…

---

## [GLMakie.jl - Font/graphics displaying incorrectly on M1 (ubuntu parallels) in GL window](https://discourse.julialang.org/t/glmakie-jl-font-graphics-displaying-incorrectly-on-m1-ubuntu-parallels-in-gl-window/75481)

<div class="topic-metadata">

**Author:** [@kathesch](https://discourse.julialang.org/u/kathesch)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 5:55am UTC](https://discourse.julialang.org/t/glmakie-jl-font-graphics-displaying-incorrectly-on-m1-ubuntu-parallels-in-gl-window/75481 "2022-01-31T05:55:16Z")

</div>

Hi all, I was curious if anyone has had this graphical issue before or perhaps has any other insight as to what could be wrong. The GL window should be displaying crisper fonts/lines. It displays correctly in CairoMakie…

---

## [Color the lines in a contour plot of \`z\` by the values a different matrix \`w\`](https://discourse.julialang.org/t/color-the-lines-in-a-contour-plot-of-z-by-the-values-a-different-matrix-w/51233)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 1\
**Last updated:** [January 30, 2022, 11:43am UTC](https://discourse.julialang.org/t/color-the-lines-in-a-contour-plot-of-z-by-the-values-a-different-matrix-w/51233 "2022-01-30T11:43:51Z")

</div>

Let’s say I have the following MWE using Plots x = y = range(0, stop=π, length=100) z = cos.(x) .+ sin.(y') w = cos.(x).^2 .- sin.(y').^2 contour(x,y,z, levels=1) I would like the lines from the contour plot of z to…

---

## [Overlaying contour plots - colours](https://discourse.julialang.org/t/overlaying-contour-plots-colours/37795)

<div class="topic-metadata">

**Author:** [@chriswaudby](https://discourse.julialang.org/u/chriswaudby)\
**Replies:** 3\
**Last updated:** [January 30, 2022, 12:53am UTC](https://discourse.julialang.org/t/overlaying-contour-plots-colours/37795 "2022-01-30T00:53:50Z")

</div>

I’m working with spectroscopic data where data are visualised as 2D contour plots (just lines, not filled), and it is extremely common to overlay multiple datasets using different colours (e.g. search ‘2D NMR titration’ …

---

## [GRUtils: error bars always behind fill in bar plot](https://discourse.julialang.org/t/grutils-error-bars-always-behind-fill-in-bar-plot/75388)

<div class="topic-metadata">

**Author:** [@mkschleg](https://discourse.julialang.org/u/mkschleg)\
**Replies:** 2\
**Last updated:** [January 29, 2022, 12:48am UTC](https://discourse.julialang.org/t/grutils-error-bars-always-behind-fill-in-bar-plot/75388 "2022-01-29T00:48:51Z")

</div>

I’m trying to combine the errorbar and barplot plots using hold. No matter what order I do this in the error bars always appear under the bar plot fill. Is there any fix for this? MWE: using GRUtils let y = rand(10) …

---

## [Makie - SVG saved with CairoMakie not editable (looks like raster)](https://discourse.julialang.org/t/makie-svg-saved-with-cairomakie-not-editable-looks-like-raster/75335)

<div class="topic-metadata">

**Author:** [@VMHidalgo](https://discourse.julialang.org/u/VMHidalgo)\
**Replies:** 13\
**Last updated:** [January 28, 2022, 9:59pm UTC](https://discourse.julialang.org/t/makie-svg-saved-with-cairomakie-not-editable-looks-like-raster/75335 "2022-01-28T21:59:10Z")

</div>

Hi guys, I am using CairoMakie on Ubuntu and saving plots as SVG. When I open the SVG file with Inkscape to edit it, the file cannot be edited. It looks like a raster image. What is happening? At first glance, this ma…

---

## [Which Graphing tool allows to create interactable Graphs](https://discourse.julialang.org/t/which-graphing-tool-allows-to-create-interactable-graphs/75389)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 0\
**Last updated:** [January 28, 2022, 8:32pm UTC](https://discourse.julialang.org/t/which-graphing-tool-allows-to-create-interactable-graphs/75389 "2022-01-28T20:32:37Z")

</div>

I’m trying to create a game, in which you have to draw vertices and edges, with length. Then you have to be able to move on those edges from one node to another. Is there a package in Julia that would allow that? If not…

---

## [GLMakie heatmap vs. heatmap!](https://discourse.julialang.org/t/glmakie-heatmap-vs-heatmap/75378)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 1\
**Last updated:** [January 28, 2022, 4:50pm UTC](https://discourse.julialang.org/t/glmakie-heatmap-vs-heatmap/75378 "2022-01-28T16:50:25Z")

</div>

In GLMakie I need a layout with several heatmaps. If I use heatmap works as expected (2D plot), however using heatmap! produces a 3D plot of the heatmap. Here is reproducer with a single heatmap. using GLMakie data = \[ …

---

## [How to plot curve over surface with Plots.jl?](https://discourse.julialang.org/t/how-to-plot-curve-over-surface-with-plots-jl/72498)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 5\
**Last updated:** [January 27, 2022, 3:54am UTC](https://discourse.julialang.org/t/how-to-plot-curve-over-surface-with-plots-jl/72498 "2022-01-27T03:54:02Z")

</div>

I have written some code to generate a gif for the double pendulum problem: # In another code not shown here, I've: # - computed solution of double pendulum problem # - extracted independent variables θ₁, θ₂ from soluti…

---

## [\[Gtk.jl\] Stuck with GtkTreeView generated with Glade](https://discourse.julialang.org/t/gtk-jl-stuck-with-gtktreeview-generated-with-glade/56328)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 4:23pm UTC](https://discourse.julialang.org/t/gtk-jl-stuck-with-gtktreeview-generated-with-glade/56328 "2022-01-26T16:23:37Z")

</div>

Hi there, I have started a Gtk.jl project with a base layout generated by Glade. I struggle with assigning a GtkTreeModel to a Glade generated GtkTreeView Even though I could generate the TreeView manually, I feel I a…

---

## [How to pass colors from xcolor in pgfplotsx?](https://discourse.julialang.org/t/how-to-pass-colors-from-xcolor-in-pgfplotsx/75190)

<div class="topic-metadata">

**Author:** [@ccmejia](https://discourse.julialang.org/u/ccmejia)\
**Replies:** 1\
**Last updated:** [January 25, 2022, 9:42pm UTC](https://discourse.julialang.org/t/how-to-pass-colors-from-xcolor-in-pgfplotsx/75190 "2022-01-25T21:42:07Z")

</div>

Hi there, I am trying to pass color name from xcolor latex package, for example the “NavyBlue” color. However, it seems that “NavyBlue” or any other “special” color is not recognized: Package xcolor Error: Undefined col…

---

## [Makie.jl - How can I have a label on top of an image plot?](https://discourse.julialang.org/t/makie-jl-how-can-i-have-a-label-on-top-of-an-image-plot/74536)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 4:39pm UTC](https://discourse.julialang.org/t/makie-jl-how-can-i-have-a-label-on-top-of-an-image-plot/74536 "2022-01-25T16:39:28Z")

</div>

Hi, I am trying to label some plots containing images, but somehow I fail to have a label on top of an image. Here is a minimal working example : using GLMakie, FileIO img = load(assetpath("cow.png")) f = Figure() imag…

---

## [Makie (and Julia) do not automatically typecast obvious numerical representations](https://discourse.julialang.org/t/makie-and-julia-do-not-automatically-typecast-obvious-numerical-representations/75148)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 6\
**Last updated:** [January 25, 2022, 11:46am UTC](https://discourse.julialang.org/t/makie-and-julia-do-not-automatically-typecast-obvious-numerical-representations/75148 "2022-01-25T11:46:16Z")

</div>

I have experienced that Julia is not very generous with automatic typecasting (or type conversion). e.g. f(x::Int) = x f(1.0) ERROR: MethodError: no method matching f(::Float64) Closest candidates are: f(::Int64) at …

---

## [PGFPlotsX a matrix of RGB](https://discourse.julialang.org/t/pgfplotsx-a-matrix-of-rgb/24709)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 9\
**Last updated:** [June 7, 2019, 11:58am UTC](https://discourse.julialang.org/t/pgfplotsx-a-matrix-of-rgb/24709 "2019-06-07T11:58:44Z")

</div>

I have an image – a matrix of RGBs. The number of pixels is relatively small (e.g. 20×20), so I want to plot it as an array of colored squares. This way the dimensions of the resulting figure won’t be dictated by the low…

---

## [Access cursor position in ImageView.jl](https://discourse.julialang.org/t/access-cursor-position-in-imageview-jl/75032)

<div class="topic-metadata">

**Author:** [@PeteS](https://discourse.julialang.org/u/PeteS)\
**Replies:** 0\
**Last updated:** [January 22, 2022, 1:48pm UTC](https://discourse.julialang.org/t/access-cursor-position-in-imageview-jl/75032 "2022-01-22T13:48:53Z")

</div>

Is it possible to access (and override) the cursor event in ImageView? I’m displaying an indexed image of a microstructure, and at any given (x, y) position I would like to display my data rather than the pixel colour.

---

## [How to reset slider value](https://discourse.julialang.org/t/how-to-reset-slider-value/75016)

<div class="topic-metadata">

**Author:** [@das](https://discourse.julialang.org/u/das)\
**Replies:** 0\
**Last updated:** [January 21, 2022, 11:38pm UTC](https://discourse.julialang.org/t/how-to-reset-slider-value/75016 "2022-01-21T23:38:34Z")

</div>

Hi everyone, I need to set, read, and reset the value of a slider (using Gtk.jl). To set the value I use: notesSlider = slider(1:200, value = 1) To read the value I use: v = value(signal(notesSlider) but I’ve had not…

---

## [Get Axis from Scene](https://discourse.julialang.org/t/get-axis-from-scene/74935)

<div class="topic-metadata">

**Author:** [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 12:45pm UTC](https://discourse.julialang.org/t/get-axis-from-scene/74935 "2022-01-21T12:45:51Z")

</div>

If I have a reference to a scene, how can I get a reference to its corresponding axis? Take the following case: fig = Figure() ax = Axis(fig\[1,1\]) s = ax.scene Now if I only have s , how can I get ax? Intuitively I’v…

---

## [Makie - Uneven dash distribution](https://discourse.julialang.org/t/makie-uneven-dash-distribution/70100)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 5\
**Last updated:** [January 21, 2022, 9:05am UTC](https://discourse.julialang.org/t/makie-uneven-dash-distribution/70100 "2022-01-21T09:05:55Z")

</div>

Hello! I was experimenting with different linewidths for my paper and this happened when the :dash or the :dot linestyles were selected with a high linewidth: Is it a bug? Can it be fixed? Thanks!

---

## [Dash JSON3 error](https://discourse.julialang.org/t/dash-json3-error/74829)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 0\
**Last updated:** [January 18, 2022, 8:29pm UTC](https://discourse.julialang.org/t/dash-json3-error/74829 "2022-01-18T20:29:48Z")

</div>

I recently updated to Julia 1.7.1 and along with it some packages. My previously working Dash app now crashes with the following error when I want to plot something: ┌ Error: error handling request │ exception = │ …

---

## [How to animate a plot with subplots](https://discourse.julialang.org/t/how-to-animate-a-plot-with-subplots/74831)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 9:27pm UTC](https://discourse.julialang.org/t/how-to-animate-a-plot-with-subplots/74831 "2022-01-18T21:27:44Z")

</div>

I’d like to make an animation of a figure with two subplots. using Plots x\_data = range(0.0,stop=2π, length=1000) y\_data = sin.(x\_data) .+ 0.1.\*randn(1000,100) @gif for i ∈ 1:100 fig = plot(layout = grid(2,1), leg…

---

## [Combine Makie with GMT.jl](https://discourse.julialang.org/t/combine-makie-with-gmt-jl/74347)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 9\
**Last updated:** [January 18, 2022, 6:45pm UTC](https://discourse.julialang.org/t/combine-makie-with-gmt-jl/74347 "2022-01-18T18:45:22Z")

</div>

Short story: I want to plot graphs on top of a map. Can I use GMT.jl to draw the region of interest and plot over it using GraphMakie.jl ? Long story: GraphMakie.jl Let’s say I want to plot the Abilene network. I ha…

---

## [Plots: string interpolation in labels?](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [January 18, 2022, 3:22pm UTC](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799 "2022-01-18T15:22:35Z")

</div>

I’m solving a differential equation several times where I vary a parameter, say Kp = linspace(1,5,5). The result is a vector of vectors (time series), say vec is a vector (1D array) of vectors (time series). I then want…

---

## [Plots color based on discrete value](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 10:40am UTC](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472 "2022-01-18T10:40:38Z")

</div>

data = DataFrame(x=1:5,y=1:5,color=\["a","a","b","a","c"\]) using StatsPlots @df data scatter(:x,:y) How can add color to the plot using the discrete value of column :color automatically? In ggplot I can do something lik…

---

## [Plotting from within a loop using GR?](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435)

<div class="topic-metadata">

**Author:** [@zorp](https://discourse.julialang.org/u/zorp)\
**Replies:** 8\
**Last updated:** [January 17, 2022, 8:23pm UTC](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435 "2022-01-17T20:23:25Z")

</div>

The following doesn’t produce any output using Juno and v0.6 of Julia: histogram(randn(10)) for i = 1:10 histogram!(randn(10)) end why is that?

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

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