# Visualization

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

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

**Page:** 61

---

## [How to plot contour in an arbitrary shape of area?](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 1:50pm UTC](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902 "2021-09-09T13:50:02Z")

</div>

How can I use contour to plot a contour in an arbitrary shape, say, a parallelogram? A simple example is: I tried contour!(xgrid, ygrid, zs) but it seems contour can only take vector-like objects, such as range rathe…

---

## [Plots.jl annotations location in a type @recipe](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 8:27am UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941 "2021-09-09T08:27:20Z")

</div>

hi all, (was posted on Plots.jl gitter) how can I specify the annotations position when i want to label points inside a type recipe? i found that adding this to my @series block works: series\_annotations := \["$i" for i…

---

## [Reset color cycle with RecipesBase](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 6:01pm UTC](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706 "2021-07-15T18:01:57Z")

</div>

Say I define a struct Example like: struct Example fields end example = Example(\[rand(3), rand(3), rand(3)\]) Using RecipesBase, I can define a plot recipe that allows me to plot each component of such a struct: us…

---

## [How to update coordinates and colors in a type recipe?](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213)

<div class="topic-metadata">

**Author:** [@SebastianM-C](https://discourse.julialang.org/u/SebastianM-C)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 9:51am UTC](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213 "2021-03-30T09:51:15Z")

</div>

I want to create a type recipe which will produce a scatter plot with a variable number of points. I tried to use WGLMakie with the code below using WGLMakie using JSServe using Markdown using JSServe.DOM JSServe.brows…

---

## [Makie change axis appearance in plot recipe](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 0\
**Last updated:** [November 9, 2019, 5:49pm UTC](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897 "2019-11-09T17:49:09Z")

</div>

Is there a way to change the axis appearance in a plot recipe? Suppose I have @recipe(MyPlot, x, y) do scene Theme( plot\_color = :red ) end function AbstractPlotting.plot!(plot::MyPlot) # normal pl…

---

## [String labels in the x axis](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 3:52pm UTC](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880 "2021-09-08T15:52:03Z")

</div>

Hi, I’m trying to make a plot with a numerical series on the y axis and a string series on the x axis. The x series is a vector like this, imported which is extracted from a data frame: 88-element Vector{Any}: "1997 Q…

---

## [Annotations in Makie.jl](https://discourse.julialang.org/t/annotations-in-makie-jl/55773)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [September 7, 2021, 8:50pm UTC](https://discourse.julialang.org/t/annotations-in-makie-jl/55773 "2021-09-07T20:50:50Z")

</div>

Is it currently possible to annotate Makie-plots? I am thinking about having text at the root of an arrow that point to some location in the plot. I am imagining that one could DIY it by plotting a vector, and possible p…

---

## [Permute x and y axes of a \`Makie.Axis\`](https://discourse.julialang.org/t/permute-x-and-y-axes-of-a-makie-axis/67826)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 8:21pm UTC](https://discourse.julialang.org/t/permute-x-and-y-axes-of-a-makie-axis/67826 "2021-09-07T20:21:21Z")

</div>

This example shows how to reverse the direction of the x- and y-axis. However, I am interested in plotting the first coordinate of data along the vertical axis, and the second coordinate of data along the horizontal axis…

---

## [Parametric surface plots with Makie](https://discourse.julialang.org/t/parametric-surface-plots-with-makie/67685)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 7:26pm UTC](https://discourse.julialang.org/t/parametric-surface-plots-with-makie/67685 "2021-09-07T19:26:11Z")

</div>

I am a new user of Makie. How can I make a parametric plot of a surface in 3-dimensions with Makie? For example, I am looking for something like this: ParametricPlot3D—Wolfram Language Documentation Is there a similar…

---

## [Makie animation: type FigureAxisPlot has no field plots](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696)

<div class="topic-metadata">

**Author:** [@GoH](https://discourse.julialang.org/u/GoH)\
**Replies:** 2\
**Last updated:** [September 5, 2021, 8:35am UTC](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696 "2021-09-05T08:35:38Z")

</div>

Hi i am trying to run the example code in http://juliaplots.org/MakieGallery.jl/stable/animation.html, but got an error of type FigureAxisPlot has no field plots getproperty(::Makie.FigureAxisPlot, ::Symbol)@Base.jl:33…

---

## [What is the difference btween handling f\[i,j\]=GridLayout() and g=f\[i,j\]=GridLayout()](https://discourse.julialang.org/t/what-is-the-difference-btween-handling-f-i-j-gridlayout-and-g-f-i-j-gridlayout/67675)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 7\
**Last updated:** [September 4, 2021, 1:37pm UTC](https://discourse.julialang.org/t/what-is-the-difference-btween-handling-f-i-j-gridlayout-and-g-f-i-j-gridlayout/67675 "2021-09-04T13:37:46Z")

</div>

I am trying to plot a 2x2 figure as shown below. So I import CairoMakie for ir in 1:2, ic in 1:2 g = f\[ir,ic\] = GridLayout() # handling g below end But if I try the following code: for ir in 1:2, ic in 1:…

---

## [Transparent plotting in Makie](https://discourse.julialang.org/t/transparent-plotting-in-makie/67625)

<div class="topic-metadata">

**Author:** [@yosuga](https://discourse.julialang.org/u/yosuga)\
**Replies:** 9\
**Last updated:** [September 4, 2021, 9:42am UTC](https://discourse.julialang.org/t/transparent-plotting-in-makie/67625 "2021-09-04T09:42:12Z")

</div>

BeautifulMakie is very helpful for 3D plotting. But, in this volume with scatters, x,y,z, f(x,y,z) example, I can’t see inside the box e.g. the values at (x,y,z)=(5,5,5) or (0,0,0). I want something like this example,“D…

---

## [How to exchange x-y axis and layout with another image?](https://discourse.julialang.org/t/how-to-exchange-x-y-axis-and-layout-with-another-image/67615)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 5:52pm UTC](https://discourse.julialang.org/t/how-to-exchange-x-y-axis-and-layout-with-another-image/67615 "2021-09-03T17:52:46Z")

</div>

All I want to achieve is something like this: the second plot should be drawn with x-y axes exchanged y axis of the two plots should be overlayed Can anyone help me about this? Thanks in advance.

---

## [Makie: mouse position in data coordinates](https://discourse.julialang.org/t/makie-mouse-position-in-data-coordinates/67573)

<div class="topic-metadata">

**Author:** [@inverseproblem](https://discourse.julialang.org/u/inverseproblem)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 5:43pm UTC](https://discourse.julialang.org/t/makie-mouse-position-in-data-coordinates/67573 "2021-09-03T17:43:51Z")

</div>

Hello, I’m having troubles in getting the mouse position in data coordinates from a Makie plot. Using mouseposition() seems to return the position in pixel coordinates contrary to what described in the documentation ht…

---

## [Extend density plot line (along 0)](https://discourse.julialang.org/t/extend-density-plot-line-along-0/67561)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [September 2, 2021, 6:01pm UTC](https://discourse.julialang.org/t/extend-density-plot-line-along-0/67561 "2021-09-02T18:01:46Z")

</div>

If I write using StatsPlots density(sqrt.(rand(10000))) density!(sqrt.(2\*rand(10000))) then I get: The plot would be nicer if the blue line extended all the way to the maximum/minimum x values (along 0). Is there an…

---

## [How to plot a matrix as an image (greyscale)](https://discourse.julialang.org/t/how-to-plot-a-matrix-as-an-image-greyscale/34147)

<div class="topic-metadata">

**Author:** [@Ujku\_KU](https://discourse.julialang.org/u/Ujku_KU)\
**Replies:** 4\
**Last updated:** [September 2, 2021, 12:21pm UTC](https://discourse.julialang.org/t/how-to-plot-a-matrix-as-an-image-greyscale/34147 "2021-09-02T12:21:05Z")

</div>

Hi guys, my question is how to plot a matrix as an image in greyscale? I saw the version with ‘Gadfly’ and worked for me but it was in bluescale. Thank you very much in advance for your support. Cheers. Ergnoor

---

## [Plot beyond gridlines](https://discourse.julialang.org/t/plot-beyond-gridlines/67438)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [August 31, 2021, 7:42pm UTC](https://discourse.julialang.org/t/plot-beyond-gridlines/67438 "2021-08-31T19:42:33Z")

</div>

using WGLMakie n = 500 x = 1:n y = randn(n) fig = Figure() ax = Axis( fig\[1,1\], limits=(nothing, (-1.5, 1.5)), xgridcolor=:red, leftspinevisible=false, rightspinevisible=false, topspinevisible=…

---

## [Hide axis labels](https://discourse.julialang.org/t/hide-axis-labels/67443)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 7:34pm UTC](https://discourse.julialang.org/t/hide-axis-labels/67443 "2021-08-31T19:34:38Z")

</div>

using WGLMakie n = 500 x = 1:n y = randn(n) c = rand('a':'d', n) spec = data((;x,y,c)) \* visual(Scatter) \* mapping(:x, :y, row=:c) draw(spec, axis=(; ylabelvisible=false)) How can I hide each of these labels? y -…

---

## [How to use strings to specify plot axes in VegaLite.jl?](https://discourse.julialang.org/t/how-to-use-strings-to-specify-plot-axes-in-vegalite-jl/67405)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 7:57am UTC](https://discourse.julialang.org/t/how-to-use-strings-to-specify-plot-axes-in-vegalite-jl/67405 "2021-08-31T07:57:40Z")

</div>

How can I use strings to call columns of a DataFrame in VegaLite.jl? using DataFrames using VegaLite df = DataFrame("x" =\> 1:5, "y.α" =\> 1:5) df |\> @vlplot( :line, x = "x", y = "y.α" ) ERROR: LoadError: ArgumentEr…

---

## [Build-in markers for 3D scatter](https://discourse.julialang.org/t/build-in-markers-for-3d-scatter/67358)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 6:00am UTC](https://discourse.julialang.org/t/build-in-markers-for-3d-scatter/67358 "2021-08-31T06:00:52Z")

</div>

Hi, In a 3D plot I’m trying to combine a semi-transparent mesh (detector body) with a scatter plot of particle hits in its surface (might not lie exactly on the surface, sometimes above or below, depending on the traject…

---

## [GLMakie record gives LoadError: IOError: write: broken pipe (EPIPE)](https://discourse.julialang.org/t/glmakie-record-gives-loaderror-ioerror-write-broken-pipe-epipe/64425)

<div class="topic-metadata">

**Author:** [@bedosh](https://discourse.julialang.org/u/bedosh)\
**Replies:** 5\
**Last updated:** [August 31, 2021, 5:24am UTC](https://discourse.julialang.org/t/glmakie-record-gives-loaderror-ioerror-write-broken-pipe-epipe/64425 "2021-08-31T05:24:30Z")

</div>

I am trying to get GLMakie record to work. Trying the example code from http://makie.juliaplots.org/stable/animation.html: using GLMakie using Makie.Colors fig, ax, lineplot = lines(0..10, sin; linewidth=10) # animat…

---

## [Makie: layout of IntervalSlider and Slider and custom labels/text display](https://discourse.julialang.org/t/makie-layout-of-intervalslider-and-slider-and-custom-labels-text-display/67241)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 8\
**Last updated:** [August 30, 2021, 11:47pm UTC](https://discourse.julialang.org/t/makie-layout-of-intervalslider-and-slider-and-custom-labels-text-display/67241 "2021-08-30T23:47:35Z")

</div>

Hello, Three questions regarding Makie layout of IntervalSlider and Slider. On the left side of the above image, I would like to have a :grey10 background for the IntervalSlider and Slider as in the Textbox. Howev…

---

## [PyPlot plot\_date issue (year 3990) - Solved](https://discourse.julialang.org/t/pyplot-plot-date-issue-year-3990-solved/67345)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 12:05pm UTC](https://discourse.julialang.org/t/pyplot-plot-date-issue-year-3990-solved/67345 "2021-08-30T12:05:38Z")

</div>

Recently I installed Julia on a new computer and using code I knew that works, PyPlot displayed dates far in the future. I was plotting data from the previous week (August 2021) and plot\_date was displaying the dates in …

---

## [Having second axis in pgfplotsx](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 12:06am UTC](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315 "2021-08-30T00:06:55Z")

</div>

is it possible to have second axis for x and y when using PGFPlotsX.jl? thanks

---

## [How to add count legend on Bar graph using Gadfly?](https://discourse.julialang.org/t/how-to-add-count-legend-on-bar-graph-using-gadfly/67197)

<div class="topic-metadata">

**Author:** [@wakimchris](https://discourse.julialang.org/u/wakimchris)\
**Replies:** 3\
**Last updated:** [August 28, 2021, 8:42am UTC](https://discourse.julialang.org/t/how-to-add-count-legend-on-bar-graph-using-gadfly/67197 "2021-08-28T08:42:02Z")

</div>

I have created a DataFrame such as │ Row │ Gender\_Code │ N │ │ │ String │ Int64 │ ├─────┼─────────────┼───────┤ │ 1 │ M │ 1789 │ │ 2 │ F │ 205 │ When I applied on it Geom.bar, th…

---

## [AoG with\_theme](https://discourse.julialang.org/t/aog-with-theme/67149)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 12:24am UTC](https://discourse.julialang.org/t/aog-with-theme/67149 "2021-08-28T00:24:35Z")

</div>

using AlgebraOfGraphics, CategoricalArrays, CairoMakie let n = 100 k = 13 d = data((x=rand(n), y=rand(n), c=rand(CategoricalArray(1:k, ordered=true), n))) v = visual(Scatter) m = mapping(:x, :y, color=:c) spec = d \* v \*…

---

## [AlgebraOfGraphics force points colors in scatter plot](https://discourse.julialang.org/t/algebraofgraphics-force-points-colors-in-scatter-plot/67089)

<div class="topic-metadata">

**Author:** [@rvezy](https://discourse.julialang.org/u/rvezy)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 1:16pm UTC](https://discourse.julialang.org/t/algebraofgraphics-force-points-colors-in-scatter-plot/67089 "2021-08-27T13:16:44Z")

</div>

I starting using AlgebraOfGraphics and I really like it so far. Now I’m using it in a Pluto notebook to plot two variables as a scatter colored by groups with CairoMakie as a backend. I also added some checkboxes to mak…

---

## [Ordered color palette](https://discourse.julialang.org/t/ordered-color-palette/67005)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 9:50am UTC](https://discourse.julialang.org/t/ordered-color-palette/67005 "2021-08-27T09:50:56Z")

</div>

I want to use a palette that is ordered rather than nominal or continuous. If I don’t specify a palette, I get nominal. If I specify a continuous one, I get an error. visual(Scatter, colormap=:viridis) doesn’t change any…

---

## [MakieLayout - deleting Sliders (or GridPositions)](https://discourse.julialang.org/t/makielayout-deleting-sliders-or-gridpositions/66879)

<div class="topic-metadata">

**Author:** [@JCQ](https://discourse.julialang.org/u/JCQ)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 11:13pm UTC](https://discourse.julialang.org/t/makielayout-deleting-sliders-or-gridpositions/66879 "2021-08-25T23:13:47Z")

</div>

Here is a code snippet for the problem that I am having: using GLMakie,Colors,GeometryBasics fig = Figure(resolution = (1920, 1080)) plot\_scene = LScene(fig\[1,1\], scenekw=(camera = old\_cam3d!,show\_axis = false),tellwi…

---

## [Figure Layout Dimensions](https://discourse.julialang.org/t/figure-layout-dimensions/66920)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 3\
**Last updated:** [August 25, 2021, 4:28pm UTC](https://discourse.julialang.org/t/figure-layout-dimensions/66920 "2021-08-25T16:28:50Z")

</div>

I’m trying to find the dimensions of components of my layout programmatically. I know I can get the GridLayout of a figure (“fig”) with fig.layout. But if I want to return the actual physical locations of fig\[2,1\], I ca…

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

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