# Visualization

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

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

**Page:** 60

---

## [Plots -- transparency of surface?](https://discourse.julialang.org/t/plots-transparency-of-surface/24524)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [September 29, 2021, 11:47am UTC](https://discourse.julialang.org/t/plots-transparency-of-surface/24524 "2021-09-29T11:47:15Z")

</div>

Can I control the transparency/alpha value of the surface in surface plots? I would like to superimpose the solution of an ode on a surface… fillalpha=0.2 doesn’t have an effect. Another way to do it? (e.g. using wirefra…

---

## [Display (a different) value under scatter point](https://discourse.julialang.org/t/display-a-different-value-under-scatter-point/10821)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 12\
**Last updated:** [September 29, 2021, 7:54am UTC](https://discourse.julialang.org/t/display-a-different-value-under-scatter-point/10821 "2021-09-29T07:54:43Z")

</div>

Plotlyjs is giving me a plot that doesn’t seem to be finding the closest scatter point to my cursor (indicated by black arrow): using Plots plotlyjs() scatter(x1, x2) My question is: How can I display the name…

---

## [How to align x axis in GR](https://discourse.julialang.org/t/how-to-align-x-axis-in-gr/68626)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [September 25, 2021, 6:11pm UTC](https://discourse.julialang.org/t/how-to-align-x-axis-in-gr/68626 "2021-09-25T18:11:55Z")

</div>

How to align the axis? p1 = Plots.plot(rand(10), label="A very loooooooooooooooong label") p2 = Plots.plot(rand(10), label="A short label") Plots.plot(p1, p2, layout=(2,1), legend=:outerright)

---

## [Subplot saving error related to latex](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700)

<div class="topic-metadata">

**Author:** [@ValeVolc](https://discourse.julialang.org/u/ValeVolc)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 2:34pm UTC](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700 "2021-09-24T14:34:22Z")

</div>

Hi everyone! I’m dealing with a saving subplots issue. I created a subplots graph in a double for loop using Plots and LaTeXStrings, the graph is displayed correctly, I can save the graph with savefig, but it loses the…

---

## [CairoMakie, LoadError: InexactError: Int64(2.5)](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662)

<div class="topic-metadata">

**Author:** [@Nextle](https://discourse.julialang.org/u/Nextle)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 6:28am UTC](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662 "2021-09-24T06:28:46Z")

</div>

Hello, I have a question about this error. I am doing an exercise to graph the supply-demand function using CairoMakie. I had no problems to place the scene and the layout but to graph the first curve I get this error me…

---

## [Julia version of cv.getPerspectiveTransform?](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 11\
**Last updated:** [September 23, 2021, 4:34pm UTC](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553 "2021-09-23T16:34:40Z")

</div>

I want to create and use a projective transform matrix between four points in one coordinate system to four points in another coordinate system. Is there a way to do this in Julia? In OpenCV I can call cv.getPerspectiveT…

---

## [LaTeX with Makie(Layout)](https://discourse.julialang.org/t/latex-with-makie-layout/56454)

<div class="topic-metadata">

**Author:** [@darsnack](https://discourse.julialang.org/u/darsnack)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 10:51am UTC](https://discourse.julialang.org/t/latex-with-makie-layout/56454 "2021-09-23T10:51:31Z")

</div>

Is there a way to use LaTeX for the title and/or axis labels in Makie (the latest version with all the layout bells and whistles)? I saw MakieTeX.jl, but the README says to ask on Slack, but I put the Q here for permanen…

---

## [Interpolate 3d grid of datapoints](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 8:34pm UTC](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485 "2021-09-22T20:34:22Z")

</div>

Hi, Is there any package in Julia for interpolating a 3d grid of datapoints (a typical cloud of non-regularly spaced datapoints)? I need it for plotting purposes only and I do not have a specific algorithm in mind. Tha…

---

## [Replacing only the data layer of points in a Makie figure with protrusions](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 6\
**Last updated:** [September 22, 2021, 7:59pm UTC](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478 "2021-09-22T19:59:21Z")

</div>

I have a plot that requires a lot of code to create protrusions. So, it would be nice to just replace the data layer of the plot without messing with the protrusions. Is this possible? I have example code here: using…

---

## [Format date axis](https://discourse.julialang.org/t/format-date-axis/68352)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 9:06am UTC](https://discourse.julialang.org/t/format-date-axis/68352 "2021-09-20T09:06:57Z")

</div>

I only want to show the month and day like mm-01 for each month, excluding the year. How can I do that? using Dates, AlgebraOfGraphics let dates = Date(2010,1,1):Day(1):Date(2010,12,31) p = data((dates=dates, values=ra…

---

## [Plotting bipartite graph](https://discourse.julialang.org/t/plotting-bipartite-graph/68443)

<div class="topic-metadata">

**Author:** [@sardinecan](https://discourse.julialang.org/u/sardinecan)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 7:43am UTC](https://discourse.julialang.org/t/plotting-bipartite-graph/68443 "2021-09-20T07:43:23Z")

</div>

Hi everyone! I would like to know if there is a way with GraphPlot and gplot() to make a simple bipartite graph representation (one “column” for each node category) ? Here is a small sample of my code bigraph = Met…

---

## [How to make GLMakie "open interactive windows" from Jupyter](https://discourse.julialang.org/t/how-to-make-glmakie-open-interactive-windows-from-jupyter/68299)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 7:33am UTC](https://discourse.julialang.org/t/how-to-make-glmakie-open-interactive-windows-from-jupyter/68299 "2021-09-20T07:33:22Z")

</div>

I am trying to reproduce a simple plot with a slider from the Makie docs. I read in the Makie basic tutorial To see the output of plotting commands when using CairoMakie, we recommend you either use an IDE which suppo…

---

## [Category-type axis in a scatter plot](https://discourse.julialang.org/t/category-type-axis-in-a-scatter-plot/68382)

<div class="topic-metadata">

**Author:** [@emchateau](https://discourse.julialang.org/u/emchateau)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 10:40pm UTC](https://discourse.julialang.org/t/category-type-axis-in-a-scatter-plot/68382 "2021-09-19T22:40:25Z")

</div>

Hi, I would like to give a category-type in x-axis of a scatter plot. I’ve seen the xaxis discrete\_values attribute (cf. Axis Attributes · Plots) But I couldn’t find a way to use it nor any working exemple. Ex. using …

---

## [What are the advantages of using @recipe in Plots vs import RecipesBase.plot?](https://discourse.julialang.org/t/what-are-the-advantages-of-using-recipe-in-plots-vs-import-recipesbase-plot/68366)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 0\
**Last updated:** [September 18, 2021, 10:06am UTC](https://discourse.julialang.org/t/what-are-the-advantages-of-using-recipe-in-plots-vs-import-recipesbase-plot/68366 "2021-09-18T10:06:25Z")

</div>

@recipe is described in its docstring as This functionality is primarily geared to turning user types and settings into the data and attributes that describe a Plots.jl visualization. The example given to dispatch o…

---

## [How to create a system image with Makie.jl](https://discourse.julialang.org/t/how-to-create-a-system-image-with-makie-jl/55493)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [September 17, 2021, 2:17pm UTC](https://discourse.julialang.org/t/how-to-create-a-system-image-with-makie-jl/55493 "2021-09-17T14:17:10Z")

</div>

I created a system image containing Makie.jl using the following steps: julia --project \]add PackageCompiler add MakieGallery exit() julia --project using MakieGallery exit() julia --project using Makie using PackageC…

---

## [Unable to change the tick font size when using ticks = :native with Plots.jl and pgfplotsx backend](https://discourse.julialang.org/t/unable-to-change-the-tick-font-size-when-using-ticks-native-with-plots-jl-and-pgfplotsx-backend/68106)

<div class="topic-metadata">

**Author:** [@deepakvinod](https://discourse.julialang.org/u/deepakvinod)\
**Replies:** 15\
**Last updated:** [September 17, 2021, 1:34pm UTC](https://discourse.julialang.org/t/unable-to-change-the-tick-font-size-when-using-ticks-native-with-plots-jl-and-pgfplotsx-backend/68106 "2021-09-17T13:34:45Z")

</div>

I am relatively new to Julia (coming from python and matplotlib) and have been trying to generate some plots for a project I am working on. It seems to be a known issue that Plots.jl does not produce ticks when there ar…

---

## [Unable to run Makie in VS Code + WSL 2](https://discourse.julialang.org/t/unable-to-run-makie-in-vs-code-wsl-2/68305)

<div class="topic-metadata">

**Author:** [@tmwatchanan](https://discourse.julialang.org/u/tmwatchanan)\
**Replies:** 0\
**Last updated:** [September 17, 2021, 4:56am UTC](https://discourse.julialang.org/t/unable-to-run-makie-in-vs-code-wsl-2/68305 "2021-09-17T04:56:35Z")

</div>

I could be able to run Makie, say plot a simple line, by executing the Julia code in WSL 2. However, when I tried to run the same code with VS Code REPL, it didn’t work. So, I decided to give Persistent Session a try. I …

---

## [Paste an image onto another image?](https://discourse.julialang.org/t/paste-an-image-onto-another-image/68033)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 2\
**Last updated:** [September 17, 2021, 12:08am UTC](https://discourse.julialang.org/t/paste-an-image-onto-another-image/68033 "2021-09-17T00:08:13Z")

</div>

What is Julia’s equivalent of python PIL Image.paste? And how would I paste a rotated image onto a background image? (everything below is just context, that’s the question) I am trying to use Julia to make a dataset of…

---

## [Multiple camera views on same scene in Makie](https://discourse.julialang.org/t/multiple-camera-views-on-same-scene-in-makie/68274)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 3\
**Last updated:** [September 16, 2021, 4:22pm UTC](https://discourse.julialang.org/t/multiple-camera-views-on-same-scene-in-makie/68274 "2021-09-16T16:22:03Z")

</div>

I’d like to have two views of the same scene / data in Makie. Below is code for the output that I want, but I would like to just have one call to scatter! (for example). using Makie: Makie, Observable using GLMakie: GLM…

---

## [How to compute density of conditional probability from data](https://discourse.julialang.org/t/how-to-compute-density-of-conditional-probability-from-data/68208)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 6\
**Last updated:** [September 15, 2021, 5:22pm UTC](https://discourse.julialang.org/t/how-to-compute-density-of-conditional-probability-from-data/68208 "2021-09-15T17:22:41Z")

</div>

I have samples X::Vector{Float64} and S = rand(0:1,1000). I call X\[i\] succesful, if S\[i\] == 1 is satisfied. I would like to estimate the probablility that a sample is succesful, hence p\_x = \\mathbb P ( S = 1 \\mid X …

---

## [Graph function using AlgebraOfGraphics](https://discourse.julialang.org/t/graph-function-using-algebraofgraphics/67888)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 3:07pm UTC](https://discourse.julialang.org/t/graph-function-using-algebraofgraphics/67888 "2021-09-15T15:07:04Z")

</div>

I would like to overlay a density function over a histogram and have a strong preference for using the AlgebraOfGraphics to graph this exact function. Currently, to accomplish this I have to translate the function into …

---

## [Graph layout algorithm allowing manual adjustments?](https://discourse.julialang.org/t/graph-layout-algorithm-allowing-manual-adjustments/68164)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 1:40pm UTC](https://discourse.julialang.org/t/graph-layout-algorithm-allowing-manual-adjustments/68164 "2021-09-15T13:40:05Z")

</div>

Julia packages like GraphPlot and NetworkLayout can automatically choose the positions of graph vertices to make the graph look nice. However, sometimes I want to manually adjust the positions of the vertices to make the…

---

## [WGLMakie.jl in Pluto running on remote machine](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 8:47pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169 "2021-09-14T20:47:14Z")

</div>

I am used to WGLMakie.jl visualizations in Pluto locally, following the instructions in the docs: using JSServe Page() # create page in one cell and then using WGLMakie scatter(rand(100), rand(100)) Everything works…

---

## [Finding plotting function attributes, e.g. alpha, for Makie plotting functions](https://discourse.julialang.org/t/finding-plotting-function-attributes-e-g-alpha-for-makie-plotting-functions/68153)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 4:22pm UTC](https://discourse.julialang.org/t/finding-plotting-function-attributes-e-g-alpha-for-makie-plotting-functions/68153 "2021-09-14T16:22:20Z")

</div>

Is there a programmatic way (or better documentation available) to find the available attributes for each plotting function. For example, the arrows function has a nice attribute list in help and at https://makie.juliap…

---

## [How to fix the rotated label position in this plot?](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 7\
**Last updated:** [September 12, 2021, 9:54am UTC](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025 "2021-09-12T09:54:12Z")

</div>

Hi, I cannot figure how to correct the position of the rotated xticks label in the following plot: using Plots a=\["absmax\_global", "absmax\_global\_ref", "absmax\_local"\] b=\[0.03953348557784052, 1.0667377825188347, 1.9650…

---

## [GLMakie text plots and LaTeXStrings](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014)

<div class="topic-metadata">

**Author:** [@JCQ](https://discourse.julialang.org/u/JCQ)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 2:15am UTC](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014 "2021-09-11T02:15:01Z")

</div>

I would like to do interactive LaTeXString text plots. However, updating a LaTeXString Node after the text plot has been created, doesn’t affect the plotted text. Here is a small example: using GLMakie fig = Figure()…

---

## [Obtaining a Julia \`Image\` from Luxor.jl](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 6:49pm UTC](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992 "2021-09-10T18:49:31Z")

</div>

At the moment I draw an Image with Luxor and load it back into an Image with using Luxor, Images, FileIO d = Luxor.Drawing(width, height, "temp.png") … Luxor.finish() load("temp.png") Is there a way to get the image ba…

---

## [Gtk.jl clear canvas on key event](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757)

<div class="topic-metadata">

**Author:** [@htmj](https://discourse.julialang.org/u/htmj)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 2:18pm UTC](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757 "2021-09-10T14:18:48Z")

</div>

Hi! I’m trying to make a simple drawing app, and i want to clear the canvas when space is pressed. I understood from this discussion Resetting the canvas within Cairo.jl and Gtk.jl for an image selection viewing gui that…

---

## [Makie | interactive update of colorrange in image! / heatmap!](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 1:57am UTC](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887 "2021-09-10T01:57:06Z")

</div>

Hello, I am attempting to do an interactive update of colorrange in image! of the form image!( . . . colorrange = (window\_level\_min, window\_level\_max), . . . ) using input from two Sliders. window\_level\_min a…

---

## [Makie.jl: travelling through an attractor (or Axis3)](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 4:18pm UTC](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936 "2021-09-09T16:18:34Z")

</div>

Hi, I have a 3d line plot that looks as follows: I know the ax.azimuth and ax.elevation I need to set to end up in this orientation. What I want to do now is somehow (no idea how!) animate the camera going through …

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

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