# Visualization

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

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

**Page:** 62

---

## [Graph Insets with Makie](https://discourse.julialang.org/t/graph-insets-with-makie/66855)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 6\
**Last updated:** [August 25, 2021, 3:47pm UTC](https://discourse.julialang.org/t/graph-insets-with-makie/66855 "2021-08-25T15:47:56Z")

</div>

I’m attempting to inset a colorbar into the lower left corner of this graph using the example I found at the link below. https://lazarusa.github.io/BeautifulMakie/ScattersLines/LineWithInset/ f1 = Figure(resolution …

---

## [How to annotate with arrows in Julia Plots?](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:39pm UTC](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931 "2021-08-24T19:39:55Z")

</div>

Is there a way to achieve annotations similar to matplotlib without switching the backends for Plots? I am especially looking for a way to annotate with arrows. The current method as seen in docs seems to support only te…

---

## [Makie Ticks - hide tick but keep label](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 1:59pm UTC](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875 "2021-08-24T13:59:06Z")

</div>

Is there anyway to hide the small tick mark but keep the tick label - I’m having a terrible time navigating the current documentation. Love Makie so far - just can’t find things in the documentation. I have this: An…

---

## [Xticklabelalign AoG](https://discourse.julialang.org/t/xticklabelalign-aog/66890)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 9:01am UTC](https://discourse.julialang.org/t/xticklabelalign-aog/66890 "2021-08-24T09:01:04Z")

</div>

How can I get the ticks to be horizontally centered on each of the bars? spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(xticklabelalign=(:center, :top),),)

---

## [Dash/Makie web page mouse drawing](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:15am UTC](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591 "2021-08-24T07:15:44Z")

</div>

I need to do some manual line drawings with the mouse on a web page and then process those curves in backend. Does Dash or Makie have such capability?(mouse drawing + ability to be proceased and served)

---

## [AoG yaxislabel](https://discourse.julialang.org/t/aog-yaxislabel/66891)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 5:12am UTC](https://discourse.julialang.org/t/aog-yaxislabel/66891 "2021-08-24T05:12:30Z")

</div>

How can I specify the y axis label using makie spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(yaxislabel="values",),)

---

## [Could MathTeXEngine hook up into LaTeX?](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 10\
**Last updated:** [August 23, 2021, 3:15pm UTC](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742 "2021-08-23T15:15:31Z")

</div>

This topic might be quite irritating, so sorry for that in advance. Currently, Makie.jl uses MathTeXEngine.jl to process LaTeX. I have looked at MathTeXEngine.jl, and what I understood is that it returns information abo…

---

