# Visualization

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

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

**Page:** 34

---

## [How to create a 3D network with GMT.jl](https://discourse.julialang.org/t/how-to-create-a-3d-network-with-gmt-jl/98668)

<div class="topic-metadata">

**Author:** [@gabipana7](https://discourse.julialang.org/u/gabipana7)\
**Replies:** 7\
**Last updated:** [May 14, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-to-create-a-3d-network-with-gmt-jl/98668 "2023-05-14T09:57:13Z")

</div>

Hi everyone, I would like to create a 3D network using real coordinates of seismic centers. Without going too much into detail, I have a graph file of edgelists and I laso have the coordinates of the nodes. I am able to…

---

## [Needing to plot streaming vehicle trajectories on a map similar to city or road map](https://discourse.julialang.org/t/needing-to-plot-streaming-vehicle-trajectories-on-a-map-similar-to-city-or-road-map/98705)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 7:19am UTC](https://discourse.julialang.org/t/needing-to-plot-streaming-vehicle-trajectories-on-a-map-similar-to-city-or-road-map/98705 "2023-05-12T07:19:47Z")

</div>

Hello, I desparately need a plotting library, platform to plot streaming vehicle trajectories on a city map. I am trying to put distance to python ecosystem and try to stay in julia ecosystem as much as possible but I h…

---

## [Quiver colors in Plots.jl](https://discourse.julialang.org/t/quiver-colors-in-plots-jl/34981)

<div class="topic-metadata">

**Author:** [@alvrg](https://discourse.julialang.org/u/alvrg)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 7:04am UTC](https://discourse.julialang.org/t/quiver-colors-in-plots-jl/34981 "2023-05-11T07:04:18Z")

</div>

Hi all, I made this simple example where I plot a bunch of arrows using Plots # Arrow position. x = collect(0:10) y = fill(0., 10) # Arrow direction. u = fill(1., 10) v = fill(1., 10) # Arrow color. c = collect(1:10) …

---

## [AoG Attributes and/or Post-Plot Environment Stacking?](https://discourse.julialang.org/t/aog-attributes-and-or-post-plot-environment-stacking/98640)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 0\
**Last updated:** [May 10, 2023, 8:20pm UTC](https://discourse.julialang.org/t/aog-attributes-and-or-post-plot-environment-stacking/98640 "2023-05-10T20:20:18Z")

</div>

I have an AlgebraOfGraphics.Layers object drawn in my package environment which has CairoMakie as a dependency. I now find myself needing to zoom in. I assume there is an axis option I can use to set xlimits and ylimits…

---

## [GLMakie. How to choose a specific GPU?](https://discourse.julialang.org/t/glmakie-how-to-choose-a-specific-gpu/98557)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 4:12pm UTC](https://discourse.julialang.org/t/glmakie-how-to-choose-a-specific-gpu/98557 "2023-05-09T16:12:46Z")

</div>

If I’m using GLMakie on a system with multiple GPUs, how can I select a specific GPU unit for rendering?

---

## [Deactivate plot display to avoid need for X server](https://discourse.julialang.org/t/deactivate-plot-display-to-avoid-need-for-x-server/19359)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 16\
**Last updated:** [May 9, 2023, 9:37am UTC](https://discourse.julialang.org/t/deactivate-plot-display-to-avoid-need-for-x-server/19359 "2023-05-09T09:37:54Z")

</div>

I use the following type of code to create a gif animation: using Plots anim = Animation(); for it = 1:nt contourf(...); frame(anim); end gif(anim, "test.gif", fps = 15); This works fine on my local noteboo…

---

## [Disabling zoom events for PlotlyJS backend for Plots.jl](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340)

<div class="topic-metadata">

**Author:** [@viperML](https://discourse.julialang.org/u/viperML)\
**Replies:** 2\
**Last updated:** [May 8, 2023, 3:42pm UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340 "2023-05-08T15:42:07Z")

</div>

Hello :wave: I would like to disable zoom events for my interactive plot. Apparently you can do this with plotly.js by setting this layout option: Disable zoom events in JavaScript xaxis: {fixedrange: true} Is it poss…

---

## [How to render a cylinder?](https://discourse.julialang.org/t/how-to-render-a-cylinder/98063)

<div class="topic-metadata">

**Author:** [@cdelv](https://discourse.julialang.org/u/cdelv)\
**Replies:** 15\
**Last updated:** [May 7, 2023, 4:28am UTC](https://discourse.julialang.org/t/how-to-render-a-cylinder/98063 "2023-05-07T04:28:14Z")

</div>

Hi everyone, I want to plot a cylinder centered at point p, radius r, and aligned with an axis vector. For now, I have this code: using GLMakie r = 5 h = 3 m, n =200, 150 u = range(0, 2pi, length=n) v = range(0, h, len…

---

## [Plots.jl xticks color modification](https://discourse.julialang.org/t/plots-jl-xticks-color-modification/74800)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plots-jl-xticks-color-modification/74800 "2023-05-05T21:41:15Z")

</div>

Hello, Is it possible to change a specific xtick color with Plots.jl. For instance, tick 5 with red, tick 10 with yellow, etc. I tried with xtickfontcolor and all ticks are red. using Plots plot(1:20, randn(20); size(4…

---

## [Plots.jl: how to plot a function with different values for a parameter](https://discourse.julialang.org/t/plots-jl-how-to-plot-a-function-with-different-values-for-a-parameter/52638)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 23\
**Last updated:** [May 5, 2023, 4:50pm UTC](https://discourse.julialang.org/t/plots-jl-how-to-plot-a-function-with-different-values-for-a-parameter/52638 "2023-05-05T16:50:56Z")

</div>

Suppose I want to plot a certain function f(x) = a\*x(1-x), for x in 0:0.001:1, and to consider, i.e., four different values for parameter a: a = 1, a = 2, a = 3.2, a = 3.8. I want to do this in one single plot. I know ho…

---

## [Interactive plot data inspection with Makie (à la PlotlyJS)](https://discourse.julialang.org/t/interactive-plot-data-inspection-with-makie-a-la-plotlyjs/58095)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 17\
**Last updated:** [May 5, 2023, 7:43am UTC](https://discourse.julialang.org/t/interactive-plot-data-inspection-with-makie-a-la-plotlyjs/58095 "2023-05-05T07:43:01Z")

</div>

What’s the latest on being able to inspect data interactively in Makie? I mean something similar to what PlotlyJS has by default, where you can for example point the cursor at a point in a scatter plot and it will give y…

---

## [Oblique slices in Makie](https://discourse.julialang.org/t/oblique-slices-in-makie/83879)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 14\
**Last updated:** [May 4, 2023, 3:03pm UTC](https://discourse.julialang.org/t/oblique-slices-in-makie/83879 "2023-05-04T15:03:18Z")

</div>

Are there any way to plot an oblique slice in Makie? Something similar to Matlab’s obliqueslice function.

---

## [Is there a way to display a CairoMakie plot in a Gtk/Qt window in remote X11 session](https://discourse.julialang.org/t/is-there-a-way-to-display-a-cairomakie-plot-in-a-gtk-qt-window-in-remote-x11-session/98222)

<div class="topic-metadata">

**Author:** [@yvikhlya](https://discourse.julialang.org/u/yvikhlya)\
**Replies:** 8\
**Last updated:** [May 4, 2023, 12:57pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-display-a-cairomakie-plot-in-a-gtk-qt-window-in-remote-x11-session/98222 "2023-05-04T12:57:49Z")

</div>

I am doing data analysis on a remote server and trying to utilize Makie to produce interactive quick plots. I can’t use GLMakie and using something like Jupyter notebooks remotely is complicated on my cluster. Pretty muc…

---

## [Only show significand as tick label](https://discourse.julialang.org/t/only-show-significand-as-tick-label/98308)

<div class="topic-metadata">

**Author:** [@alistair.white](https://discourse.julialang.org/u/alistair.white)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 10:05am UTC](https://discourse.julialang.org/t/only-show-significand-as-tick-label/98308 "2023-05-04T10:05:31Z")

</div>

Hi there, If I have tick labels like those in the picture, is there a nice way to express them in scientific notation and display the exponent e.g. at the top of the y-axis, with only the significands as tick labels? Th…

---

## [Changing transparency of individual bars in a barplot using CairoMakie](https://discourse.julialang.org/t/changing-transparency-of-individual-bars-in-a-barplot-using-cairomakie/98250)

<div class="topic-metadata">

**Author:** [@bhache](https://discourse.julialang.org/u/bhache)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 9:39am UTC](https://discourse.julialang.org/t/changing-transparency-of-individual-bars-in-a-barplot-using-cairomakie/98250 "2023-05-04T09:39:20Z")

</div>

Hi, I am trying to generate a barplot using CairoMakie which would consist two sets of bars each with a different transparency. So far I am not sure how to achieve that. MWE below depicts the barplot I am generating so …

---

## [Makie: Make only part of a violin plot transparent with correct width](https://discourse.julialang.org/t/makie-make-only-part-of-a-violin-plot-transparent-with-correct-width/98196)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 8:49am UTC](https://discourse.julialang.org/t/makie-make-only-part-of-a-violin-plot-transparent-with-correct-width/98196 "2023-05-03T08:49:47Z")

</div>

Let’s take the following MWE: using CairoMakie, Statistics fig = Figure() ax = Axis(fig\[1,1\]) Dloc = randn(1000) # Full pdf violin!(ax, fill(1, length(Dloc)), Dloc) # Pdf plotted so that it is transparent after some…

---

## [How to draw a circle of 500m away from a point on a map? or how to highlight all connected ways?](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 5\
**Last updated:** [April 30, 2023, 12:42pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093 "2023-04-30T12:42:36Z")

</div>

Is it possible to draw a circle around a coordinates? I knew that with folium one can plot a points on a map: using OpenStreetMapX using PyCall points = LLA(43.658813, -79.397574, 0.0) using PyCall flm = pyimport("f…

---

## [Cannot precompile CImGui for Julia 1.8.5 on MacOS (Ventura 13.3.1)](https://discourse.julialang.org/t/cannot-precompile-cimgui-for-julia-1-8-5-on-macos-ventura-13-3-1/98037)

<div class="topic-metadata">

**Author:** [@Fummelknabe](https://discourse.julialang.org/u/Fummelknabe)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 11:56am UTC](https://discourse.julialang.org/t/cannot-precompile-cimgui-for-julia-1-8-5-on-macos-ventura-13-3-1/98037 "2023-04-28T11:56:20Z")

</div>

I’ve been using the great Julia wrapper for the CImGui for quiet a while now and never encountered any problems. Recently I wanted to run Julia on MacOS and CImGui failed at precompiling. I am using CImGui.jl v1.79.0. T…

---

## [Twinx shows left yticks on right y axis](https://discourse.julialang.org/t/twinx-shows-left-yticks-on-right-y-axis/57372)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 6\
**Last updated:** [April 28, 2023, 11:44am UTC](https://discourse.julialang.org/t/twinx-shows-left-yticks-on-right-y-axis/57372 "2023-04-28T11:44:24Z")

</div>

I am struggling to generate a plot with two y-axes. The left y-ticks show up on the right y-axis. Also, I am uisng rightmargin = 1.5Plots.cm, box = :on because the label margins are broken. using Plots pyplot() plot(…

---

## [Plot in plot at grdipoint using Plots.jl](https://discourse.julialang.org/t/plot-in-plot-at-grdipoint-using-plots-jl/98002)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 7:11am UTC](https://discourse.julialang.org/t/plot-in-plot-at-grdipoint-using-plots-jl/98002 "2023-04-28T07:11:07Z")

</div>

I am trying to make a plot, in which I want to position another shrunk plot at certain coordinates of my first plot (MWE below). Following the example at the end of the Layouts manual, I can, given a base plot p, use P…

---

## [Code was trapped at display(plt) step](https://discourse.julialang.org/t/code-was-trapped-at-display-plt-step/98013)

<div class="topic-metadata">

**Author:** [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 9:28pm UTC](https://discourse.julialang.org/t/code-was-trapped-at-display-plt-step/98013 "2023-04-27T21:28:16Z")

</div>

Hi I am trying to use Plots.jl with default backends GR to plot figures. But the code was trapped in the display(plt) process. Any ideas about what happened? Thank you Here is my code: plt=scatter3d(tar\_xs,tar\_ys,tar\_z…

---

## [Plots.jl: Polar Plot w 0° at the Nadir](https://discourse.julialang.org/t/plots-jl-polar-plot-w-0-at-the-nadir/98010)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 8:47pm UTC](https://discourse.julialang.org/t/plots-jl-polar-plot-w-0-at-the-nadir/98010 "2023-04-27T20:47:59Z")

</div>

Now that GR supports this, I’m trying to get it to work with plots.jl, and so far I can’t figure out how. This is one version of the code I tried and it doesn’t work. Am I missing something obvious? using Plots plot(deg…

---

## [Plotting Polygons in geomakie](https://discourse.julialang.org/t/plotting-polygons-in-geomakie/97948)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 7:33am UTC](https://discourse.julialang.org/t/plotting-polygons-in-geomakie/97948 "2023-04-27T07:33:46Z")

</div>

Hello, I’m trying to make map of administrative regions in GeoMakie but the poly! function does not work with Polygons, unlike specified in the documentation (poly · Makie). Here’s a MWE: GeoJSON.write("data/DE\_regions.…

---

## [Create legend for dodge boxplot in Makie](https://discourse.julialang.org/t/create-legend-for-dodge-boxplot-in-makie/97824)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 11:05am UTC](https://discourse.julialang.org/t/create-legend-for-dodge-boxplot-in-makie/97824 "2023-04-25T11:05:21Z")

</div>

Hello, I am trying to get a legend for a box plot created in Makie. For the example provided in the website Page Redirection (attached is the box plot), how to get a legend inside the figure panel? Like in a scatter plo…

---

## [Status of Dash.jl](https://discourse.julialang.org/t/status-of-dash-jl/97806)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 2:54pm UTC](https://discourse.julialang.org/t/status-of-dash-jl/97806 "2023-04-24T14:54:25Z")

</div>

Anyone knows the status of Dash.jl compared to the python version of it? The docs on the website often refer to python. Does Dash.jl only contain a subset of the python implementation or are the docs for the julia versio…

---

## [How to plot color in scatter3d based on the value of z direction using backends: plotlyjs](https://discourse.julialang.org/t/how-to-plot-color-in-scatter3d-based-on-the-value-of-z-direction-using-backends-plotlyjs/97712)

<div class="topic-metadata">

**Author:** [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 7:43pm UTC](https://discourse.julialang.org/t/how-to-plot-color-in-scatter3d-based-on-the-value-of-z-direction-using-backends-plotlyjs/97712 "2023-04-20T19:43:37Z")

</div>

Hi, I am trying to plot the scatter points using scatter3d, I am wondering how to color the points based on the value of z direction. Thanks

---

## [Mirror makie elements](https://discourse.julialang.org/t/mirror-makie-elements/97629)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 2:13pm UTC](https://discourse.julialang.org/t/mirror-makie-elements/97629 "2023-04-20T14:13:35Z")

</div>

Hey folks, I’m using GLMakie to make some videos with contours, and it would be nice to be able to apply mirroring to a given axis (or two, in my case). My data is all in one quadrant, and I could make an array four tim…

---

## [Plots.jl with PGFPlotsX backend produces plot way of center](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-backend-produces-plot-way-of-center/97678)

<div class="topic-metadata">

**Author:** [@TheBigZet](https://discourse.julialang.org/u/TheBigZet)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 6:55am UTC](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-backend-produces-plot-way-of-center/97678 "2023-04-20T06:55:50Z")

</div>

This simple Julia code: using Plots; pgfplotsx(); using LaTeXStrings x = \[-243, 144, 243\] e1 = \[120, 149, 26\] e2 = \[218, 271, 68\] e3 = \[314, 380, 148\] function plot\_eps(p, x, y, color, label) plot!(p, x, y, label …

---

## [Resize\_to\_layout!() does not remove margins around plots in GridLayout](https://discourse.julialang.org/t/resize-to-layout-does-not-remove-margins-around-plots-in-gridlayout/97365)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [April 19, 2023, 3:46pm UTC](https://discourse.julialang.org/t/resize-to-layout-does-not-remove-margins-around-plots-in-gridlayout/97365 "2023-04-19T15:46:33Z")

</div>

I use resize\_to\_layout!() to remove whatever margins around the plot in Figure after plotting. For example, the following code using CairoMakie fig = Figure() fig\[2,1\] = Axis(fig, aspect=DataAspect()) hm = heatmap!(ra…

---

## [Interactive boxplot with GLMakie](https://discourse.julialang.org/t/interactive-boxplot-with-glmakie/97623)

<div class="topic-metadata">

**Author:** [@ilkerarslan](https://discourse.julialang.org/u/ilkerarslan)\
**Replies:** 6\
**Last updated:** [April 18, 2023, 7:49pm UTC](https://discourse.julialang.org/t/interactive-boxplot-with-glmakie/97623 "2023-04-18T19:49:20Z")

</div>

Hi. I am trying to create an interactive boxplot where the use selects the variable and the boxplot is updated accordingly. The code is like below: xs = @lift($dfbox\[: , 1\]) ys = @lift($dfbox\[:, 2\]) ax = Axis(fig\[1,1\]) …

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

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