# Visualization

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

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

**Page:** 54

---

## [Vegalite.jl plot size in VS Code](https://discourse.julialang.org/t/vegalite-jl-plot-size-in-vs-code/76977)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 5:45pm UTC](https://discourse.julialang.org/t/vegalite-jl-plot-size-in-vs-code/76977 "2022-02-23T17:45:23Z")

</div>

Hello! How can I make the VegaLite.jl @vlplot plots bigger in VS Code? Now it is just a bit bigger than my thumb.

---

## [Code listing in Makie.jl figure](https://discourse.julialang.org/t/code-listing-in-makie-jl-figure/74395)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 7\
**Last updated:** [February 22, 2022, 8:54pm UTC](https://discourse.julialang.org/t/code-listing-in-makie-jl-figure/74395 "2022-02-22T20:54:54Z")

</div>

I’m interested in producing a figure using Makie with two sections. One section with a figure, another with a code listing (Julia code, of course). Has anyone tried this before / got any thoughts about how I could go abo…

---

## [Interactive Smith Chart](https://discourse.julialang.org/t/interactive-smith-chart/76862)

<div class="topic-metadata">

**Author:** [@white-c](https://discourse.julialang.org/u/white-c)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 10:05pm UTC](https://discourse.julialang.org/t/interactive-smith-chart/76862 "2022-02-21T22:05:59Z")

</div>

I’m interested in having a Smith Chart that is interactive. I have seen static smith charts in some of Julia’s plotting ecosystem. I have found that Plotly has them in its Python library. Is there a way to get that in Pl…

---

## [Link axis not working in Plots for marginal density](https://discourse.julialang.org/t/link-axis-not-working-in-plots-for-marginal-density/76857)

<div class="topic-metadata">

**Author:** [@rwalters31](https://discourse.julialang.org/u/rwalters31)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 7:04pm UTC](https://discourse.julialang.org/t/link-axis-not-working-in-plots-for-marginal-density/76857 "2022-02-21T19:04:52Z")

</div>

I’m trying to put in marginal density plots above and to the right of x,y scatter data. I have tried the ‘link’ in both the :x, :y, and :both directions but as you can see the top figure does not match the axis of th…

---

## [I translated Peter Shirley's Raytracer to Julia. C++ 1min -\> Julia 2m30s -\> 15s (@threads)](https://discourse.julialang.org/t/i-translated-peter-shirleys-raytracer-to-julia-c-1min-julia-2m30s-15s-threads/75671)

<div class="topic-metadata">

**Author:** [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Replies:** 27\
**Last updated:** [February 21, 2022, 12:15am UTC](https://discourse.julialang.org/t/i-translated-peter-shirleys-raytracer-to-julia-c-1min-julia-2m30s-15s-threads/75671 "2022-02-21T00:15:18Z")

</div>

Hi, I like raytracing and there are a nice set of books https://github.com/RayTracing/raytracing.github.io so now I’m a bit better at Julia, I transcoded the C++ into Julia and got some nice speedups. The single thre…

---

## [Y-axis scale in histogram](https://discourse.julialang.org/t/y-axis-scale-in-histogram/76819)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 3\
**Last updated:** [February 20, 2022, 9:44pm UTC](https://discourse.julialang.org/t/y-axis-scale-in-histogram/76819 "2022-02-20T21:44:13Z")

</div>

How can I scale the y axis ticks in a histogram? Is there a way to access the counts in a histogram from dispatching the plot function with st=:hist? In my case I have counts in between 1 000 and a few 10 000s. I woul…

---

## [\[Makie.jl\] Changing axes font sizes on 3D plots like surface](https://discourse.julialang.org/t/makie-jl-changing-axes-font-sizes-on-3d-plots-like-surface/76495)

<div class="topic-metadata">

**Author:** [@KirillGerke](https://discourse.julialang.org/u/KirillGerke)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 3:06pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axes-font-sizes-on-3d-plots-like-surface/76495 "2022-02-19T15:06:12Z")

</div>

Dear All, While Makie.jl’s documentation and some threads here suggest using functions like the following: fontsize\_theme = Theme(fontsize = 30) set\_theme!(fontsize\_theme) update\_theme!(fontsize = 36) they work just f…

---

## [StatsPlots & DataFrames: grouping by multiple columns](https://discourse.julialang.org/t/statsplots-dataframes-grouping-by-multiple-columns/76364)

<div class="topic-metadata">

**Author:** [@Cingulate7](https://discourse.julialang.org/u/Cingulate7)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 4:33pm UTC](https://discourse.julialang.org/t/statsplots-dataframes-grouping-by-multiple-columns/76364 "2022-02-17T16:33:51Z")

</div>

I want to create a box plot of data in a DataFrame grouped by more than one variable (column value). Is there a compact high-level way to do this? The following does not work: ‘’'using DataFrames, StatsPlots dfa = Data…

---

## [Which is better Makie or Graphs?](https://discourse.julialang.org/t/which-is-better-makie-or-graphs/76508)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 7\
**Last updated:** [February 17, 2022, 4:24am UTC](https://discourse.julialang.org/t/which-is-better-makie-or-graphs/76508 "2022-02-17T04:24:41Z")

</div>

I’m trying to visually see how some functions converge and use it for some other visualizations of functions or 3d simulations and I’m wondering which one is better, or should I learn both? Initially I choose Makie, but …

---

## [Supress scale bar in gadfly](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 12:36am UTC](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520 "2022-02-17T00:36:18Z")

</div>

I’m sure this is obvious, but I’ve been searching for hours for a solution. How do I suppress the “Count” scale bar on the right? using Gadfly # code plot(x=dnas, y=brdus, Geom.histogram2d, Guide.xlabel("DNA"), Guid…

---

## [How to create matrix of rgb values from a plot object](https://discourse.julialang.org/t/how-to-create-matrix-of-rgb-values-from-a-plot-object/76500)

<div class="topic-metadata">

**Author:** [@Rik](https://discourse.julialang.org/u/Rik)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 2:39pm UTC](https://discourse.julialang.org/t/how-to-create-matrix-of-rgb-values-from-a-plot-object/76500 "2022-02-16T14:39:49Z")

</div>

I’ve been trying to go from a plot to a matrix of rgb values for a while now and the best solution I could come up with makes use of saving the plot as png and then loading it as an image. This is of course a very dirty …

---

## [Plot not defined](https://discourse.julialang.org/t/plot-not-defined/76482)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 12:32pm UTC](https://discourse.julialang.org/t/plot-not-defined/76482 "2022-02-15T12:32:39Z")

</div>

I was using plots previously. suddenly it stopped working. julia\> using Plots julia\> x = 1:10 ; y = rand(10) 10-element Vector{Float64}: 0.328078505773031 0.1228315686010254 0.18449539206763776 0.9873483723089912 …

---

## [Fillalpha in Makie band plot](https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 7:01am UTC](https://discourse.julialang.org/t/fillalpha-in-makie-band-plot/76469 "2022-02-15T07:01:33Z")

</div>

Is there a way to set the transparency of the filled band plots from Makie.jl? For example, what option can I add onto band! in the following code to give transparency, similarly to fillalpha in Plots.jl? using CairoMak…

---

## [Stacked bar graphs](https://discourse.julialang.org/t/stacked-bar-graphs/18550)

<div class="topic-metadata">

**Author:** [@svpillai](https://discourse.julialang.org/u/svpillai)\
**Replies:** 24\
**Last updated:** [February 14, 2022, 11:29am UTC](https://discourse.julialang.org/t/stacked-bar-graphs/18550 "2022-02-14T11:29:49Z")

</div>

Hello all, I’m quite new to Julia and was a bit lost on how to create Stacked Bar graphs. I’d like to have ideally 8 bars, grouped in pairs. Each of these bars would have 5 stacks that add up to a 100%- this is basically…

---

## [How to interactively zoom using GLMakie?](https://discourse.julialang.org/t/how-to-interactively-zoom-using-glmakie/76270)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 9:28pm UTC](https://discourse.julialang.org/t/how-to-interactively-zoom-using-glmakie/76270 "2022-02-11T21:28:52Z")

</div>

I have recently seen a video where, using the scroll of the mouse, someone was able to zoom interactively in a 3D GLMakie plot. However, when I am doing something similar, I only can rotate the plot using the left click.…

---

## [Is it possible to change the transparency of a line without specifying the color?](https://discourse.julialang.org/t/is-it-possible-to-change-the-transparency-of-a-line-without-specifying-the-color/76252)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 5:38pm UTC](https://discourse.julialang.org/t/is-it-possible-to-change-the-transparency-of-a-line-without-specifying-the-color/76252 "2022-02-11T17:38:35Z")

</div>

I am playing with Makie animations and I would like to change the transparecy of some lines using the lines! function but without having to specify the color. Is there any attribute in Makie that allows to change this?

---

## [Wrapping label text in Plots.jl](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 5:26pm UTC](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124 "2022-02-10T17:26:12Z")

</div>

I have a plot of only two lines with long legend labels. The plot doesn’t have enough horizontal space unless the labels are wrapped. How do I do that? I’m using pgfplotsx() backend in Plots.jl for LaTeX-style plots, so…

---

## [Is there an efficient way that the xticks and yticks numbers appear in LaTeX using Makie?](https://discourse.julialang.org/t/is-there-an-efficient-way-that-the-xticks-and-yticks-numbers-appear-in-latex-using-makie/76064)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 4\
**Last updated:** [February 9, 2022, 1:01pm UTC](https://discourse.julialang.org/t/is-there-an-efficient-way-that-the-xticks-and-yticks-numbers-appear-in-latex-using-makie/76064 "2022-02-09T13:01:36Z")

</div>

I open this question because I have not been able to set the Computer Modern font in Makie. The only workaround I found to write the numbers of the x and y axis in LaTeX is to extract the attribute from the plot that con…

---

## [Plot recipe for existing series type and own type](https://discourse.julialang.org/t/plot-recipe-for-existing-series-type-and-own-type/23902)

<div class="topic-metadata">

**Author:** [@moesphere](https://discourse.julialang.org/u/moesphere)\
**Replies:** 4\
**Last updated:** [February 8, 2022, 6:33pm UTC](https://discourse.julialang.org/t/plot-recipe-for-existing-series-type-and-own-type/23902 "2022-02-08T18:33:26Z")

</div>

I am slightly confused how to properly add a plot recipe for a corrplot of an own-defined type. Suppose that I have defined the following type struct MyType x::DataFrame end I would now like to have a corrplot for cer…

---

## [How to obtain literal value of colors from the color cycle in Makie.jl?](https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 4:10pm UTC](https://discourse.julialang.org/t/how-to-obtain-literal-value-of-colors-from-the-color-cycle-in-makie-jl/75413 "2022-02-08T16:10:43Z")

</div>

How to I obtain the n -th color of the color cycle in literal value? I know I can do Cycled(n) , but how do I get its value? Like "#abcdefg" or whatever it is.

---

## [Change transparecy of the spines in Makie plots](https://discourse.julialang.org/t/change-transparecy-of-the-spines-in-makie-plots/76002)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [February 8, 2022, 9:11am UTC](https://discourse.julialang.org/t/change-transparecy-of-the-spines-in-makie-plots/76002 "2022-02-08T09:11:16Z")

</div>

Hello! This is my first question here so forgive me if I make some style typos. Maybe this is a very specific question, but I noticed that the spines in Makie have some transparecy since, even though they are colored in…

---

## [Makie - mouseposition with respect to image plot](https://discourse.julialang.org/t/makie-mouseposition-with-respect-to-image-plot/51268)

<div class="topic-metadata">

**Author:** [@arnief3](https://discourse.julialang.org/u/arnief3)\
**Replies:** 2\
**Last updated:** [February 7, 2022, 4:40pm UTC](https://discourse.julialang.org/t/makie-mouseposition-with-respect-to-image-plot/51268 "2022-02-07T16:40:08Z")

</div>

I am attempting to get the x, y position of a mouse click with respect to a plotted image. The code shown below is working except for a white border around the image. The returned x, y values include this border and the …

---

## [Fraction bar is not visible in Makie plot with text! and annotations! methods](https://discourse.julialang.org/t/fraction-bar-is-not-visible-in-makie-plot-with-text-and-annotations-methods/75938)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 9:16am UTC](https://discourse.julialang.org/t/fraction-bar-is-not-visible-in-makie-plot-with-text-and-annotations-methods/75938 "2022-02-07T09:16:49Z")

</div>

Hello, I tried to insert an equation with the text! and annotations! methods in Makie. Unfortunately, the fraction bar is not visible for me. However, the fraction bar is visible in the Axis title, xlabel, ylabel and th…

---

## [How to create GraphMakie with WGLMakie?](https://discourse.julialang.org/t/how-to-create-graphmakie-with-wglmakie/75865)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 3\
**Last updated:** [February 5, 2022, 5:02pm UTC](https://discourse.julialang.org/t/how-to-create-graphmakie-with-wglmakie/75865 "2022-02-05T17:02:41Z")

</div>

I don’t have a GPU to use Makie, so I have to use WGLMakie, can I use GraphMakie with it? How? Thank you for your advice.

---

## [Hide colorbar axis and add top and bottom label in Plots.jl](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 12:49pm UTC](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592 "2022-02-05T12:49:34Z")

</div>

Hi, I am trying to plot a heatmap with a colorbar, but I want to hide the axis lines and tick numbers, and add labels on top and bottom of the colorbar. I could achieve this, heatmap(rand(10,10),color=:RdBu,colorbar\_t…

---

## [Is the Plots.jl layout broken?](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 5\
**Last updated:** [February 4, 2022, 9:24pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819 "2022-02-04T21:24:24Z")

</div>

Hi, All packages updated, using gr() backend, the command plot(margins=0cm, layout=@layout \[a{0.125h} b;c\]) gives the following result: using pyplot() the result is slightly better, but still far from good: Ho…

---

## [GraphsMakie, not working correctly](https://discourse.julialang.org/t/graphsmakie-not-working-correctly/75813)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 6:29pm UTC](https://discourse.julialang.org/t/graphsmakie-not-working-correctly/75813 "2022-02-04T18:29:11Z")

</div>

Hello, I’m trying to run this code on my computer(HP Z1 2012): using WGLMakie, GraphMakie, Graphs, #Makie - doesn't work if in or not. g = complete\_graph(10) graphplot(g) A simple code, that(I think should just create …

---

## [Making a triangular plot](https://discourse.julialang.org/t/making-a-triangular-plot/75802)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 4\
**Last updated:** [February 4, 2022, 3:49pm UTC](https://discourse.julialang.org/t/making-a-triangular-plot/75802 "2022-02-04T15:49:46Z")

</div>

In MATLAB there is a function triplot (2-D triangular plot - MATLAB triplot) which can be used to make a triangular plot given a connectivity matrix and the corresponding (x, y) values. Is there a similar function in Jul…

---

## [Can I use Makie with plots.jl or graphs.jl to create interractive graphs?](https://discourse.julialang.org/t/can-i-use-makie-with-plots-jl-or-graphs-jl-to-create-interractive-graphs/75754)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 3\
**Last updated:** [February 4, 2022, 6:21am UTC](https://discourse.julialang.org/t/can-i-use-makie-with-plots-jl-or-graphs-jl-to-create-interractive-graphs/75754 "2022-02-04T06:21:29Z")

</div>

I’m trying to build a map for some game, for that, I only need graphs that I can change while using them eg, make them different colors and get that data, ad limits to movement on edges and get data for different vertice…

---

## [Can I use Makie.jl without GPU](https://discourse.julialang.org/t/can-i-use-makie-jl-without-gpu/75590)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 5\
**Last updated:** [February 3, 2022, 8:01pm UTC](https://discourse.julialang.org/t/can-i-use-makie-jl-without-gpu/75590 "2022-02-03T20:01:55Z")

</div>

Hello, I’m trying to build an interactive graph, but I don’t have a GPU on my computer, can I still use Makie.jl. If not what would you recommend? Thank you for your help!

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

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