# Visualization

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

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

**Page:** 22

---

## [Makie Contourf Giving Incorrect Whitespace in Contours](https://discourse.julialang.org/t/makie-contourf-giving-incorrect-whitespace-in-contours/111222)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 9\
**Last updated:** [March 10, 2024, 4:51pm UTC](https://discourse.julialang.org/t/makie-contourf-giving-incorrect-whitespace-in-contours/111222 "2024-03-10T16:51:55Z")

</div>

Hello, I am trying to plot the initial condition of some simulations I am running. The simulation is two-dimensional and the initial condition is composed of some hyperbolic tangents. The issue is that when I plot this…

---

## [Cannot set linestyle to :solid with observable using GLMakie](https://discourse.julialang.org/t/cannot-set-linestyle-to-solid-with-observable-using-glmakie/111413)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 10, 2024, 10:05am UTC](https://discourse.julialang.org/t/cannot-set-linestyle-to-solid-with-observable-using-glmakie/111413 "2024-03-10T10:05:04Z")

</div>

I want to change the linestyle of lines in an axis using an observable for the linestyle. When using the little code snippet below, it works for setting the linestyle to :dot, :dash, :dotdash, but not for setting the lin…

---

## [Colouring edges in GraphMakie.jl](https://discourse.julialang.org/t/colouring-edges-in-graphmakie-jl/109082)

<div class="topic-metadata">

**Author:** [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)\
**Replies:** 2\
**Last updated:** [March 9, 2024, 11:50pm UTC](https://discourse.julialang.org/t/colouring-edges-in-graphmakie-jl/109082 "2024-03-09T23:50:33Z")

</div>

Hi! I’m making a graph based on an adjacency matrix of 1’s and 2’s (which indicates which colour the edge should be). Currently, I can’t colour individual edges like shown in the third example of this page. I think this…

---

## [Densitymapbox not working as expected](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 2:49pm UTC](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361 "2024-03-08T14:49:04Z")

</div>

Anyone has a working example? The examples I am running don’t produce the expected result: densitymapbox doesn't generate a valid visualization · Issue #484 · JuliaPlots/PlotlyJS.jl · GitHub

---

## [Makie: Triangle face colour, mesh](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011)

<div class="topic-metadata">

**Author:** [@timmm](https://discourse.julialang.org/u/timmm)\
**Replies:** 10\
**Last updated:** [March 7, 2024, 5:06pm UTC](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011 "2024-03-07T17:06:13Z")

</div>

I have a question about Makie, when plotting triangulated mesh surfaces is it possible to colour with flat coloured patches? Like: Triangular surface plot - MATLAB trisurf - MathWorks Deutschland Compared to the exampl…

---

## [Issue with Live Plotting 3D Objects using Meshes.jl, Observables, and GLMakie: Bound Error on Item Removal](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 7:20pm UTC](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253 "2024-03-06T19:20:18Z")

</div>

I’ve been exploring the use of Meshes.jl in combination with Observables and GLMakie for live plotting of 3D objects. My goal is to dynamically update a plot by adding or removing 3D objects (like Box or Ball) and visual…

---

## [Error generating quiver plot with Plots.jl](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208)

<div class="topic-metadata">

**Author:** [@JonathanH](https://discourse.julialang.org/u/JonathanH)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 5:06pm UTC](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208 "2024-03-05T17:06:07Z")

</div>

I am getting an error with the following MWE, which I think should work, based on the documentation for quiver in the Plots.jl package (v1.15.2). The error is: unexpected vi type Vector{Tuple{Float64, Float64}} for quive…

---

## [Interactive plots with Plots.jl and VSCode](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 2:04pm UTC](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058 "2024-03-05T14:04:39Z")

</div>

I’ve installed PythonPlot and PlotlyJS backends. A test plot with either backend displayed in VSCode pane, and I see no interactive tools. Here a link to an older topic, recommending trying to display plot in an externa…

---

## [\[Makie\] Get data from figure](https://discourse.julialang.org/t/makie-get-data-from-figure/96053)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 5\
**Last updated:** [March 4, 2024, 1:42pm UTC](https://discourse.julialang.org/t/makie-get-data-from-figure/96053 "2024-03-04T13:42:33Z")

</div>

Given a Figure, is it possible to get the Arrays with the data? I want to do tests on automatically setting legal limits for log scale plots by automatically adjusting limits to hide the offending points, and printing a …

---

## [Smoothing surface in GLMakie](https://discourse.julialang.org/t/smoothing-surface-in-glmakie/110957)

<div class="topic-metadata">

**Author:** [@Alicanter](https://discourse.julialang.org/u/Alicanter)\
**Replies:** 7\
**Last updated:** [March 2, 2024, 12:12pm UTC](https://discourse.julialang.org/t/smoothing-surface-in-glmakie/110957 "2024-03-02T12:12:55Z")

</div>

I have data from a simulation (test.csv.gz) and I am trying to plot it as a surface. The equations have a singularity at a certain threshold, so there is a cutoff in the values of the surface. The problem I am facing i…

---

## [CairoMakie Legend Line Too Short](https://discourse.julialang.org/t/cairomakie-legend-line-too-short/110990)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 6\
**Last updated:** [March 1, 2024, 5:11pm UTC](https://discourse.julialang.org/t/cairomakie-legend-line-too-short/110990 "2024-03-01T17:11:57Z")

</div>

Hello, I am trying to determine how I can increase the line thickness of the lines in the legend. Please consider the following MWE and resulting image. The lines in the legend are too short and it is hard to tell whic…

---

## [Change ylabel after twinx is generated?](https://discourse.julialang.org/t/change-ylabel-after-twinx-is-generated/110969)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 1\
**Last updated:** [February 29, 2024, 6:20pm UTC](https://discourse.julialang.org/t/change-ylabel-after-twinx-is-generated/110969 "2024-02-29T18:20:09Z")

</div>

Hey everyone, I would like to know if it is possible to change only one label name of a simple plot containing a twin axis using Plots. Of course I know that you can do that when calling twinx, but for one of my use, I …

---

## [Making Custom Colormap with Makie](https://discourse.julialang.org/t/making-custom-colormap-with-makie/110965)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 0\
**Last updated:** [February 29, 2024, 4:40pm UTC](https://discourse.julialang.org/t/making-custom-colormap-with-makie/110965 "2024-02-29T16:40:00Z")

</div>

Hello, I’m wondering what is the best way to implement my own custom colormap for use in Makie. I am using CairoMakie to generate plots and I want to be able to specify a colormap and then generate smaller maps from tho…

---

## [Coloring regions defined with path in Luxor](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 12:31am UTC](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863 "2024-02-28T00:31:33Z")

</div>

I am working on a new logo for the PeaceFounder project and giving Luxor a chance. So far, I have managed to get a frame in the way I want it to be (representing two interlinked elements in a rope): which is achieved…

---

## [Y-axis in CairoMakie.jl not vertical](https://discourse.julialang.org/t/y-axis-in-cairomakie-jl-not-vertical/93165)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 3:32pm UTC](https://discourse.julialang.org/t/y-axis-in-cairomakie-jl-not-vertical/93165 "2024-02-27T15:32:17Z")

</div>

I am making plots in CairoMakie.jl (v0.10.1) and noticed that the y-axis isn’t quite vertical. It generally looks less tidy than the x-axis. using CairoMakie CairoMakie.activate!() xs = rand(100); ys = rand(100) fig, a…

---

## [WGLMakie in JupyterLab default mouse interaction](https://discourse.julialang.org/t/wglmakie-in-jupyterlab-default-mouse-interaction/110811)

<div class="topic-metadata">

**Author:** [@myrddin89](https://discourse.julialang.org/u/myrddin89)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 10:58pm UTC](https://discourse.julialang.org/t/wglmakie-in-jupyterlab-default-mouse-interaction/110811 "2024-02-26T22:58:48Z")

</div>

Using WGLMakie 0.9.8 and JupyterLab 4.0 (macOS), the mouse interaction on the figure clashes with the JupyterLab UI. For example, it is not possible to reset the axis with ctrl-click as it triggers a right-click on the J…

---

## [Displaying an image from a matrix using Gtk4](https://discourse.julialang.org/t/displaying-an-image-from-a-matrix-using-gtk4/104748)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 5\
**Last updated:** [February 26, 2024, 2:47pm UTC](https://discourse.julialang.org/t/displaying-an-image-from-a-matrix-using-gtk4/104748 "2024-02-26T14:47:42Z")

</div>

I want to display an image using Gtk, and be able to change the pixels later. I love ImageView and Makie, but I’m trying to do something as simple and low-level as possibel. There are a couple of examples in the forum u…

---

## [Line caps and joins in Plots](https://discourse.julialang.org/t/line-caps-and-joins-in-plots/39826)

<div class="topic-metadata">

**Author:** [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Replies:** 2\
**Last updated:** [February 23, 2024, 4:28pm UTC](https://discourse.julialang.org/t/line-caps-and-joins-in-plots/39826 "2024-02-23T16:28:48Z")

</div>

I have looked around in the Plots package and am unable to find out how to set the line cap style, and line join style. A simple example is this: using Plots pyplot() plot(\[0 0.5; 0.5 1\], \[1 1; 1 1\], linewidth=10) That…

---

## [Arrows in plots](https://discourse.julialang.org/t/arrows-in-plots/110629)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 1\
**Last updated:** [February 23, 2024, 3:50pm UTC](https://discourse.julialang.org/t/arrows-in-plots/110629 "2024-02-23T15:50:29Z")

</div>

I want to plot lines with arrows at the end of the lines. Following this thread, I got: obtained from: Using Plots plot(\[0.0 1.0\]',\[0.0 -0.71\]',label="Correct, solid blue with arrow",palette=:imola100,lw=2,arrow=tr…

---

## [Colorbar positionning with Makie](https://discourse.julialang.org/t/colorbar-positionning-with-makie/110582)

<div class="topic-metadata">

**Author:** [@gdestouet](https://discourse.julialang.org/u/gdestouet)\
**Replies:** 3\
**Last updated:** [February 22, 2024, 5:55pm UTC](https://discourse.julialang.org/t/colorbar-positionning-with-makie/110582 "2024-02-22T17:55:36Z")

</div>

Hi everyone, I am currently struggling to make a colorbar stick to the right yaxis of a contour plot whose x axis need to be align with an other line plot just below. fig = Figure() ax1 = Axis(fig\[1,1\]) Box(fig\[1, 1\], …

---

## [Hide stroke in 3D scatter using Makie.jl](https://discourse.julialang.org/t/hide-stroke-in-3d-scatter-using-makie-jl/106383)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 10:31pm UTC](https://discourse.julialang.org/t/hide-stroke-in-3d-scatter-using-makie-jl/106383 "2024-02-21T22:31:42Z")

</div>

Compare the two scatter plots produced by GLMakie in 2D and 3D: scatter(rand(1000), rand(1000)) scatter(rand(1000), rand(1000), rand(1000)) Is there an option to hide the white stroke around the dots in 3D? When …

---

## [Plotting ODEProblem solutions with Makie](https://discourse.julialang.org/t/plotting-odeproblem-solutions-with-makie/58096)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 8:39pm UTC](https://discourse.julialang.org/t/plotting-odeproblem-solutions-with-makie/58096 "2024-02-21T20:39:26Z")

</div>

Whatever (plot recipes?) allows for the solution output from solving an ODEProblem in ModelingToolkit.jl (or maybe just OrdinaryDiffEq.jl?) to be just plotted using Plots.jl is wonderful and magical. I love how it’s poss…

---

## [CairoMakie get 3d plots to respect z order](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 5\
**Last updated:** [February 21, 2024, 6:09pm UTC](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428 "2024-02-21T18:09:59Z")

</div>

I’m trying to export figure as a PDF using CairoMakie. Some of my subplots are 3d axes. I’m plotting several surfaces that wrap around each other, so some parts of surface A are behind surface B and some parts are in fro…

---

## [Subplots CairoMakie](https://discourse.julialang.org/t/subplots-cairomakie/110504)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 9:43am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504 "2024-02-21T09:43:43Z")

</div>

Hello, i want plot N subplots and off for all subplots ticks on axis. For example i do it in python with matplotlib. How can i do this with CairoMakie? Thank you for your helps

---

## [Shared legend for subplots in Plotly](https://discourse.julialang.org/t/shared-legend-for-subplots-in-plotly/110497)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 4:58am UTC](https://discourse.julialang.org/t/shared-legend-for-subplots-in-plotly/110497 "2024-02-21T04:58:12Z")

</div>

I’ve seen variations of this question, but nothing fits my case exactly so I’m trying.: I want to create three subplots in Plotly that share the same legend, I use the following code: p = \[p\_1; p\_2; p\_3\] relayout!(p, h…

---

## [Recording of Makie hist changes output](https://discourse.julialang.org/t/recording-of-makie-hist-changes-output/110440)

<div class="topic-metadata">

**Author:** [@DrBurner](https://discourse.julialang.org/u/DrBurner)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 1:11pm UTC](https://discourse.julialang.org/t/recording-of-makie-hist-changes-output/110440 "2024-02-20T13:11:26Z")

</div>

I’d like to make a short video of the build up of an histogram with a little bit of white space between the bins . Unfortunately the record block seems to ignore the width keyword. using GLMakie samples=rand(1:10,100) …

---

## [Makie plotting: GLib-GIO-WARNING](https://discourse.julialang.org/t/makie-plotting-glib-gio-warning/64478)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 4:40pm UTC](https://discourse.julialang.org/t/makie-plotting-glib-gio-warning/64478 "2024-02-19T16:40:13Z")

</div>

Hallo :grinning\_face\_with\_smiling\_eyes:, I am using the excellent Makie plotting package. When I am compiling the code I am getting the following Warnings, GLib-GIO-WARNING \*which I suspect is caused by the package Cair…

---

## [Labeling a categorical color dimension in 3d scatter in Makie](https://discourse.julialang.org/t/labeling-a-categorical-color-dimension-in-3d-scatter-in-makie/110072)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 1\
**Last updated:** [February 18, 2024, 6:43pm UTC](https://discourse.julialang.org/t/labeling-a-categorical-color-dimension-in-3d-scatter-in-makie/110072 "2024-02-18T18:43:14Z")

</div>

I’m trying to do a 3D Iris plot in Makie, but I can not figure out how to label the color dimension. Here is what I do: using DataFrames using WGLMakie using RDatasets using CategoricalArrays iris = dataset("datasets",…

---

## [Display svg](https://discourse.julialang.org/t/display-svg/57469)

<div class="topic-metadata">

**Author:** [@tonyhur](https://discourse.julialang.org/u/tonyhur)\
**Replies:** 4\
**Last updated:** [February 16, 2024, 10:53pm UTC](https://discourse.julialang.org/t/display-svg/57469 "2024-02-16T22:53:40Z")

</div>

In a Jupyter notebook I have the following code that worked with Julia 1.0 f = open(“Output.svg”, “r”) s = read(f,String) display(“image/svg+xml”,s) Now in Julia 1.5.3 it did not work anymore. I looked up the documen…

---

## [Plotting two specific columns from a dataframe on one plot using PlutoPlotly](https://discourse.julialang.org/t/plotting-two-specific-columns-from-a-dataframe-on-one-plot-using-plutoplotly/110316)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 3\
**Last updated:** [February 16, 2024, 10:13pm UTC](https://discourse.julialang.org/t/plotting-two-specific-columns-from-a-dataframe-on-one-plot-using-plutoplotly/110316 "2024-02-16T22:13:05Z")

</div>

Hi everyone, I have a DataFrame with one date data and the other columns are just numbers. I want to create a plot of two specific columns df.data1 and df.data3 against the date column on the x-axis. When I try someth…

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

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