# Visualization

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

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

**Page:** 53

---

## [Apparent inconsistent plotting of histograms in Gadfly](https://discourse.julialang.org/t/apparent-inconsistent-plotting-of-histograms-in-gadfly/77953)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 2:27am UTC](https://discourse.julialang.org/t/apparent-inconsistent-plotting-of-histograms-in-gadfly/77953 "2022-03-18T02:27:39Z")

</div>

Why is the histogram for the WildType normalised data differently when plotted with other data compared to being plotted alone? This plot command plot(df\[df.genotype .== "WildType", :\], x=:level, Geom.histogram(bincoun…

---

## [How to use AlgebraOfgraphics's sorter](https://discourse.julialang.org/t/how-to-use-algebraofgraphicss-sorter/78030)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 2:35pm UTC](https://discourse.julialang.org/t/how-to-use-algebraofgraphicss-sorter/78030 "2022-03-17T14:35:40Z")

</div>

It is not clear to me from the sorter documentation how to use the Algebra of Graphics’s sorter. My current attempt is: plt \*= mapping(marker=:l) |\> sorter(Vector(1:13) .|\> string) Anyone who knows how to use it?

---

## [Makie - Multi Sequence Alignment Scatterplot](https://discourse.julialang.org/t/makie-multi-sequence-alignment-scatterplot/77932)

<div class="topic-metadata">

**Author:** [@timoleistner](https://discourse.julialang.org/u/timoleistner)\
**Replies:** 3\
**Last updated:** [March 16, 2022, 9:44am UTC](https://discourse.julialang.org/t/makie-multi-sequence-alignment-scatterplot/77932 "2022-03-16T09:44:59Z")

</div>

Im trying to visualize a multi sequence alignment with makies scatterplot. The first idea was to overlap a heatmap with a scatterplot but I’ve found that overlapping markers with either a :rect symbol or a unicode full …

---

## [Makie: Create image (as .png) of scatter projected to x-y plane?](https://discourse.julialang.org/t/makie-create-image-as-png-of-scatter-projected-to-x-y-plane/77309)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 8\
**Last updated:** [March 16, 2022, 8:20am UTC](https://discourse.julialang.org/t/makie-create-image-as-png-of-scatter-projected-to-x-y-plane/77309 "2022-03-16T08:20:45Z")

</div>

Is there (I’m sure there is…) a way to produce an image (eg .png) of a Makie scatter plot projected “down” on the X-Y plane, ie like setting z to 0 and looking down from “sufficient height”. No perspective wanted. I’m pr…

---

## [Is x-axis linking ignored in Algebra of Graphics?](https://discourse.julialang.org/t/is-x-axis-linking-ignored-in-algebra-of-graphics/76111)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 7:42pm UTC](https://discourse.julialang.org/t/is-x-axis-linking-ignored-in-algebra-of-graphics/76111 "2022-03-15T19:42:40Z")

</div>

I want to plot a density for different groups that might have very different domains in AoG. My understanding is that in the following the x axes should be independent dd = DataFrame(x = \[rand(10)..., 10 .+ rand(10)...\]…

---

## [Disable legend in AlgebraOfGraphics](https://discourse.julialang.org/t/disable-legend-in-algebraofgraphics/77906)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 10:05am UTC](https://discourse.julialang.org/t/disable-legend-in-algebraofgraphics/77906 "2022-03-15T10:05:45Z")

</div>

Hi everyone, is there a quick way to disable the legend for a plot created with AOG? I know that you can pass legend attributes to draw, like so: d = (;x=\[1,2,3\], y=\[1,2,3\], c=\["a", "b", "c"\]) p = data(d) \* mapping(:x…

---

## [How to plot on a square grid with specific colours?](https://discourse.julialang.org/t/how-to-plot-on-a-square-grid-with-specific-colours/77801)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 13, 2022, 6:41am UTC](https://discourse.julialang.org/t/how-to-plot-on-a-square-grid-with-specific-colours/77801 "2022-03-13T06:41:29Z")

</div>

I am trying to plot on a 2D grid the presence of “agents” (integers) on a certain plot, but I can"t get: how to associate a specific colour to a certain cell integer how to force the plot to be squared Here it is what…

---

## [How do I create a PlotTheme with larger fonts in the legend](https://discourse.julialang.org/t/how-do-i-create-a-plottheme-with-larger-fonts-in-the-legend/76877)

<div class="topic-metadata">

**Author:** [@cooperrc](https://discourse.julialang.org/u/cooperrc)\
**Replies:** 3\
**Last updated:** [March 11, 2022, 8:45pm UTC](https://discourse.julialang.org/t/how-do-i-create-a-plottheme-with-larger-fonts-in-the-legend/76877 "2022-03-11T20:45:07Z")

</div>

Greetings, I started using Julia a week ago and I’m documenting my transition from a background in MATLAB + Python to Julia at cooperrc.github.io. I found myself stuck today when I tried to build my own theme and add i…

---

## [Access the xticks of a Plots.jl plot](https://discourse.julialang.org/t/access-the-xticks-of-a-plots-jl-plot/77676)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [March 10, 2022, 9:31am UTC](https://discourse.julialang.org/t/access-the-xticks-of-a-plots-jl-plot/77676 "2022-03-10T09:31:36Z")

</div>

How can I access the current xticks of a figure created by Plots.jl?

---

## [How to use ElectronDisplay to display table](https://discourse.julialang.org/t/how-to-use-electrondisplay-to-display-table/77648)

<div class="topic-metadata">

**Author:** [@realkrantz](https://discourse.julialang.org/u/realkrantz)\
**Replies:** 0\
**Last updated:** [March 9, 2022, 6:19pm UTC](https://discourse.julialang.org/t/how-to-use-electrondisplay-to-display-table/77648 "2022-03-09T18:19:44Z")

</div>

\#This works: julia\> using VegaLite, VegaDatasets, ElectronDisplay julia\> dataset("cars") |\> @vlplot(:point, x=:Acceleration, y=:Miles\_per\_Gallon, color=:Origin) #But this does not work: julia\> using DataFrames, Elect…

---

## [Plots.jl animation issue: dyld: Library not loaded](https://discourse.julialang.org/t/plots-jl-animation-issue-dyld-library-not-loaded/77633)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [March 9, 2022, 2:13pm UTC](https://discourse.julialang.org/t/plots-jl-animation-issue-dyld-library-not-loaded/77633 "2022-03-09T14:13:53Z")

</div>

I’ve started having problems with animating with Plots.jl that I previously had no issues with. For the example: using Plots @userplot CirclePlot @recipe function f(cp::CirclePlot) x, y, i = cp.args n = length…

---

## [Makie: Mixing "spaces" while plotting](https://discourse.julialang.org/t/makie-mixing-spaces-while-plotting/77581)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 6\
**Last updated:** [March 9, 2022, 10:24am UTC](https://discourse.julialang.org/t/makie-mixing-spaces-while-plotting/77581 "2022-03-09T10:24:57Z")

</div>

Hi, I have a quite simple question: Is there currently a way to plot something so that you can specify x and y coordinates in different spaces (i.e. x=10 absolute units; y=0.5 relative units w.r.t. the scene/axis height)…

---

## [How to project a coordinate system on an image?](https://discourse.julialang.org/t/how-to-project-a-coordinate-system-on-an-image/77467)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 9\
**Last updated:** [March 9, 2022, 10:16am UTC](https://discourse.julialang.org/t/how-to-project-a-coordinate-system-on-an-image/77467 "2022-03-09T10:16:47Z")

</div>

Hello, I’m trying to create a graph of some cities in Europe, I have tried guessing where cities would be but without much accuracy, and got an idea to just use an image and coordinate system to get direct coordinates an…

---

## [Makie examples in PortAudio](https://discourse.julialang.org/t/makie-examples-in-portaudio/77614)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 0\
**Last updated:** [March 9, 2022, 1:40am UTC](https://discourse.julialang.org/t/makie-examples-in-portaudio/77614 "2022-03-09T01:40:11Z")

</div>

I’m trying to get all of the examples in the PortAudio repo to run as part of CI. I’ve gotten most of the examples to run but I’m struggling with the two examples that use Makie. What I’ve got so far is in this PR: https…

---

## [How to add grid lines on top of a heatmap in Makie?](https://discourse.julialang.org/t/how-to-add-grid-lines-on-top-of-a-heatmap-in-makie/77578)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 2\
**Last updated:** [March 8, 2022, 12:30pm UTC](https://discourse.julialang.org/t/how-to-add-grid-lines-on-top-of-a-heatmap-in-makie/77578 "2022-03-08T12:30:52Z")

</div>

I have some code which boils down to heatmap(matrix, colormap=Reverse(:grays)) and produces this plot: There’s a lot of white in the plot, and I’d like to emphasize that it’s not empty space, so I wanted to add grid …

---

## [Too late for Makie name change?](https://discourse.julialang.org/t/too-late-for-makie-name-change/76979)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 9\
**Last updated:** [March 5, 2022, 8:59pm UTC](https://discourse.julialang.org/t/too-late-for-makie-name-change/76979 "2022-03-05T20:59:01Z")

</div>

I think most new Julia users start plotting with Plots.jl because the name makes sense. Any chance of reviving this old plea?

---

## [Makie - Colorbar crashing saving figure](https://discourse.julialang.org/t/makie-colorbar-crashing-saving-figure/76983)

<div class="topic-metadata">

**Author:** [@Herve](https://discourse.julialang.org/u/Herve)\
**Replies:** 6\
**Last updated:** [March 4, 2022, 5:09pm UTC](https://discourse.julialang.org/t/makie-colorbar-crashing-saving-figure/76983 "2022-03-04T17:09:48Z")

</div>

Hi, I am using Makie for displaying finite element computations with Gridap.jl. Works fine with GLMakie, but the use of “colorbar” crashes with CairoMakie (with exactly the same code as for GLMakie). Any clue ?

---

## [Specific fractions w/ LaTeXStrings](https://discourse.julialang.org/t/specific-fractions-w-latexstrings/77355)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 6\
**Last updated:** [March 3, 2022, 8:32pm UTC](https://discourse.julialang.org/t/specific-fractions-w-latexstrings/77355 "2022-03-03T20:32:57Z")

</div>

I am not fully satisfied with the text I can produce with LaTeXStrings. Some (/many) commands only produce a question mark. Which LaTeX commands are available? Is it possible to load LaTeX packages? LaTeX has support…

---

## [Colorbar\_title position & orientation](https://discourse.julialang.org/t/colorbar-title-position-orientation/42715)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 4\
**Last updated:** [March 3, 2022, 7:15pm UTC](https://discourse.julialang.org/t/colorbar-title-position-orientation/42715 "2022-03-03T19:15:02Z")

</div>

When dealing with several 2.5 d plots at the same time, it’s nice to indicate what the colorbar stands for. To do so, we have the colorbar\_title attribute, now even supported by GR. I assume, with long titles in mind, i…

---

## [Interact.jl PyPlot, HTML](https://discourse.julialang.org/t/interact-jl-pyplot-html/77343)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 0\
**Last updated:** [March 3, 2022, 9:46am UTC](https://discourse.julialang.org/t/interact-jl-pyplot-html/77343 "2022-03-03T09:46:15Z")

</div>

Hey, I use jupyter lab and julia 1.6. I have png files in a directory, and I would like (using a slider or the keyboard) to display all png files one by one. I can make a gif but I would like to explore my files forwar…

---

## [Heatmap get scrambled](https://discourse.julialang.org/t/heatmap-get-scrambled/77292)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 5\
**Last updated:** [March 2, 2022, 3:50pm UTC](https://discourse.julialang.org/t/heatmap-get-scrambled/77292 "2022-03-02T15:50:55Z")

</div>

When I try to implement a solution from my last question, I run into new problems: p1 and p2 (generated below) result in two completely different plots. I expected that they would look very similar except for the fact th…

---

## [Heatmap with irregularly spaced grids](https://discourse.julialang.org/t/heatmap-with-irregularly-spaced-grids/77259)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 9\
**Last updated:** [March 2, 2022, 10:59am UTC](https://discourse.julialang.org/t/heatmap-with-irregularly-spaced-grids/77259 "2022-03-02T10:59:03Z")

</div>

I’m trying to create a figure with two heatmaps where the x and y variables are irregularly spaced, the scale of the colors are the same in both heatmaps, and there is only one colorbar. In Python, I would do import …

---

## [Putting background image to Makie plot](https://discourse.julialang.org/t/putting-background-image-to-makie-plot/77260)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 10:07pm UTC](https://discourse.julialang.org/t/putting-background-image-to-makie-plot/77260 "2022-03-01T22:07:49Z")

</div>

I am trying to place a PNG image as a background of a Makie plot. The goal is to compare a curve plotted by lines!() with some curves in the image. However I’m having a hard time finding an example. Is this possible?

---

## [Plots -- new syntax for marker stroke color?](https://discourse.julialang.org/t/plots-new-syntax-for-marker-stroke-color/70552)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [February 28, 2022, 10:44am UTC](https://discourse.julialang.org/t/plots-new-syntax-for-marker-stroke-color/70552 "2022-02-28T10:44:46Z")

</div>

I want to set the markerstrokecolor equal to the markercolor to make the label nice scatter!(.., mc=colTs,msc=colTs,...) – I’ve done so in this figure: If I don’t specify the markerstrokecolor and set it equal to t…

---

## [What is the difference between Graphs and GraphMakie?](https://discourse.julialang.org/t/what-is-the-difference-between-graphs-and-graphmakie/77144)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 2\
**Last updated:** [February 27, 2022, 11:35am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-graphs-and-graphmakie/77144 "2022-02-27T11:35:36Z")

</div>

I have tried using both, but from what I can see GraphMakie is just Graphs, with interactivity. Plus they have a bit different syntax. How different is syntax, exactly as one uses a package more, is it a big difference?

---

## [Why are there so many plotting backends?](https://discourse.julialang.org/t/why-are-there-so-many-plotting-backends/77142)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 7\
**Last updated:** [February 27, 2022, 11:15am UTC](https://discourse.julialang.org/t/why-are-there-so-many-plotting-backends/77142 "2022-02-27T11:15:44Z")

</div>

Hello, I’m learning to use Makie, but have also looked at some other packages like GadFly and Plots, but Makie seems my favorite. I’m just wondering why does it have 4 different backends(WGLMakie, GLMakie, and CairoMakie…

---

## [Makie recipe arguments](https://discourse.julialang.org/t/makie-recipe-arguments/77047)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [February 25, 2022, 10:30pm UTC](https://discourse.julialang.org/t/makie-recipe-arguments/77047 "2022-02-25T22:30:07Z")

</div>

I’m trying a write a recipe in Makie, but cannot use the extracted x and y values from the recipe. I’m following the example in the documentation, as well as the examples in basic\_recipes.jl (particularly pie.jl). The er…

---

## [Fastest, simplest, least resource-hungry and prettiest visualization package right now? (Feb/March 2022)](https://discourse.julialang.org/t/fastest-simplest-least-resource-hungry-and-prettiest-visualization-package-right-now-feb-march-2022/77042)

<div class="topic-metadata">

**Author:** [@Ouji](https://discourse.julialang.org/u/Ouji)\
**Replies:** 11\
**Last updated:** [February 25, 2022, 5:47pm UTC](https://discourse.julialang.org/t/fastest-simplest-least-resource-hungry-and-prettiest-visualization-package-right-now-feb-march-2022/77042 "2022-02-25T17:47:51Z")

</div>

Please note I don’t want to depreciate anyone or any package, but I really wanted to know. I did see some threads, but there didn’t seem to be any definitive conclusion, and time-wise we are now at a later point. So I th…

---

## [Can I use GR / Plots to create a pixel-perfect image?](https://discourse.julialang.org/t/can-i-use-gr-plots-to-create-a-pixel-perfect-image/77057)

<div class="topic-metadata">

**Author:** [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Replies:** 4\
**Last updated:** [February 25, 2022, 1:08pm UTC](https://discourse.julialang.org/t/can-i-use-gr-plots-to-create-a-pixel-perfect-image/77057 "2022-02-25T13:08:35Z")

</div>

Is there a way to guarantee that no sampling occurs in GR, and i.e. my (3000, 4000) array is rasterized without any sampling? I want each pixel to correspond to an array element in my PNG. From reading the GR docs about r…

---

## [Grid in Heatmap](https://discourse.julialang.org/t/grid-in-heatmap/77017)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 2\
**Last updated:** [February 25, 2022, 7:05am UTC](https://discourse.julialang.org/t/grid-in-heatmap/77017 "2022-02-25T07:05:03Z")

</div>

Hi, I’m working on a simple A-star viz and was wondering if it’s possible to plot a grid on a heatmap. My current heatmap on Makie looks like: I want it to have grids, preferably a Major grid (every 5-10 ticks) and a…

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

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