## [Makie Direction of Heatmap](https://discourse.julialang.org/t/makie-direction-of-heatmap/66811)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 2\
**Last updated:** [August 22, 2021, 9:31pm UTC](https://discourse.julialang.org/t/makie-direction-of-heatmap/66811 "2021-08-22T21:31:46Z")

</div>

I’m trying to create a 3 part heat map using this code P₁ = transpose(dfm\[1:21,88:108\]) # Matrix{Float64} seq₁ = reverse(transpose(singlemutfitness\[1:21\])) # Vector{Float64} seq₂ = reverse(transpose(singlemutfitness\[88:…

---

## [LaTeX not working in Makie](https://discourse.julialang.org/t/latex-not-working-in-makie/66687)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 7\
**Last updated:** [August 21, 2021, 5:04pm UTC](https://discourse.julialang.org/t/latex-not-working-in-makie/66687 "2021-08-21T17:04:43Z")

</div>

I am trying to figure out how to use Makie. As a simple test, I decided to run the following code snippet: using CairoMakie, LaTeXStrings xs = 0.0:0.01:2.0 lines(xs, sin.(π.\*xs), axis=(title=L"\\sin{x}",)) However, I …

---

## [Changing the smoothness of density function](https://discourse.julialang.org/t/changing-the-smoothness-of-density-function/66611)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 28\
**Last updated:** [August 21, 2021, 11:24am UTC](https://discourse.julialang.org/t/changing-the-smoothness-of-density-function/66611 "2021-08-21T11:24:32Z")

</div>

Hi, I wish to plot a density function (to compare to another density function I have plotted). Unfortunatley, all values are integers, typically between 0 and 5. This gives a very jagged, and ugly looking plot. Is there…

---

## [Makie: mismatch between LaTeX and non-LaTeX font sizes](https://discourse.julialang.org/t/makie-mismatch-between-latex-and-non-latex-font-sizes/66734)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 11\
**Last updated:** [August 20, 2021, 7:34pm UTC](https://discourse.julialang.org/t/makie-mismatch-between-latex-and-non-latex-font-sizes/66734 "2021-08-20T19:34:03Z")

</div>

I have created the following example with CairoMakie.jl: using CairoMakie, LaTeXStrings xs = 0.0:0.01:2.0 lines(xs, sin.(π.\*xs), axis=(title=L"\\sin{x}",)) According to the documentation, the font sizes for title an…

---

## [Makie stacked bar chart legends & labels inside axis](https://discourse.julialang.org/t/makie-stacked-bar-chart-legends-labels-inside-axis/66706)

<div class="topic-metadata">

**Author:** [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 6:58pm UTC](https://discourse.julialang.org/t/makie-stacked-bar-chart-legends-labels-inside-axis/66706 "2021-08-20T18:58:44Z")

</div>

How to place legend for stacked bar chart inside an axis. This can save lot of space on plots. How to place labels when drawing stacked bar chart Sample code can be found in makie examples here using CairoMakie tbl =…

---

## [Makie plot not updating on key press](https://discourse.julialang.org/t/makie-plot-not-updating-on-key-press/66697)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 2\
**Last updated:** [August 20, 2021, 6:46pm UTC](https://discourse.julialang.org/t/makie-plot-not-updating-on-key-press/66697 "2021-08-20T18:46:49Z")

</div>

I am trying to make a simple plot updating on a keypress. I get the “step” to update when I press the keys, but the plot stays the same. I can’t seem to find any examples of such a case. It is probably something simple…

---

## [Makie: figure resolution in inches](https://discourse.julialang.org/t/makie-figure-resolution-in-inches/66716)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [August 20, 2021, 3:07pm UTC](https://discourse.julialang.org/t/makie-figure-resolution-in-inches/66716 "2021-08-20T15:07:05Z")

</div>

How do I create a figure whose size is given in inches instead of pixels? fig = Figure(res = ?) I’ve searched the Makie.jl docs but I really didn’t find out how. Search keywords resolution and inches did not yield usef…

---

## [No docs for figure attributes in Makie](https://discourse.julialang.org/t/no-docs-for-figure-attributes-in-makie/66683)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 12\
**Last updated:** [August 20, 2021, 12:12pm UTC](https://discourse.julialang.org/t/no-docs-for-figure-attributes-in-makie/66683 "2021-08-20T12:12:16Z")

</div>

Hi, guys. I have decided to give Makie.jl a try and prepare the plots for my paper in it. Unfortunately, I got stuck at the very beginning. Skimming over docs, I noticed that there is no list of the figure attributes …

---

## [How to annotate a groupedbar-plot?](https://discourse.julialang.org/t/how-to-annotate-a-groupedbar-plot/46938)

<div class="topic-metadata">

**Author:** [@Parazetamol](https://discourse.julialang.org/u/Parazetamol)\
**Replies:** 4\
**Last updated:** [August 20, 2021, 6:21am UTC](https://discourse.julialang.org/t/how-to-annotate-a-groupedbar-plot/46938 "2021-08-20T06:21:13Z")

</div>

Hi there, I desperately try to label the individual bars of a groupedbar plot, as in https://matplotlib.org/examples/api/barchart\_demo.html I took some code from a former post https://discourse.julialang.org/t/plots-ba…

---

## [How to run a Julia page example using GLMakie?](https://discourse.julialang.org/t/how-to-run-a-julia-page-example-using-glmakie/66602)

<div class="topic-metadata">

**Author:** [@JoaoFlauzino](https://discourse.julialang.org/u/JoaoFlauzino)\
**Replies:** 10\
**Last updated:** [August 18, 2021, 4:26pm UTC](https://discourse.julialang.org/t/how-to-run-a-julia-page-example-using-glmakie/66602 "2021-08-18T16:26:57Z")

</div>

I just can’t run the example available here https://juliadynamics.github.io/InteractiveDynamics.jl/dev/cobweb/ I copied and pasted this code and when I run it doesn’t work. I’ve already tried \]build GLMakie . using In…

---

## [GLMakie: masking values when plotting images](https://discourse.julialang.org/t/glmakie-masking-values-when-plotting-images/66508)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:06pm UTC](https://discourse.julialang.org/t/glmakie-masking-values-when-plotting-images/66508 "2021-08-18T15:06:55Z")

</div>

I’m using GLMakie to display 2 images. GLMakie.image(GLMakie.rotr90(image\_data)) GLMakie.image!(GLMakie.rotr90(some\_extra\_data), colormap=(“viridis”, 0.5)) The second image have a transparency of 0.5. See here: GLMaki…

---

## [Pixel buffer objects](https://discourse.julialang.org/t/pixel-buffer-objects/66557)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 3:33pm UTC](https://discourse.julialang.org/t/pixel-buffer-objects/66557 "2021-08-17T15:33:31Z")

</div>

Hello I am trying to implement OpenGl pixel buffer object, becouse fast upload of data to texture is critical for my use case. My code that tries to implement it (using ModernGl.jl) juliaDataType= UInt8 toSend = ones…

---

## [GLMakie: how to plot two images with transparency?](https://discourse.julialang.org/t/glmakie-how-to-plot-two-images-with-transparency/66492)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 3\
**Last updated:** [August 16, 2021, 8:47pm UTC](https://discourse.julialang.org/t/glmakie-how-to-plot-two-images-with-transparency/66492 "2021-08-16T20:47:15Z")

</div>

I’m using GLMakie to display 2 images. GLMakie.image(GLMakie.rotr90(image\_data)) GLMakie.image!(GLMakie.rotr90(some\_extra\_data), colormap=“viridis”) This code will display “some\_extra\_data” and the “image\_data” is no …

---

## [Editing titles after creating a Makie plot](https://discourse.julialang.org/t/editing-titles-after-creating-a-makie-plot/66352)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 6\
**Last updated:** [August 14, 2021, 12:05am UTC](https://discourse.julialang.org/t/editing-titles-after-creating-a-makie-plot/66352 "2021-08-14T00:05:48Z")

</div>

I’m customizing Makie.plot to edit axis properties due to Accessing axis in Makie plot recipes. My function looks something like this: function foo(fig = Makie.Figure()) axes = \[Makie.Axis(fig\[i,j\]) for j in 1:3, i in…

---

## [Plot using for loop](https://discourse.julialang.org/t/plot-using-for-loop/66167)

<div class="topic-metadata">

**Author:** [@Phonindra](https://discourse.julialang.org/u/Phonindra)\
**Replies:** 10\
**Last updated:** [August 12, 2021, 4:22pm UTC](https://discourse.julialang.org/t/plot-using-for-loop/66167 "2021-08-12T16:22:11Z")

</div>

I have ode like this Now if I need the result for a series of different values of the parameter “p”, I was trying to use for loop to do that, here is the code Which shows the following error! Please help me t…

---

## [Dash.jl slider doesn't display labels](https://discourse.julialang.org/t/dash-jl-slider-doesnt-display-labels/66253)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [August 12, 2021, 11:16am UTC](https://discourse.julialang.org/t/dash-jl-slider-doesnt-display-labels/66253 "2021-08-12T11:16:24Z")

</div>

I was messing around with dcc\_slider and observed that labels are missing if the marks argument is constructed using an array of Floats, with zero as decimal (ex: 0.0:10.0). The labels are displayed fine if I use either …

---

## [How to do multiple cameras in subplots with plot3d()](https://discourse.julialang.org/t/how-to-do-multiple-cameras-in-subplots-with-plot3d/65940)

<div class="topic-metadata">

**Author:** [@DoctorDalek1963](https://discourse.julialang.org/u/DoctorDalek1963)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 4:16pm UTC](https://discourse.julialang.org/t/how-to-do-multiple-cameras-in-subplots-with-plot3d/65940 "2021-08-06T16:16:51Z")

</div>

I’m using the Plots library to visualise some randomly generated gravitational motion in a gif. I generate a Vector{Vector{Vector{Float64}}}, which can be thought of as a list of frames, where each frame has a list of bo…

---

## [Gnuplot.jl: Datetime in xtics](https://discourse.julialang.org/t/gnuplot-jl-datetime-in-xtics/65281)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 2:35pm UTC](https://discourse.julialang.org/t/gnuplot-jl-datetime-in-xtics/65281 "2021-08-05T14:35:57Z")

</div>

Hello everyone, I have timeseries and i want to have on xtics Datetime format. my data is called array: 1980 1 111.439 1980-01-01 1 …

---

## [Function that converts rgb color to CAM02-UCS coordinates](https://discourse.julialang.org/t/function-that-converts-rgb-color-to-cam02-ucs-coordinates/65822)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 5:47pm UTC](https://discourse.julialang.org/t/function-that-converts-rgb-color-to-cam02-ucs-coordinates/65822 "2021-08-04T17:47:03Z")

</div>

The state of the art perceptual uniform colormaps (matplotlib viridis, plasma, magma, inferno, cividis), all sequential cmocean and cmasher colormaps, and a few seaborn ones have linear lightness in the color appearance…

---

## [Loss of precision when plotting large floats in Makie](https://discourse.julialang.org/t/loss-of-precision-when-plotting-large-floats-in-makie/65802)

<div class="topic-metadata">

**Author:** [@MaltheSR](https://discourse.julialang.org/u/MaltheSR)\
**Replies:** 3\
**Last updated:** [August 4, 2021, 3:05pm UTC](https://discourse.julialang.org/t/loss-of-precision-when-plotting-large-floats-in-makie/65802 "2021-08-04T15:05:53Z")

</div>

I’m new to Julia and have been toying around with Makie to move some of my plotting from R/ggplot to Julia/Makie, which has been a pleasure so far. However, I’ve been having an issue which I believe to be illustrated by …

---

## [How to show CuArray without copying from GPU to CPU?](https://discourse.julialang.org/t/how-to-show-cuarray-without-copying-from-gpu-to-cpu/65798)

<div class="topic-metadata">

**Author:** [@wulalagiao](https://discourse.julialang.org/u/wulalagiao)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 9:36am UTC](https://discourse.julialang.org/t/how-to-show-cuarray-without-copying-from-gpu-to-cpu/65798 "2021-08-04T09:36:57Z")

</div>

I wanna display a CuArray(actually an image) to see how it changes during the computation, and I cannot figure out a method to do it.

---

## [Choosing a Plotting Base to Build a Statistical Plotting Package](https://discourse.julialang.org/t/choosing-a-plotting-base-to-build-a-statistical-plotting-package/62240)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 19\
**Last updated:** [August 4, 2021, 12:39am UTC](https://discourse.julialang.org/t/choosing-a-plotting-base-to-build-a-statistical-plotting-package/62240 "2021-08-04T00:39:08Z")

</div>

If I wanted to build a package that adds more kinds of statistical plots to Julia, what would be the best plotting package to build it on top of? (e.g. Plots.jl, Makie, Gadfly, VegaLite) What advantages/disadvantages do …

---

## [Change Gtk Button color](https://discourse.julialang.org/t/change-gtk-button-color/62433)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [August 1, 2021, 8:17pm UTC](https://discourse.julialang.org/t/change-gtk-button-color/62433 "2021-08-01T20:17:45Z")

</div>

Hi all, I would like to change the color of a button in Gtk based on an event and change the color or darken the button when it is selected. Right now I am stuck simply trying to change the color. My approach is based …

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

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