# Visualization

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

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

**Page:** 51

---

## [GLMakie: Length of the arrows](https://discourse.julialang.org/t/glmakie-length-of-the-arrows/80327)

<div class="topic-metadata">

**Author:** [@yashi](https://discourse.julialang.org/u/yashi)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 1:34am UTC](https://discourse.julialang.org/t/glmakie-length-of-the-arrows/80327 "2022-05-03T01:34:24Z")

</div>

Is there better way to align the tip of the red arrow head to the surface of the sphere? It seems arrows() draws arrow tail (the straight line) and adds the arrow head. Thus the total length of the arrow is the directi…

---

## [Plot lines in the gaps between subplots](https://discourse.julialang.org/t/plot-lines-in-the-gaps-between-subplots/80172)

<div class="topic-metadata">

**Author:** [@chunjiw](https://discourse.julialang.org/u/chunjiw)\
**Replies:** 3\
**Last updated:** [May 2, 2022, 9:34pm UTC](https://discourse.julialang.org/t/plot-lines-in-the-gaps-between-subplots/80172 "2022-05-02T21:34:04Z")

</div>

Is it possible to plot lines in the gaps between subplots? For example, the two black lines indicating that the bottom plot is a zoom-in view of the top plot: Thanks for any help!

---

## [Choosing pdf output version in Plots.jl](https://discourse.julialang.org/t/choosing-pdf-output-version-in-plots-jl/80359)

<div class="topic-metadata">

**Author:** [@Janssena](https://discourse.julialang.org/u/Janssena)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 4:09pm UTC](https://discourse.julialang.org/t/choosing-pdf-output-version-in-plots-jl/80359 "2022-05-02T16:09:37Z")

</div>

Hey all, I use Plots.jl to create and save images for publication. Generally I use GR.jl and save the plots to PDF. On my machine, using Plots.savefig results in Plots.jl saving a PDF1.2 file. My publisher uses PDF1.7,…

---

## [Plot ticks at both top and bottom axis](https://discourse.julialang.org/t/plot-ticks-at-both-top-and-bottom-axis/9550)

<div class="topic-metadata">

**Author:** [@kaslusimoes](https://discourse.julialang.org/u/kaslusimoes)\
**Replies:** 7\
**Last updated:** [May 1, 2022, 6:13pm UTC](https://discourse.julialang.org/t/plot-ticks-at-both-top-and-bottom-axis/9550 "2022-05-01T18:13:11Z")

</div>

Hi, Is there any way to plot both ‘top’ and ‘bottom’ x axis ticks using Plots.jl? I’m thinking of something like this example from Matplotlib. Thanks!

---

## [Cannot change colorbar position](https://discourse.julialang.org/t/cannot-change-colorbar-position/17181)

<div class="topic-metadata">

**Author:** [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)\
**Replies:** 6\
**Last updated:** [May 1, 2022, 9:13am UTC](https://discourse.julialang.org/t/cannot-change-colorbar-position/17181 "2022-05-01T09:13:13Z")

</div>

I am trying to change the colorbar position: using Plots # pyplot() plot(rand(10, 2), marker\_z=rand(10), seriestype=:scatter, cb=:top) But the colorbar position won’t move no matter how I specifiy :cb: It is always …

---

## [Visualizing a dynamic changing graph](https://discourse.julialang.org/t/visualizing-a-dynamic-changing-graph/80255)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 6:45pm UTC](https://discourse.julialang.org/t/visualizing-a-dynamic-changing-graph/80255 "2022-04-29T18:45:01Z")

</div>

Hi all, I am in the process of implementing a graph using MetaGraphs(Next).jl. The graph dynamically expands over time. Currently, I am using GraphRecipes to visualize the resulting graph at the end of my “time simulat…

---

## [Plotting heatmap PlotlyJS, double bar](https://discourse.julialang.org/t/plotting-heatmap-plotlyjs-double-bar/80199)

<div class="topic-metadata">

**Author:** [@Line](https://discourse.julialang.org/u/Line)\
**Replies:** 3\
**Last updated:** [April 29, 2022, 3:09pm UTC](https://discourse.julialang.org/t/plotting-heatmap-plotlyjs-double-bar/80199 "2022-04-29T15:09:23Z")

</div>

Hi, I am plotting heatmap subplots using PlotlyJS package and get the problem of the bar being double. The input into the heatmap is just values of either 1, 2 or 3. I assume a part of the problem is some plots only take…

---

## [Replicate Vega-Lite Interactive Index Chart](https://discourse.julialang.org/t/replicate-vega-lite-interactive-index-chart/80231)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 10:42pm UTC](https://discourse.julialang.org/t/replicate-vega-lite-interactive-index-chart/80231 "2022-04-28T22:42:41Z")

</div>

Is it possible to replicate this using vegalite.jl? Interactive Index Chart | Vega-Lite

---

## [Warning: when using both Plots and StatsPlots](https://discourse.julialang.org/t/warning-when-using-both-plots-and-statsplots/50118)

<div class="topic-metadata">

**Author:** [@Xijiang\_Yu](https://discourse.julialang.org/u/Xijiang_Yu)\
**Replies:** 9\
**Last updated:** [April 28, 2022, 6:35pm UTC](https://discourse.julialang.org/t/warning-when-using-both-plots-and-statsplots/50118 "2022-04-28T18:35:10Z")

</div>

I am working on a package which has both Plots and StatsPlots added. When using density from StatsPlots, even I use StatsPlots.density(blah), I got a warning twice for each density call: ┌ Warning: seriestype density ha…

---

## [How to make Geom.errorbar work with Geom.subplot\_grid in Gadfly.jl](https://discourse.julialang.org/t/how-to-make-geom-errorbar-work-with-geom-subplot-grid-in-gadfly-jl/80158)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 5:38pm UTC](https://discourse.julialang.org/t/how-to-make-geom-errorbar-work-with-geom-subplot-grid-in-gadfly-jl/80158 "2022-04-28T17:38:08Z")

</div>

Hello Everyone, I am trying to make bar plot with error bars in a plot grid. But I am getting following error. Please advise what I may be doing wrong. Fake Data v = rand(8) df\_plot = DataFrame( model = repeat(\[“M1…

---

## [QML, animations, and asynchronous variable updating](https://discourse.julialang.org/t/qml-animations-and-asynchronous-variable-updating/79995)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 12:45pm UTC](https://discourse.julialang.org/t/qml-animations-and-asynchronous-variable-updating/79995 "2022-04-28T12:45:01Z")

</div>

Hi, I’m trying to build a simple GUI for a metropolis Monte Carlo simulation of a spin ising model. What I want to do, basically is having a while loop in the background running at all times (ideally which can be paused…

---

## [Plot only real part of solution](https://discourse.julialang.org/t/plot-only-real-part-of-solution/80167)

<div class="topic-metadata">

**Author:** [@ograsdijk](https://discourse.julialang.org/u/ograsdijk)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 8:58pm UTC](https://discourse.julialang.org/t/plot-only-real-part-of-solution/80167 "2022-04-27T20:58:08Z")

</div>

I have some ODE systems generated with ModelingToolkit that have complex solutions but I only want to plot the real part of the solution. I know I can pull out the solution for a specific component manually and use real …

---

## [How can I change the color palette for Plots.jl line\_z and marker\_z attribute color gradients for line and scatter plots?](https://discourse.julialang.org/t/how-can-i-change-the-color-palette-for-plots-jl-line-z-and-marker-z-attribute-color-gradients-for-line-and-scatter-plots/80089)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 7:15pm UTC](https://discourse.julialang.org/t/how-can-i-change-the-color-palette-for-plots-jl-line-z-and-marker-z-attribute-color-gradients-for-line-and-scatter-plots/80089 "2022-04-26T19:15:38Z")

</div>

Plots.jl has z-value attributes available for line and scatter plots. Is there a way to change the palette used for this gradient to a named colorscheme? begin import Plots as Pt t = range(0.0,stop=2π,length=1000) y…

---

## [Makie interactions with nested plot](https://discourse.julialang.org/t/makie-interactions-with-nested-plot/80072)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 3:49pm UTC](https://discourse.julialang.org/t/makie-interactions-with-nested-plot/80072 "2022-04-26T15:49:03Z")

</div>

I am looking at using some 3rd party makie interactions for my recipe and I cannot seem to make it. I am leveraging the functionality of the GraphPlot recipe by wrapping it around a new application-specific recipe. Let…

---

## [.glade file import issues](https://discourse.julialang.org/t/glade-file-import-issues/79880)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 3:00pm UTC](https://discourse.julialang.org/t/glade-file-import-issues/79880 "2022-04-26T15:00:54Z")

</div>

Hi everyone, I’m trying to import a layout file I generated with glade with GtkBuilder, but whenever I do so Julia crashes:(. Here my script: using Gtk, LightXML b = GtkBuilder(filename = "glade\_file") I can’t upload…

---

## [Recording mouse position coordinates in plots?](https://discourse.julialang.org/t/recording-mouse-position-coordinates-in-plots/28848)

<div class="topic-metadata">

**Author:** [@davide](https://discourse.julialang.org/u/davide)\
**Replies:** 16\
**Last updated:** [April 26, 2022, 4:56am UTC](https://discourse.julialang.org/t/recording-mouse-position-coordinates-in-plots/28848 "2022-04-26T04:56:50Z")

</div>

Is there a way to click on a plot and have the coordinates at the pointer recorded (read)? (E.g. like, in R, the locator() function). I mostly use Plots.jl but I may use a different package (and I would prefer interact…

---

## [Most solid/easiest way to plot Earth on 3D with specific points on it using Pluto?](https://discourse.julialang.org/t/most-solid-easiest-way-to-plot-earth-on-3d-with-specific-points-on-it-using-pluto/76942)

<div class="topic-metadata">

**Author:** [@eduardosalaz](https://discourse.julialang.org/u/eduardosalaz)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 4:39am UTC](https://discourse.julialang.org/t/most-solid-easiest-way-to-plot-earth-on-3d-with-specific-points-on-it-using-pluto/76942 "2022-04-26T04:39:56Z")

</div>

Hi there. I am currently working on a project to visualize a worldwide TSP in which the nodes have specific coordinates on Earth. For a quick viz, I have successfully used GMT.jl (which is quite a great package) to plot…

---

## [Makie - Massive growth of memory usage when updating an image](https://discourse.julialang.org/t/makie-massive-growth-of-memory-usage-when-updating-an-image/72460)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 5\
**Last updated:** [April 25, 2022, 3:33pm UTC](https://discourse.julialang.org/t/makie-massive-growth-of-memory-usage-when-updating-an-image/72460 "2022-04-25T15:33:41Z")

</div>

I have spent a week on this issue and need help. My application is to generate a file of images that I later massage and make into a movie. All works great EXCEPT the memory usage limits my number of frames before it c…

---

## [3D Scatter with 2D Projections](https://discourse.julialang.org/t/3d-scatter-with-2d-projections/79920)

<div class="topic-metadata">

**Author:** [@MisterBiggs](https://discourse.julialang.org/u/MisterBiggs)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 11:27pm UTC](https://discourse.julialang.org/t/3d-scatter-with-2d-projections/79920 "2022-04-24T23:27:04Z")

</div>

Saw an interesting post on twitter https://twitter.com/BrainInTheMind/status/1517543839833243649 that got me wondering if there was a supported way to project 3D data onto the axes using Plots or Makie. I came up with my…

---

## [How to show Matrix{RGB} on Cairo surface?](https://discourse.julialang.org/t/how-to-show-matrix-rgb-on-cairo-surface/79166)

<div class="topic-metadata">

**Author:** [@Rratic](https://discourse.julialang.org/u/Rratic)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 5:03pm UTC](https://discourse.julialang.org/t/how-to-show-matrix-rgb-on-cairo-surface/79166 "2022-04-24T17:03:30Z")

</div>

Cairo provides read\_from\_png, but returns value of a special type CairoSurfaceBase, which is hard to operate, so I choose Matrix{RGB}(the thing ImageIO returns). Cairo does provide something called set\_matrix, but the s…

---

## [Unicode symbols as arrowheads in Makie](https://discourse.julialang.org/t/unicode-symbols-as-arrowheads-in-makie/79039)

<div class="topic-metadata">

**Author:** [@kfrb](https://discourse.julialang.org/u/kfrb)\
**Replies:** 3\
**Last updated:** [April 22, 2022, 9:34pm UTC](https://discourse.julialang.org/t/unicode-symbols-as-arrowheads-in-makie/79039 "2022-04-22T21:34:12Z")

</div>

Is it possible to use other Symbols for the arrowheads in Makie? According to the docs, the arrowhead attribute is set by default to automatic, which is in 2D the symbol "▲". To use something like arrowhead="△" could be …

---

## [GLMakie - Connecting a Slider to update images in an axis](https://discourse.julialang.org/t/glmakie-connecting-a-slider-to-update-images-in-an-axis/79847)

<div class="topic-metadata">

**Author:** [@fmc5](https://discourse.julialang.org/u/fmc5)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 4:58pm UTC](https://discourse.julialang.org/t/glmakie-connecting-a-slider-to-update-images-in-an-axis/79847 "2022-04-22T16:58:52Z")

</div>

Hi everyone, I am new to Julia and I am trying to create an interface to show for images (as you can see in the figure). I was able to connect the Slider with the red lines and put the limits of the top left image. But…

---

## [How to change Makie contourf line color](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 9:08am UTC](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794 "2022-04-22T09:08:16Z")

</div>

Hi, Does anyone knows how to control the contourf line color and width (I do not find the default one visible enough). Note that I have tried to overlay call to contour with the same arguments but, for some reasons,…

---

## [Align ylabels in scattermatrix](https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [April 21, 2022, 5:27pm UTC](https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787 "2022-04-21T17:27:42Z")

</div>

I have the following plot: If I change the ylabelpadding, I move all ylabels by the same amount. Is there a way to set the ylabelpadding such that the ylabels are aligned? (I wish to do the same for the xlabels, but…

---

## [Adding labels to surfaces in the same figure](https://discourse.julialang.org/t/adding-labels-to-surfaces-in-the-same-figure/79708)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 4\
**Last updated:** [April 21, 2022, 3:53pm UTC](https://discourse.julialang.org/t/adding-labels-to-surfaces-in-the-same-figure/79708 "2022-04-21T15:53:43Z")

</div>

Hi all, how do I add labels to the surfaces below? Using label= as when plotting curves in 2d does not work. There’s very few information on attributes to surface() and I can’t find a solution anywhere else for this simp…

---

## [Plots.jl: Change formating of logscale ticks to normal formatting](https://discourse.julialang.org/t/plots-jl-change-formating-of-logscale-ticks-to-normal-formatting/79733)

<div class="topic-metadata">

**Author:** [@loonatick-src](https://discourse.julialang.org/u/loonatick-src)\
**Replies:** 2\
**Last updated:** [April 20, 2022, 12:08pm UTC](https://discourse.julialang.org/t/plots-jl-change-formating-of-logscale-ticks-to-normal-formatting/79733 "2022-04-20T12:08:33Z")

</div>

Consider the following plot using Plots pyplot() radix\_range\_xticks = -4:4 radix\_range = LinRange(-4, 4, 100) xs = 2.0 .^ radix\_range\_xticks pf = 50.0 bw = 25.0 roofline(x, bw, pf) = min(bw\*x, pf) ys = roofline.(xs, bw…

---

## [Using Makie for contour plot with only one edge](https://discourse.julialang.org/t/using-makie-for-contour-plot-with-only-one-edge/79603)

<div class="topic-metadata">

**Author:** [@Sciemon](https://discourse.julialang.org/u/Sciemon)\
**Replies:** 3\
**Last updated:** [April 17, 2022, 4:30pm UTC](https://discourse.julialang.org/t/using-makie-for-contour-plot-with-only-one-edge/79603 "2022-04-17T16:30:39Z")

</div>

I want a 2D contour plot which shows the boundary where “matrix” becomes larger than zero. I do: CairoMakie.contour(matrix,levels = \[0.0\]) The last step to make me happy would be to set the color of the boundary line. …

---

## [Plot without holding data in memory](https://discourse.julialang.org/t/plot-without-holding-data-in-memory/79444)

<div class="topic-metadata">

**Author:** [@jcarpi](https://discourse.julialang.org/u/jcarpi)\
**Replies:** 6\
**Last updated:** [April 15, 2022, 9:19pm UTC](https://discourse.julialang.org/t/plot-without-holding-data-in-memory/79444 "2022-04-15T21:19:41Z")

</div>

I’d like to overlay hundreds of gigabytes of data onto a single plot. I don’t need this plot to be interactive, I just want to “paint pixels”. Is there any plotting backend, or option with Plots.jl that allows for plott…

---

## [How to plot a best fit curve in Julia when the data is a time series?](https://discourse.julialang.org/t/how-to-plot-a-best-fit-curve-in-julia-when-the-data-is-a-time-series/79317)

<div class="topic-metadata">

**Author:** [@wu-lee](https://discourse.julialang.org/u/wu-lee)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 4:57pm UTC](https://discourse.julialang.org/t/how-to-plot-a-best-fit-curve-in-julia-when-the-data-is-a-time-series/79317 "2022-04-15T16:57:54Z")

</div>

This is a copy of my question here on Stack Overflow (unanswered at the time of writing). I’m trying to plot some measurements over time with a best-fit curve, using Julia’s plotting tools. There’s already a fairly good…

---

## [Creating a real-time film](https://discourse.julialang.org/t/creating-a-real-time-film/79467)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 7\
**Last updated:** [April 15, 2022, 1:35pm UTC](https://discourse.julialang.org/t/creating-a-real-time-film/79467 "2022-04-15T13:35:52Z")

</div>

Hi. I’m relatively new to Julia, but I’m writing a course for students that involves animating plots, so for example plotting a sequence of graphs showing a sine curve that is successively moved to the right, so that it …

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

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