# Visualization

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

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

**Page:** 40

---

## [Makie - Colorbar in plot recipe](https://discourse.julialang.org/t/makie-colorbar-in-plot-recipe/76564)

<div class="topic-metadata">

**Author:** [@rvezy](https://discourse.julialang.org/u/rvezy)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 11:30am UTC](https://discourse.julialang.org/t/makie-colorbar-in-plot-recipe/76564 "2022-12-09T11:30:30Z")

</div>

TLDR: Is it possible to add a Colorbar directly inside a plot recipe ? I have a graph-like data structure called MTG where each node stores a mesh and attributes. I made a recipe that extends the MeshViz.jl Viz recipe t…

---

## [Display lines handle with variable color inside legend in Makie](https://discourse.julialang.org/t/display-lines-handle-with-variable-color-inside-legend-in-makie/91447)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 9:33am UTC](https://discourse.julialang.org/t/display-lines-handle-with-variable-color-inside-legend-in-makie/91447 "2022-12-09T09:33:44Z")

</div>

using CairoMakie fig = Figure(resolution=(600,400)) ax = Axis(fig\[1, 1\]) xs = 0:0.01:10 ys = 0.5 .\* sin.(xs) lines!(ax, xs, ys, label="uniform color") lines!(ax, xs, ys .+ 1, color=ys.^2, label="variable color") axisl…

---

## [Save gif with a filename](https://discourse.julialang.org/t/save-gif-with-a-filename/91448)

<div class="topic-metadata">

**Author:** [@sky](https://discourse.julialang.org/u/sky)\
**Replies:** 2\
**Last updated:** [December 8, 2022, 10:28pm UTC](https://discourse.julialang.org/t/save-gif-with-a-filename/91448 "2022-12-08T22:28:22Z")

</div>

Hi everyone! I’m looking at creating gif in this link https://docs.juliaplots.org/latest/animations/ and I’m wondering how to save gif with a filename without using @animate. For example, the following code would gen…

---

## [Makie screen blanks after mouse click-drag](https://discourse.julialang.org/t/makie-screen-blanks-after-mouse-click-drag/15145)

<div class="topic-metadata">

**Author:** [@jac299792458](https://discourse.julialang.org/u/jac299792458)\
**Replies:** 3\
**Last updated:** [September 19, 2018, 3:14pm UTC](https://discourse.julialang.org/t/makie-screen-blanks-after-mouse-click-drag/15145 "2018-09-19T15:14:37Z")

</div>

All, Has anyone encountered their scene going blank when the mouse click and drag? It’s inconsistent for me, and doesn’t spit out any error messages. There might be a correlation between the error and part of the scen…

---

## [Relative text position in Makie in log scale](https://discourse.julialang.org/t/relative-text-position-in-makie-in-log-scale/91393)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [December 8, 2022, 7:43am UTC](https://discourse.julialang.org/t/relative-text-position-in-makie-in-log-scale/91393 "2022-12-08T07:43:13Z")

</div>

I want to specify the position of the text relative to the axis. I tried the following: fig = Figure() ax1 = Axis(fig\[1,1\], xscale=log10, yscale=log10) text!(ax1, 0.1, 0.9, text="testing", align=(:left, :top), space=:r…

---

## [Plot a line between two points](https://discourse.julialang.org/t/plot-a-line-between-two-points/91391)

<div class="topic-metadata">

**Author:** [@sky](https://discourse.julialang.org/u/sky)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 9:10pm UTC](https://discourse.julialang.org/t/plot-a-line-between-two-points/91391 "2022-12-07T21:10:11Z")

</div>

Hi everyone! I’m trying to plot a line segment between two points, for example (1,2) and (2,3). I did plot(\[1.0 2.0\],\[2.0 3.0\], linewidth=2,legend=:false) However, nothing showed up. I’m using Julia 1.6.7.

---

## [Makie - How does one plot a cube w/ rounded edges & corners?](https://discourse.julialang.org/t/makie-how-does-one-plot-a-cube-w-rounded-edges-corners/91360)

<div class="topic-metadata">

**Author:** [@Cougar](https://discourse.julialang.org/u/Cougar)\
**Replies:** 9\
**Last updated:** [December 7, 2022, 6:17pm UTC](https://discourse.julialang.org/t/makie-how-does-one-plot-a-cube-w-rounded-edges-corners/91360 "2022-12-07T18:17:56Z")

</div>

The following Julia program uses Makie to create the image shown below, a “cube with holes.” However, I would like to eliminate the holes, and also make the cube nearer the shape of an actual cube, with only slightly ro…

---

## [What is the 3D plotter package closest to the rgl R package?](https://discourse.julialang.org/t/what-is-the-3d-plotter-package-closest-to-the-rgl-r-package/79816)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 9\
**Last updated:** [December 5, 2022, 10:32pm UTC](https://discourse.julialang.org/t/what-is-the-3d-plotter-package-closest-to-the-rgl-r-package/79816 "2022-12-05T22:32:15Z")

</div>

Hello, I took a look at the available 3D plotter package in Julia but at first glance they look complicated to me (maybe I mislooked). I’m looking for a package similar to the rgl R package, that is, you just have to en…

---

## [Setting size (resolution) of makie plot when plotting?](https://discourse.julialang.org/t/setting-size-resolution-of-makie-plot-when-plotting/91148)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [December 5, 2022, 3:24pm UTC](https://discourse.julialang.org/t/setting-size-resolution-of-makie-plot-when-plotting/91148 "2022-12-05T15:24:50Z")

</div>

I want to change the size of a plot I am making in Makie. I try: graphplot(mygraph,resolution=(500,500)) but get an error: ERROR: setting resolution for scene via plot attribute not supported anymore Is there some ot…

---

## [Add a vertical line to an AoG plot](https://discourse.julialang.org/t/add-a-vertical-line-to-an-aog-plot/91123)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [December 2, 2022, 4:54am UTC](https://discourse.julialang.org/t/add-a-vertical-line-to-an-aog-plot/91123 "2022-12-02T04:54:01Z")

</div>

In ggplot2, I can add a vertical line like this. How to do it in AoG? ggplot(df, aes(x=x, y=y)) + geom\_point() + geom\_vline(xintercept=10)

---

## [Logarithmic x-axis of violin plots](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 9:20am UTC](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065 "2022-12-01T09:20:26Z")

</div>

Hello everyone, I’d like to plot a violin plot on a log10 x-axis, e.g.: using DataFrames, DataFramesMeta, CairoMakie df = DataFrame( x = repeat(10.0 .^ (-1:3), inner=10), y = rand(50) ) fig = Figure() ax = Axi…

---

## [Makie plots with color cycles and color palettes](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 11:04am UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745 "2022-11-30T11:04:47Z")

</div>

Makie seems really exciting, but when I tried it as part of my workflow, I found it lacks a rather basic feature. It seems that Makie does not have working color cycles (automatically picking up a new color for each new…

---

## [Makie: programmatic control of camera](https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 8\
**Last updated:** [November 29, 2022, 11:08am UTC](https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949 "2022-11-29T11:08:20Z")

</div>

I’m trying a 3d visualization and would like to write code to control the view position & angle, and render individual frames that I can assemble into a movie. I expected something like the following to work: julia\> usi…

---

## [Plotting to many points with CairoMakie results in empty rendered images](https://discourse.julialang.org/t/plotting-to-many-points-with-cairomakie-results-in-empty-rendered-images/90933)

<div class="topic-metadata">

**Author:** [@Ceboc](https://discourse.julialang.org/u/Ceboc)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 11:20am UTC](https://discourse.julialang.org/t/plotting-to-many-points-with-cairomakie-results-in-empty-rendered-images/90933 "2022-11-28T11:20:37Z")

</div>

Hi everybody, This is my first post here even when i’m a very “old” Julia user, I learned this language since v.0.3.2, and I’m very grateful with all the developers of Julia and Makie. My matter is this, I need to plot…

---

## [Formatting two plots to have the same x axis range](https://discourse.julialang.org/t/formatting-two-plots-to-have-the-same-x-axis-range/90882)

<div class="topic-metadata">

**Author:** [@eduardo-zambrano](https://discourse.julialang.org/u/eduardo-zambrano)\
**Replies:** 6\
**Last updated:** [November 27, 2022, 6:39pm UTC](https://discourse.julialang.org/t/formatting-two-plots-to-have-the-same-x-axis-range/90882 "2022-11-27T18:39:11Z")

</div>

Hi everyone, I have what I think is a very basic question about plotting using Cairo Makie. How can I make two plots I’m making have the same x axis range?. Here’s a working prototype that I think illustrates what I nee…

---

## [Hlines!() xmin/xmax do not accept Observable list in GLMakie](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 9:26pm UTC](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788 "2022-11-25T21:26:58Z")

</div>

I’m trying to plot horizontal (or vertical) lines using GLMakie, but I need both the lines and the endpoints to be an Observable of a list. I want to do something very similar to the documentation for hlines and vlines, …

---

## [PyPlot broken under 1.7?](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 9\
**Last updated:** [November 24, 2022, 4:02pm UTC](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971 "2022-11-24T16:02:46Z")

</div>

Pkg.add shows errors in PyCall and PyPlot, requesting precompiling. Pkg.precompile throws errors and requests Pkg.build(“PyCall”) This then throws the erros below. Julia Version 1.7.0 Commit 3bf9d17731 (2021-11-30 12:…

---

## [Problem installing Makie package](https://discourse.julialang.org/t/problem-installing-makie-package/90643)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 6:50pm UTC](https://discourse.julialang.org/t/problem-installing-makie-package/90643 "2022-11-23T18:50:17Z")

</div>

In my class one particular student is having a difficulty installing Makie. This is strange as all of the others appear to have installed it fine on identical hardware in a school lab. If I’m reading it correctly the i…

---

## [PlotlyJS.jl question](https://discourse.julialang.org/t/plotlyjs-jl-question/90403)

<div class="topic-metadata">

**Author:** [@Djamil\_Lakhdar-Hamin](https://discourse.julialang.org/u/Djamil_Lakhdar-Hamin)\
**Replies:** 7\
**Last updated:** [November 23, 2022, 5:43pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-question/90403 "2022-11-23T17:43:20Z")

</div>

What if I am trying to animate the evolution of a surface after the execution of some command that modifies the z component of the surface? I have written the following but the trace does not update when you run the code…

---

## [Equivalent to matplotlib kwarg "origin" in Plots.jl](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670)

<div class="topic-metadata">

**Author:** [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 7:08am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670 "2022-11-23T07:08:38Z")

</div>

Hello everyone, In matplotlib you can control the origin of imshow plots using the “origin” kwarg: plt.imshow(image,origin='lower') In Julia you can show an image using Plots.heatmap(image). But, is there an equivalen…

---

## [Labels for levels in contour plot (Plots.jl)](https://discourse.julialang.org/t/labels-for-levels-in-contour-plot-plots-jl/8266)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 10\
**Last updated:** [November 21, 2022, 5:49pm UTC](https://discourse.julialang.org/t/labels-for-levels-in-contour-plot-plots-jl/8266 "2022-11-21T17:49:42Z")

</div>

I would like to add custom labels to a contour plot, replacing the levels. Is this possible? MWE: using Plots; pyplot() # other backend OK if necessary using StatsBase using Distributions using StatsFuns N = 100000 z =…

---

## [How to make stack graph become side by side with this dataset in julia language?](https://discourse.julialang.org/t/how-to-make-stack-graph-become-side-by-side-with-this-dataset-in-julia-language/90586)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 21, 2022, 1:01pm UTC](https://discourse.julialang.org/t/how-to-make-stack-graph-become-side-by-side-with-this-dataset-in-julia-language/90586 "2022-11-21T13:01:23Z")

</div>

I have got this dataset in julia: import Downloads using DLMReader, VegaLite, InMemoryDatasets data=Downloads.download("https://raw.githubusercontent.com/akshdfyehd/salary/main/ds\_salaries.csv") ds=filereader(data,em…

---

## [A headless non-interactive JSServe and WGLMakie server?](https://discourse.julialang.org/t/a-headless-non-interactive-jsserve-and-wglmakie-server/90549)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 2:18pm UTC](https://discourse.julialang.org/t/a-headless-non-interactive-jsserve-and-wglmakie-server/90549 "2022-11-21T14:18:51Z")

</div>

I have a JSServe+WGLMakie visualization that works wonderfully when launched from the REPL. It is basically little more than: app = App do() dom = md"test" # and some plots that I deleted return JSServe.DOM.div(…

---

## [Update text value when changing an Observable in GLMakie](https://discourse.julialang.org/t/update-text-value-when-changing-an-observable-in-glmakie/90572)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 4\
**Last updated:** [November 21, 2022, 12:07pm UTC](https://discourse.julialang.org/t/update-text-value-when-changing-an-observable-in-glmakie/90572 "2022-11-21T12:07:44Z")

</div>

I’m trying to update a text value to reflect a change in one or more Observable. I’ve tried to do this a couple of ways. If the Observable is obs = Observable(1.0) I’ve tried putting it in a Label Label(fig, "$(obs)"…

---

## [How to trigger non-blocking long calculations in Makie?](https://discourse.julialang.org/t/how-to-trigger-non-blocking-long-calculations-in-makie/90496)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-trigger-non-blocking-long-calculations-in-makie/90496 "2022-11-19T13:48:16Z")

</div>

I want to do the following in Makie: press a button which triggers long computation that interactively updates the plot. I can’t seem to figure it out. Here is a MWE: This example uses the bool observable running to tra…

---

## [Real time plotting with Gadfly (Vehicle Trajectory Plotting)](https://discourse.julialang.org/t/real-time-plotting-with-gadfly-vehicle-trajectory-plotting/72333)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 9:36pm UTC](https://discourse.julialang.org/t/real-time-plotting-with-gadfly-vehicle-trajectory-plotting/72333 "2022-11-18T21:36:11Z")

</div>

Hello, I would like to plot vehicle trajectory on a cartesian coordinate system in near-real time from the data that is coming from a datastream. Is it possible to do this in Gadfly. My requirement is to push latest o…

---

## [How to draw three box plot for each job title in each year from 2020,2021,2022(give up on vegalite, any package as long as they can work, no makie cz my computer can't install it)?](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-give-up-on-vegalite-any-package-as-long-as-they-can-work-no-makie-cz-my-computer-cant-install-it/90448)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 18, 2022, 1:09pm UTC](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-give-up-on-vegalite-any-package-as-long-as-they-can-work-no-makie-cz-my-computer-cant-install-it/90448 "2022-11-18T13:09:58Z")

</div>

Hi, I have got this dataset which comes from the following code: import Downloads using DLMReader, VegaLite, InMemoryDatasets data=Downloads.download("https://raw.githubusercontent.com/akshdfyehd/salary/main/ds\_salarie…

---

## [Makie how to know if a figure is displayed or not](https://discourse.julialang.org/t/makie-how-to-know-if-a-figure-is-displayed-or-not/90432)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 0\
**Last updated:** [November 18, 2022, 9:04am UTC](https://discourse.julialang.org/t/makie-how-to-know-if-a-figure-is-displayed-or-not/90432 "2022-11-18T09:04:13Z")

</div>

Hello, I m doing a GUI in makie that calls some timer to refresh information displayed. I would like to close these timers either if the figure is not displayed or the closing cross button is clicked. So is there a meth…

---

## [Lines connecting data points don't follow order changed by sorter function (AoG)](https://discourse.julialang.org/t/lines-connecting-data-points-dont-follow-order-changed-by-sorter-function-aog/90395)

<div class="topic-metadata">

**Author:** [@ristretti](https://discourse.julialang.org/u/ristretti)\
**Replies:** 0\
**Last updated:** [November 17, 2022, 10:47am UTC](https://discourse.julialang.org/t/lines-connecting-data-points-dont-follow-order-changed-by-sorter-function-aog/90395 "2022-11-17T10:47:57Z")

</div>

Hello everyone =) I am trying to connect data points across a categorical variable on the x axis. With the default order the points are connected as expected (with a line from 1 to 2 and a line from 2 to 3). When i chan…

---

## [CairoMakie - SVG export options](https://discourse.julialang.org/t/cairomakie-svg-export-options/90348)

<div class="topic-metadata">

**Author:** [@cripcate](https://discourse.julialang.org/u/cripcate)\
**Replies:** 7\
**Last updated:** [November 16, 2022, 9:02pm UTC](https://discourse.julialang.org/t/cairomakie-svg-export-options/90348 "2022-11-16T21:02:14Z")

</div>

Hi all, when saving Makie plots as svg, all text is converted to curves (i am using Arial font in case that matters). I would like to have the text as actual text instead so that it is easier to edit later on using oth…

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

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