# Visualization

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

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

**Page:** 63

---

## [Makie: LinePattern in Box](https://discourse.julialang.org/t/makie-linepattern-in-box/65663)

<div class="topic-metadata">

**Author:** [@wst](https://discourse.julialang.org/u/wst)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 12:07pm UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663 "2021-08-02T12:07:41Z")

</div>

Hello everyone, to get better understanding of how Makie works I’m trying to visualize stacked composite-laminates. My current approach is to draw a Box for each lamina, which works fine. Now I want to add a hatching t…

---

## [Makie.contour plot into an array](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 5:45am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652 "2021-08-02T05:45:23Z")

</div>

Is there a way to turn a Makie.contour plot into an array? Either where the contour pixels are 1s and everything else is 0 or where the pixels enclosed by the values are 1s and everything else is a 0. I can use ImageEdge…

---

## [Unexpected and unclear labels' grouping in the legend when using plotly(js) backend with subplots](https://discourse.julialang.org/t/unexpected-and-unclear-labels-grouping-in-the-legend-when-using-plotly-js-backend-with-subplots/65632)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 2:35am UTC](https://discourse.julialang.org/t/unexpected-and-unclear-labels-grouping-in-the-legend-when-using-plotly-js-backend-with-subplots/65632 "2021-08-02T02:35:03Z")

</div>

begin using StatsPlots gr() # pgfplotsx() # plotlyjs() # plotly() serie1=rand(5) serie2=rand(5) serie3=rand(10) serie4=rand(10) pg = plot( plot(\[serie3 serie4\], label=\["Serie1" "Serie2"\]), plot(\[se…

---

## [Makie: how to avoid dropdown menus overlapping?](https://discourse.julialang.org/t/makie-how-to-avoid-dropdown-menus-overlapping/65556)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 5:10pm UTC](https://discourse.julialang.org/t/makie-how-to-avoid-dropdown-menus-overlapping/65556 "2021-07-30T17:10:50Z")

</div>

Hi, Here’s a MWE of a Makie Figure with two dropdown menus. f = Figure() f\[1,1\] = Menu(f, options = \["aaa", "bbb", "ccc"\]) f\[2,1\] = Menu(f, options = \["aaa", "bbb", "ccc"\], direction = :up) You’ll notice that when ope…

---

## [Glitching plot in GLMakie when reopening an interactive figure](https://discourse.julialang.org/t/glitching-plot-in-glmakie-when-reopening-an-interactive-figure/65560)

<div class="topic-metadata">

**Author:** [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 4:39pm UTC](https://discourse.julialang.org/t/glitching-plot-in-glmakie-when-reopening-an-interactive-figure/65560 "2021-07-30T16:39:32Z")

</div>

I am finding that interactive plots in GLMakie seem to glitch upon reopening a figure. What I mean by this is that when I initially run the code to produce an interactive plot, it displays correctly in the Makie window, …

---

## [Plot 2D histogram of 3D+ multivariate data](https://discourse.julialang.org/t/plot-2d-histogram-of-3d-multivariate-data/65525)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [July 29, 2021, 10:02pm UTC](https://discourse.julialang.org/t/plot-2d-histogram-of-3d-multivariate-data/65525 "2021-07-29T22:02:09Z")

</div>

To plot a bivariate histogram with as many bins as I like in each dimension, I can use using StatsBase, Plots d1 = randn(10\_000) d2 = randn(10\_000) nbins1 = 25 nbins2 = 10 hist = fit(Histogram, (d1,d2), (range(mini…

---

## [Recent errors with WGLMakie on Pluto](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 18\
**Last updated:** [July 29, 2021, 11:54am UTC](https://discourse.julialang.org/t/recent-errors-with-wglmakie-on-pluto/64859 "2021-07-29T11:54:47Z")

</div>

I don’t know what happened but I started getting this warning on a previously working Pluto notebook with WGLMakie plots: ┌ Warning: Waiting for page sessions to load. │ This can happen for the first cel…

---

## [Line thickness, marker size scales in Makie](https://discourse.julialang.org/t/line-thickness-marker-size-scales-in-makie/65447)

<div class="topic-metadata">

**Author:** [@keithjlee](https://discourse.julialang.org/u/keithjlee)\
**Replies:** 0\
**Last updated:** [July 28, 2021, 4:17pm UTC](https://discourse.julialang.org/t/line-thickness-marker-size-scales-in-makie/65447 "2021-07-28T16:17:35Z")

</div>

I’m currently trying to make sense of how Makie (GLMakie) deals with scaling of element sizes. I’m trying to make a quick function that visualizes structures for finite element analysis, just simple points and lines tha…

---

## [Changing Gtk widget border/background colors](https://discourse.julialang.org/t/changing-gtk-widget-border-background-colors/5126)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 3\
**Last updated:** [July 28, 2021, 8:40am UTC](https://discourse.julialang.org/t/changing-gtk-widget-border-background-colors/5126 "2021-07-28T08:40:15Z")

</div>

I’m having a bit of difficulty trying to understand how one would set the background or border color of a widget with Gtk.jl. I’ve taken a look at this issue, but haven’t been able to make it work with Julia 0.6 and Gtk …

---

## [Precise control of navigation in 3D scene in Makie?](https://discourse.julialang.org/t/precise-control-of-navigation-in-3d-scene-in-makie/62387)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 7\
**Last updated:** [July 27, 2021, 11:27pm UTC](https://discourse.julialang.org/t/precise-control-of-navigation-in-3d-scene-in-makie/62387 "2021-07-27T23:27:56Z")

</div>

Hi, I’m starting to visualize a collection of meshes in Makie, currently using the mouse to navigate the content. However, after a while the rotate, drag and zoom performed usually make me end up with parts of the conte…

---

## [Styling AlgebraOfGraphics boxplots](https://discourse.julialang.org/t/styling-algebraofgraphics-boxplots/65335)

<div class="topic-metadata">

**Author:** [@jbmuir](https://discourse.julialang.org/u/jbmuir)\
**Replies:** 13\
**Last updated:** [July 27, 2021, 10:30pm UTC](https://discourse.julialang.org/t/styling-algebraofgraphics-boxplots/65335 "2021-07-27T22:30:53Z")

</div>

I’m amazed how easy it is to make complex and good-looking figures using AlgebraOfGraphics - it is still a little opaque as to how to use custom styles in them though. I’d like to be able to change the colors in this…

---

## [Using Pixel buffer objects to update textures in OpenGl](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 0\
**Last updated:** [July 25, 2021, 11:25am UTC](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260 "2021-07-25T11:25:05Z")

</div>

Hello I looked into GL/GLAbstraction.jl package and as far as I see texture updating is done by glTexSubImage2D , yet why Pixel buffer objects are not used? Is there some reason? Frankly I tried to implement the pixel b…

---

## [Makie surface and NaN values](https://discourse.julialang.org/t/makie-surface-and-nan-values/65165)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 9\
**Last updated:** [July 23, 2021, 1:29pm UTC](https://discourse.julialang.org/t/makie-surface-and-nan-values/65165 "2021-07-23T13:29:22Z")

</div>

I am running in some unexpected behavior with GLMakie, surface plots and matrices that contain NaN as a value. My minimum working example below produces the following plots of three different 4 x 4 matrices with differe…

---

## [Makie: overlaying scatter plot onto heatmap in Pluto](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 10:48pm UTC](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141 "2021-07-22T22:48:19Z")

</div>

I am working inside a Pluto notebook with WGLMakie and I have 3D volumes that I scrolling through using a PlutoUI.Slider and heatmap(volume\[:, :, b\]) where b is a Slider element. I have a label (segmentation) that I want…

---

## [LightHouse.jl Implementation](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 10:29pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051 "2021-07-22T22:29:50Z")

</div>

Good Day: II am attempting to create an ROC\_CURVE with Lighthouse.jl. I am attempting to generate one with the MLJ.@load\_boston dataset. My general questions are: How do I designate class? names(df)? Should I: cl…

---

## [Get DCT coefficients of jpeg image](https://discourse.julialang.org/t/get-dct-coefficients-of-jpeg-image/64640)

<div class="topic-metadata">

**Author:** [@pakk-minidose](https://discourse.julialang.org/u/pakk-minidose)\
**Replies:** 11\
**Last updated:** [July 21, 2021, 2:05pm UTC](https://discourse.julialang.org/t/get-dct-coefficients-of-jpeg-image/64640 "2021-07-21T14:05:59Z")

</div>

Hello, I would like to obtain DCT coefficients of a jpeg image. The Phil Sallee’s JPEG toolbox in MATLAB returns these as an array (the original website is not active, but some of the code can be downloaded on Jessica …

---

## [Treemap subplot in PlotlyJS](https://discourse.julialang.org/t/treemap-subplot-in-plotlyjs/64759)

<div class="topic-metadata">

**Author:** [@stej](https://discourse.julialang.org/u/stej)\
**Replies:** 3\
**Last updated:** [July 19, 2021, 5:18pm UTC](https://discourse.julialang.org/t/treemap-subplot-in-plotlyjs/64759 "2021-07-19T17:18:06Z")

</div>

I wanted to use a treemap in PlotlyJS. There is no method like this, so I create that by hand. fieldsa = Dict{Symbol,Any}(:type =\> "treemap", :labels =\> \["a", "A"\], :parents =\> \["", ""\], :values =\> \[1, 10\], …

---

## [Streamplot statemap using JSServe](https://discourse.julialang.org/t/streamplot-statemap-using-jsserve/64337)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 13\
**Last updated:** [July 19, 2021, 10:52am UTC](https://discourse.julialang.org/t/streamplot-statemap-using-jsserve/64337 "2021-07-19T10:52:33Z")

</div>

I’m trying to record a statemap to include an interactive streamplot in a web page. Is there a way to pull out the actual Float64 value from the observable? Thanks in advance. using WGLMakie, JSServe WGLMakie.activate!…

---

## [How to center a text with Luxor](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:22am UTC](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125 "2021-07-18T08:22:14Z")

</div>

I am trying to create simple images with a text made of a few digits on the center. The problem is that I need to manually offset the position, is there a way to make it “centered” in a visual sense, i.e. where the spa…

---

## [How to make GLFW window non blocking](https://discourse.julialang.org/t/how-to-make-glfw-window-non-blocking/64804)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [July 18, 2021, 4:15am UTC](https://discourse.julialang.org/t/how-to-make-glfw-window-non-blocking/64804 "2021-07-18T04:15:57Z")

</div>

Hello I am creating some openGL GUI and I have probably simple to solve problem - I want to have the rendering loop non blocking i.e so for example I will be able to run the openGL app and make it possible to 1) respond…

---

## [Need help with loading plots in dash](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841)

<div class="topic-metadata">

**Author:** [@Goku](https://discourse.julialang.org/u/Goku)\
**Replies:** 0\
**Last updated:** [July 18, 2021, 1:00am UTC](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841 "2021-07-18T01:00:25Z")

</div>

I am trying to host this plot in dash, but I am getting the following error: Error loading layout Full Code: using CSV, DataFrames, Dates, Plots using Dash, DashHtmlComponents, DashCoreComponents plotly() df = CSV…

---

## [Order of groupedbar](https://discourse.julialang.org/t/order-of-groupedbar/64749)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 7:32pm UTC](https://discourse.julialang.org/t/order-of-groupedbar/64749 "2021-07-16T19:32:10Z")

</div>

I have the following plot of a Likert scale: StatsPlots.groupedbar( repeat(questions, outer = 5), weights, group=repeat(\["1", "2", "3", "4", "5"\], inner=length(questions)), bar\_position=:stack, o…

---

## [Histogram counts in bin under mouse hover](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 0\
**Last updated:** [January 21, 2021, 8:01pm UTC](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743 "2021-01-21T20:01:01Z")

</div>

I would like to make a histogram, under IJulia jupyter notebook, such that, when I hover the mouse over the bars, I get the number of ocurrences within the corresponding bins, as a tooltip. My MWE is: using PlotlyJS plo…

---

## [Should the repl show images?](https://discourse.julialang.org/t/should-the-repl-show-images/64672)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 16\
**Last updated:** [July 15, 2021, 7:14pm UTC](https://discourse.julialang.org/t/should-the-repl-show-images/64672 "2021-07-15T19:14:54Z")

</div>

When I create an image in the repl I get a huge RGB array, but in Jupyterlab I do get the image. I thought the repl also showed images. That is: using Images, TestImages img = testimage(“mandrill”) shows a mandrill in…

---

## [Makie - Incorrect isosurface rendering](https://discourse.julialang.org/t/makie-incorrect-isosurface-rendering/64688)

<div class="topic-metadata">

**Author:** [@tehl](https://discourse.julialang.org/u/tehl)\
**Replies:** 3\
**Last updated:** [July 15, 2021, 4:55pm UTC](https://discourse.julialang.org/t/makie-incorrect-isosurface-rendering/64688 "2021-07-15T16:55:43Z")

</div>

The isosurface example from the Makie docs doesn’t render correctly (see image below). Has anyone come across this problem? Potentially relevant glxinfo: Vendor: AMD (0x1002) Device: AMD Radeon (TM) RX 480 Graphics (PO…

---

## [Makie - Makie crashes](https://discourse.julialang.org/t/makie-makie-crashes/64569)

<div class="topic-metadata">

**Author:** [@stroebel](https://discourse.julialang.org/u/stroebel)\
**Replies:** 4\
**Last updated:** [July 14, 2021, 9:27am UTC](https://discourse.julialang.org/t/makie-makie-crashes/64569 "2021-07-14T09:27:54Z")

</div>

I am trying to explore using Makie for some interactive applications and I have a hurdle that I am not sure how to get over. When following the tutorial for Schelling’s Segregation model on the Agents.jl page, Makie just…

---

## [Makie - Default plot color](https://discourse.julialang.org/t/makie-default-plot-color/64494)

<div class="topic-metadata">

**Author:** [@paurierap](https://discourse.julialang.org/u/paurierap)\
**Replies:** 1\
**Last updated:** [July 12, 2021, 11:58am UTC](https://discourse.julialang.org/t/makie-default-plot-color/64494 "2021-07-12T11:58:14Z")

</div>

While trying to set the attributes of a custom recipe, I am using default\_theme(scene,Mesh), knowing that the default color is :black. My ultimate goal is to set my own default color, but somehow Makie changes any color …

---

## [Get individual frames of an \`Animation\` object](https://discourse.julialang.org/t/get-individual-frames-of-an-animation-object/64310)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 2\
**Last updated:** [July 10, 2021, 11:19am UTC](https://discourse.julialang.org/t/get-individual-frames-of-an-animation-object/64310 "2021-07-10T11:19:54Z")

</div>

Here is an example from the Plots documentation: using Plots @userplot CirclePlot @recipe function f(cp::CirclePlot) x, y, i = cp.args n = length(x) inds = circshift(1:n, 1 - i) linewidth --\> range(0, 1…

---

## [Triangulation for Cloth Simulation](https://discourse.julialang.org/t/triangulation-for-cloth-simulation/64375)

<div class="topic-metadata">

**Author:** [@graham](https://discourse.julialang.org/u/graham)\
**Replies:** 6\
**Last updated:** [July 9, 2021, 8:30pm UTC](https://discourse.julialang.org/t/triangulation-for-cloth-simulation/64375 "2021-07-09T20:30:02Z")

</div>

Hi all, I’m working on porting over my implementation of the seminal cloth simulator designed by Baraff and Witkin. As first steps, I’m trying to generate a flat plane, triangulated with approximately evenly spaced node…

---

## [Need help with highest posterior density interval plot using Makie](https://discourse.julialang.org/t/need-help-with-highest-posterior-density-interval-plot-using-makie/64320)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 1:43pm UTC](https://discourse.julialang.org/t/need-help-with-highest-posterior-density-interval-plot-using-makie/64320 "2021-07-09T13:43:15Z")

</div>

I am trying to create the highest posterior density interval plot, but haven’t been able to create the one where the HDPI region is shaded and follows the density curve. p\_grid = range(0,stop=1,length=1000) prior = fill…

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

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