# Visualization

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

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

**Page:** 70

---

## [Current advice on stacked bar plots with Makie](https://discourse.julialang.org/t/current-advice-on-stacked-bar-plots-with-makie/57095)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 2\
**Last updated:** [March 14, 2021, 1:52am UTC](https://discourse.julialang.org/t/current-advice-on-stacked-bar-plots-with-makie/57095 "2021-03-14T01:52:41Z")

</div>

This functionality used to reside in StatsMakie, but AlgebraOfGraphics doesn’t seem to have it. I also can’t find it in the base Makie docs. In StatsPlots, this would be: julia\> using DataFrames, StatsPlots julia\> df …

---

## [Plots with a secondary, non-linear, axis scale](https://discourse.julialang.org/t/plots-with-a-secondary-non-linear-axis-scale/56661)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 3\
**Last updated:** [March 13, 2021, 5:21pm UTC](https://discourse.julialang.org/t/plots-with-a-secondary-non-linear-axis-scale/56661 "2021-03-13T17:21:01Z")

</div>

Based on this stack overflow post, a non-linear invertible function can be used to define a secondary PyPlot axis scale. Two questions, if you will: (1) Is it possible to do this with other plot backends? (2) If inst…

---

## [Categorical heatmap](https://discourse.julialang.org/t/categorical-heatmap/56931)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [March 12, 2021, 11:19am UTC](https://discourse.julialang.org/t/categorical-heatmap/56931 "2021-03-12T11:19:58Z")

</div>

Can I use AoG for a categorical heatmap? using RDatasets let diamonds = dataset("ggplot2", "diamonds") p = data(diamonds) \* mapping(:Cut =\> categorical, :Color =\> categorical, color=:Price) \* visual(Heatmap) draw(…

---

## [How to use heatmap(values)?](https://discourse.julialang.org/t/how-to-use-heatmap-values/57043)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [March 12, 2021, 8:36pm UTC](https://discourse.julialang.org/t/how-to-use-heatmap-values/57043 "2021-03-12T20:36:21Z")

</div>

heatmap has a heatmap(values) function but there isn’t an example for it in the docs. How can I use it?

---

## [Makie: New Figure w/ multiple LScenes auto-resizing when undesired](https://discourse.julialang.org/t/makie-new-figure-w-multiple-lscenes-auto-resizing-when-undesired/56975)

<div class="topic-metadata">

**Author:** [@zobot](https://discourse.julialang.org/u/zobot)\
**Replies:** 6\
**Last updated:** [March 12, 2021, 6:44pm UTC](https://discourse.julialang.org/t/makie-new-figure-w-multiple-lscenes-auto-resizing-when-undesired/56975 "2021-03-12T18:44:43Z")

</div>

Hi, I’m trying to learn the new Figure system to combine animated LScenes with contour plots. I generate a curve for the camera eyepos and lookat and values for the plots for each frame. I’ve figured out all of that but …

---

## [Analog of markevery in Plots.jl?](https://discourse.julialang.org/t/analog-of-markevery-in-plots-jl/10269)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 10\
**Last updated:** [March 9, 2021, 11:05pm UTC](https://discourse.julialang.org/t/analog-of-markevery-in-plots-jl/10269 "2021-03-09T23:05:26Z")

</div>

Matplotlib had a nice feature, markevery=n, that, for a bivariate data set, allowed you to only plot every n-th point. This was quite useful if you had an abundance of data and wanted to reduce the graphical intensity o…

---

## [Grouping for color or markers in CairoMakie](https://discourse.julialang.org/t/grouping-for-color-or-markers-in-cairomakie/56728)

<div class="topic-metadata">

**Author:** [@vjd](https://discourse.julialang.org/u/vjd)\
**Replies:** 6\
**Last updated:** [March 8, 2021, 2:52pm UTC](https://discourse.julialang.org/t/grouping-for-color-or-markers-in-cairomakie/56728 "2021-03-08T14:52:43Z")

</div>

is there a way to groupby a dataframe column passed into color or marker such that each group gets a unique element? or does this have to be done as different scatter! calls for each group ccf = DataFrame(a = 1:4, …

---

## [AlgebraOfGraphics: how to add xlabel and ylabel](https://discourse.julialang.org/t/algebraofgraphics-how-to-add-xlabel-and-ylabel/56408)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 2\
**Last updated:** [March 8, 2021, 12:29pm UTC](https://discourse.julialang.org/t/algebraofgraphics-how-to-add-xlabel-and-ylabel/56408 "2021-03-08T12:29:52Z")

</div>

I couldn’t find an example of how to add an x-axis label to the algebra flow. For example, in this simple plot, how would I add a “Number of cylinders” x label to both subfigures? using RDatasets: dataset using Algebra…

---

## [Converting region of interest (ROI) polygon to a mask](https://discourse.julialang.org/t/converting-region-of-interest-roi-polygon-to-a-mask/56545)

<div class="topic-metadata">

**Author:** [@mateuszbaran](https://discourse.julialang.org/u/mateuszbaran)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 10:30am UTC](https://discourse.julialang.org/t/converting-region-of-interest-roi-polygon-to-a-mask/56545 "2021-03-07T10:30:33Z")

</div>

I’d like to share a simple piece of code for converting a region of interest given by vertices of a polygon to a binary mask in Julia. This turned out to be more difficult than I expected so someone else may find this us…

---

## [Axis Label Colors in Plots.jl](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 3:26am UTC](https://discourse.julialang.org/t/axis-label-colors-in-plots-jl/10391 "2021-03-07T03:26:43Z")

</div>

How do I control the color of the axes labels in Plots.jl?

---

## [Using ColorSchemes](https://discourse.julialang.org/t/using-colorschemes/56604)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 7\
**Last updated:** [March 6, 2021, 12:12pm UTC](https://discourse.julialang.org/t/using-colorschemes/56604 "2021-03-06T12:12:44Z")

</div>

How do I import all the color schemes from ColorSchemes in one go? Thanks. P.S. This code used to work before. using Plots, Random cs = collect(keys(colorschemes)) cp = first(Random.shuffle!(cs)) plot(x, y, palette =…

---

## [Is there a way to do "digital phosphor" type of plots for time series data?](https://discourse.julialang.org/t/is-there-a-way-to-do-digital-phosphor-type-of-plots-for-time-series-data/56490)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 16\
**Last updated:** [March 6, 2021, 11:50am UTC](https://discourse.julialang.org/t/is-there-a-way-to-do-digital-phosphor-type-of-plots-for-time-series-data/56490 "2021-03-06T11:50:04Z")

</div>

Modern (digital) oscilloscopes usually perform a simulation of a phosphor-based CRT. These are described by various terms like digital phosphor, intensity grading, color temperature display, etc. These algorithms don’t …

---

## [How can I read an animated GIF? / Pluto](https://discourse.julialang.org/t/how-can-i-read-an-animated-gif-pluto/56606)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 3\
**Last updated:** [March 6, 2021, 11:10am UTC](https://discourse.julialang.org/t/how-can-i-read-an-animated-gif-pluto/56606 "2021-03-06T11:10:32Z")

</div>

I would like to read in an animated GIF file, and get individual frames from it. I would also like to display it as an animation on a Pluto notebook.

---

## [What are vmin and vmax?](https://discourse.julialang.org/t/what-are-vmin-and-vmax/56592)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 10:02pm UTC](https://discourse.julialang.org/t/what-are-vmin-and-vmax/56592 "2021-03-05T22:02:05Z")

</div>

What does the v in vmin and vmax stand for, in the get\_ticks function signature? What do they mean and how are they calculated?

---

## [Surface plot not working in Makie](https://discourse.julialang.org/t/surface-plot-not-working-in-makie/56488)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 1\
**Last updated:** [March 4, 2021, 5:43pm UTC](https://discourse.julialang.org/t/surface-plot-not-working-in-makie/56488 "2021-03-04T17:43:24Z")

</div>

Hello everyone. I am having troubles to plot a surface in Makie. Here is a MWE: \]add GLMakie using Makie a = 1:0.1:20; b = 5:0.05:30; c = \[x\*log10(y) for x in a, y in b\]; x,y,z = surface(a,b,c) this gets me: Error s…

---

## [Visualizing a mesh-wise quantity](https://discourse.julialang.org/t/visualizing-a-mesh-wise-quantity/56458)

<div class="topic-metadata">

**Author:** [@Sean\_McBane](https://discourse.julialang.org/u/Sean_McBane)\
**Replies:** 5\
**Last updated:** [March 4, 2021, 2:55am UTC](https://discourse.julialang.org/t/visualizing-a-mesh-wise-quantity/56458 "2021-03-04T02:55:21Z")

</div>

My problem is as follows: I want to visualize a quantity which varies over a domain, but is piecewise constant over subdomains, each of which has its own mesh. I’ve been doing this by saving the value as cell-centered va…

---

## [How to plot a graph using the "for"?](https://discourse.julialang.org/t/how-to-plot-a-graph-using-the-for/56115)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 9\
**Last updated:** [March 3, 2021, 4:38pm UTC](https://discourse.julialang.org/t/how-to-plot-a-graph-using-the-for/56115 "2021-03-03T16:38:45Z")

</div>

Hello everybody In this example I put only the results of the variable r and managed to plot the graph using JuMP, Plots r = \[69.60, 17.39, 0, 0\],\[0, 8.8, 2.1, 0\],\[0, 0, 8.8, 1.9\], \[16, 3.9, 0,0\] j = sum(r) x = T y = …

---

## [MarkerElement allowable shapes](https://discourse.julialang.org/t/markerelement-allowable-shapes/56356)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 8:27pm UTC](https://discourse.julialang.org/t/markerelement-allowable-shapes/56356 "2021-03-02T20:27:01Z")

</div>

I was searching for which shape symbols are allowable in MarkerElements for the marker kwarg. I identified :circle was what I needed, but wasn’t able to find where the possibilities are documented. Using characters like o…

---

## [ANN: New interactive Plots.jl backend for large datasets](https://discourse.julialang.org/t/ann-new-interactive-plots-jl-backend-for-large-datasets/1442)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 7\
**Last updated:** [March 2, 2021, 1:22pm UTC](https://discourse.julialang.org/t/ann-new-interactive-plots-jl-backend-for-large-datasets/1442 "2021-03-02T13:22:42Z")

</div>

About InspectDR.jl Fast plotting with a responsive GUI (optional). Target: Quickly identify design/simulation issues & glitches in order to shorten design iterations. Pros Relatively short load times / time to first …

---

## [How to plot distinct plots in grid layout](https://discourse.julialang.org/t/how-to-plot-distinct-plots-in-grid-layout/56242)

<div class="topic-metadata">

**Author:** [@xyz1](https://discourse.julialang.org/u/xyz1)\
**Replies:** 3\
**Last updated:** [March 1, 2021, 12:59pm UTC](https://discourse.julialang.org/t/how-to-plot-distinct-plots-in-grid-layout/56242 "2021-03-01T12:59:04Z")

</div>

Hi, I’m trying to visualize some data with Plots.jl and even with the amazing Plots documentation i am unable to plot a grid (2,2) of plots. Specifically I would like to create something like using Plots plot(rand(100,…

---

## [Extracting xticks from a plot handle](https://discourse.julialang.org/t/extracting-xticks-from-a-plot-handle/56183)

<div class="topic-metadata">

**Author:** [@matvil](https://discourse.julialang.org/u/matvil)\
**Replies:** 0\
**Last updated:** [February 28, 2021, 11:46am UTC](https://discourse.julialang.org/t/extracting-xticks-from-a-plot-handle/56183 "2021-02-28T11:46:20Z")

</div>

I would like to extract the vector of xticks values from a plot. I am using the GR backend. For xlim I can do this: h = plot(randn(10)) xlims(h) # returns a tuple with the two limits xlims!(h, (-10,10)) # modifies xl…

---

## [How to adjust the X-axis order of boxplot with StatsPlots.jl](https://discourse.julialang.org/t/how-to-adjust-the-x-axis-order-of-boxplot-with-statsplots-jl/56065)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 9\
**Last updated:** [February 27, 2021, 7:37am UTC](https://discourse.julialang.org/t/how-to-adjust-the-x-axis-order-of-boxplot-with-statsplots-jl/56065 "2021-02-27T07:37:24Z")

</div>

using Plots, StatsPlots, DataFrames df = DataFrame( id=repeat(\[3, 17, 21\], inner=10), value=randn(30) ) @df df boxplot(string.(:id), :value, fillalpha=0.75, linewidth=1) The result is I want the box to be 3…

---

## [Makie limits in a 3D scene](https://discourse.julialang.org/t/makie-limits-in-a-3d-scene/56099)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 5\
**Last updated:** [February 26, 2021, 5:24pm UTC](https://discourse.julialang.org/t/makie-limits-in-a-3d-scene/56099 "2021-02-26T17:24:50Z")

</div>

Hello, two questions. I found that if I define the following limits for an LScene, let’s say something like surface(-1:0.1:1, -1:0.1:1, 2\*rand(21,21) .-1, limits = FRect((-1,-1,-1), (2,2,2))) I can get limits for x,y,…

---

## [Makie depth order sorting](https://discourse.julialang.org/t/makie-depth-order-sorting/56103)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 2\
**Last updated:** [February 26, 2021, 5:18pm UTC](https://discourse.julialang.org/t/makie-depth-order-sorting/56103 "2021-02-26T17:18:59Z")

</div>

Hello, I’m currently plotting several transparent surfaces in a LScene in order to get the appropriate depth order I need to plot them in a specific order, lets say for two surfaces, one in the back and one in the front…

---

## [Flag colors](https://discourse.julialang.org/t/flag-colors/55853)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 7\
**Last updated:** [February 25, 2021, 7:06pm UTC](https://discourse.julialang.org/t/flag-colors/55853 "2021-02-25T19:06:35Z")

</div>

I made another dumb thing. Here’s a collection of flag colors. Do you think something like this would be useful to you? Is this a reasonable way to use it, or should it hook in to some other Colors functionality?

---

## [Makie record without live plotting / sleep = false not implemented](https://discourse.julialang.org/t/makie-record-without-live-plotting-sleep-false-not-implemented/55991)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 2\
**Last updated:** [February 25, 2021, 3:17pm UTC](https://discourse.julialang.org/t/makie-record-without-live-plotting-sleep-false-not-implemented/55991 "2021-02-25T15:17:23Z")

</div>

Related to this question I did look into the source code and it seems like the option sleep = true or false is not implemented in order to avoid the live plotting. Is there another way to obtain the same effect ?

---

## [Countour/Contourf](https://discourse.julialang.org/t/countour-contourf/55933)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 16\
**Last updated:** [February 25, 2021, 12:36pm UTC](https://discourse.julialang.org/t/countour-contourf/55933 "2021-02-25T12:36:37Z")

</div>

Plots.Controur() allows x,y,z to be Vector{Float64}. AbstractPlotting.Contour() chokes when I swap out the Plots version for the Makie version. ERROR: There was no \`AbstractPlotting.convert\_arguments\` overload found fo…

---

## [Makie record a video with audio](https://discourse.julialang.org/t/makie-record-a-video-with-audio/55990)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 7:31am UTC](https://discourse.julialang.org/t/makie-record-a-video-with-audio/55990 "2021-02-25T07:31:20Z")

</div>

Hello, I know that the the record function one cannot include also some audio. Any suggestions for a work around ?

---

## [Makie.jl: Limiting height of Colorbar to that of a nearby equal-aspect axis](https://discourse.julialang.org/t/makie-jl-limiting-height-of-colorbar-to-that-of-a-nearby-equal-aspect-axis/55876)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [February 25, 2021, 6:57am UTC](https://discourse.julialang.org/t/makie-jl-limiting-height-of-colorbar-to-that-of-a-nearby-equal-aspect-axis/55876 "2021-02-25T06:57:52Z")

</div>

Hi there, I have the following code: fig, abmstepper = abm\_plot(model) ax, hm = heatmap(fig\[1,2\], model.sugar\_capacities; colormap=cgrad(:thermal)) ax.aspect = AxisAspect(1) # equal aspect ratio for heatmap Colorbar(fi…

---

## [CairoMakie and Fontconfig](https://discourse.julialang.org/t/cairomakie-and-fontconfig/55931)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 16\
**Last updated:** [February 24, 2021, 11:49pm UTC](https://discourse.julialang.org/t/cairomakie-and-fontconfig/55931 "2021-02-24T23:49:30Z")

</div>

Hi all. Just wondering if this is a known problem that can be easily fixed, or if it’s a bug. Using Github CI tools, we use Documenter.jl to run and build examples. Recently all of our plotting has moved over to Makie …

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

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