# Visualization

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

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

**Page:** 32

---

## [Two lines one label - Makie](https://discourse.julialang.org/t/two-lines-one-label-makie/101490)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 3\
**Last updated:** [July 11, 2023, 4:34pm UTC](https://discourse.julialang.org/t/two-lines-one-label-makie/101490 "2023-07-11T16:34:36Z")

</div>

Hi, From the basic tutorials we have the code fig = Figure() ax1, l1 = lines(fig\[1, 1\], 0..10, sin, color = :red) ax2, l2 = lines(fig\[2, 1\], 0..10, cos, color = :blue) Legend(fig\[1:2, 2\], \[l1, l2\], \["sin", "cos"\]) fig …

---

## [How can I move the x axis and ticks at top of the graph?](https://discourse.julialang.org/t/how-can-i-move-the-x-axis-and-ticks-at-top-of-the-graph/101479)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 3:45pm UTC](https://discourse.julialang.org/t/how-can-i-move-the-x-axis-and-ticks-at-top-of-the-graph/101479 "2023-07-11T15:45:04Z")

</div>

Hi all! I’m trying to plot a heatmap of a distance matrix: julia\> distance\_matrix\_measures 12×12 Matrix{Float64}: 0.0 0.0242429 0.0217801 … 0.0443951 0.0124709 0.0114215 0.0242429 0.0 0.0024…

---

## [Positioning \`contour\_labels\` for contour plots](https://discourse.julialang.org/t/positioning-contour-labels-for-contour-plots/101265)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [July 11, 2023, 7:58am UTC](https://discourse.julialang.org/t/positioning-contour-labels-for-contour-plots/101265 "2023-07-11T07:58:29Z")

</div>

Folks, I am using Plots.jl with GR backend. Basically, what I am trying to do is to draw the lines of a 2d curvilinear coordinate system. Specifically, I do two contour plots on the same axes, that give me two sets of …

---

## [Behaviour of legend in AlgebraOfGraphics.jl](https://discourse.julialang.org/t/behaviour-of-legend-in-algebraofgraphics-jl/101371)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 5:13pm UTC](https://discourse.julialang.org/t/behaviour-of-legend-in-algebraofgraphics-jl/101371 "2023-07-10T17:13:53Z")

</div>

Hi, I have made a MWE to show the behaviour I would like to avoid. I am plotting two curves, one of them with points and errobars, the other with lines. There are two problems. When avoiding the errorbars, in the legend …

---

## [Calligraphic LaTeX fonts in Makie](https://discourse.julialang.org/t/calligraphic-latex-fonts-in-makie/101209)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 10\
**Last updated:** [July 8, 2023, 11:08am UTC](https://discourse.julialang.org/t/calligraphic-latex-fonts-in-makie/101209 "2023-07-08T11:08:40Z")

</div>

Hi all, I’ve run into a small problem regarding mismatch of LaTeX fonts between Makie and the LaTeX documents where I am placing such figures. This is really a problem with the calligraphic fonts that are used in math m…

---

## [Plots.jl: Creating stacked subplots with common x-axis and no margins (padding) in between](https://discourse.julialang.org/t/plots-jl-creating-stacked-subplots-with-common-x-axis-and-no-margins-padding-in-between/101233)

<div class="topic-metadata">

**Author:** [@ykh-1992](https://discourse.julialang.org/u/ykh-1992)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 7:25pm UTC](https://discourse.julialang.org/t/plots-jl-creating-stacked-subplots-with-common-x-axis-and-no-margins-padding-in-between/101233 "2023-07-06T19:25:56Z")

</div>

Hello! I would like to know if it is possible to create a plot with stacked subplots sharing a common x-axis. I’m looking to have no margins, gaps, spaces, or paddings in between the subplots. Is it possible to do it …

---

## [Visualize 3D polygon of brain regions given points representing exterior border](https://discourse.julialang.org/t/visualize-3d-polygon-of-brain-regions-given-points-representing-exterior-border/101247)

<div class="topic-metadata">

**Author:** [@vandenman](https://discourse.julialang.org/u/vandenman)\
**Replies:** 3\
**Last updated:** [July 6, 2023, 11:25am UTC](https://discourse.julialang.org/t/visualize-3d-polygon-of-brain-regions-given-points-representing-exterior-border/101247 "2023-07-06T11:25:19Z")

</div>

I’m trying to create a 3d plot of some brain regions. However, the data I have is not a mesh but a series of 3d points that indicate the exterior border of the regions. How can I plot this with GLMakie? Below is the cod…

---

## [Plots: precision of numeric labels, default \`xformatter\`, or . .](https://discourse.julialang.org/t/plots-precision-of-numeric-labels-default-xformatter-or/101085)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 0\
**Last updated:** [July 2, 2023, 4:54pm UTC](https://discourse.julialang.org/t/plots-precision-of-numeric-labels-default-xformatter-or/101085 "2023-07-02T16:54:16Z")

</div>

Basically I want to adjust the number of the significant digits in the numeric labels on the x axis: using Plots using StrFormat x = 0:1e5:8e6 y = rand(Float64, length(x)) plot(x,y) # -\> 2.0 × 10^6 plot(x,y; xformatter=…

---

## [Region Bounded Between $\\sin (x)$ and $\\cos (x)$](https://discourse.julialang.org/t/region-bounded-between-sin-x-and-cos-x/101008)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [July 2, 2023, 11:45am UTC](https://discourse.julialang.org/t/region-bounded-between-sin-x-and-cos-x/101008 "2023-07-02T11:45:09Z")

</div>

Hi all, I want to ask whether I am right that the triangle region between 0 and \\pi/2 should not be included for region bounded by \\sin (x) and \\cos (x) between x = - \\pi / 4 and x = 3 \\pi / 4 ? But, In the plot below …

---

## [Makie: update slider visual position from different observable trigger (i.e., reset sliders)](https://discourse.julialang.org/t/makie-update-slider-visual-position-from-different-observable-trigger-i-e-reset-sliders/100982)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [June 30, 2023, 8:54am UTC](https://discourse.julialang.org/t/makie-update-slider-visual-position-from-different-observable-trigger-i-e-reset-sliders/100982 "2023-06-30T08:54:15Z")

</div>

I am making some Makie sliders using the standard API of the SliderGrid. Below the sliders I want to add a button reset, which once clicked will reset all sliders to their original value. I do have the original values s…

---

## [Remove top or bottom axis in :box plot](https://discourse.julialang.org/t/remove-top-or-bottom-axis-in-box-plot/100897)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 6\
**Last updated:** [June 29, 2023, 12:31pm UTC](https://discourse.julialang.org/t/remove-top-or-bottom-axis-in-box-plot/100897 "2023-06-29T12:31:40Z")

</div>

Hi there, I’ve been searching for a way of doing this, but cannot find anything… I’ve been trying to make a box plot but with a missing axis. Essentially, I would like to get the results given by plot(framestyle = :bo…

---

## [Bug in Plots.jl - Unwanted line in the title with multi-column legend](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 3\
**Last updated:** [June 28, 2023, 12:53pm UTC](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924 "2023-06-28T12:53:31Z")

</div>

MWE: Pkg.add(“PlotThemes”) Using Plots, DifferentialEquations, ModelingToolkit, LaTeXStrings, Symbolics, Measures theme(:bright) plot(sol, label = L"some \\ \\LaTeX“, xlabel = L”t“, ylabel = L”\\alpha“, margin=8mm, fra…

---

## [Color cycling in GLMakie.series](https://discourse.julialang.org/t/color-cycling-in-glmakie-series/100834)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 7\
**Last updated:** [June 26, 2023, 10:43am UTC](https://discourse.julialang.org/t/color-cycling-in-glmakie-series/100834 "2023-06-26T10:43:10Z")

</div>

I’ve only just discovered series in GLMakie as a simple way of plotting rows of a matrix. This is something I do a lot (actually, I’d prefer to plot columns, but never mind) but it doesn’t seem to like plotting more seri…

---

## [Makie color transparency](https://discourse.julialang.org/t/makie-color-transparency/98015)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 6\
**Last updated:** [June 25, 2023, 1:06am UTC](https://discourse.julialang.org/t/makie-color-transparency/98015 "2023-06-25T01:06:45Z")

</div>

Hi, I want to plot points/lines with colors and changing transparencies. The Makie doc shows some usages, but what I need is to input a numerical value for color and another numerical value for the transparency. This s…

---

## [Plot layout with parametrized number of rows/columns](https://discourse.julialang.org/t/plot-layout-with-parametrized-number-of-rows-columns/100702)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 5\
**Last updated:** [June 23, 2023, 9:04am UTC](https://discourse.julialang.org/t/plot-layout-with-parametrized-number-of-rows-columns/100702 "2023-06-23T09:04:41Z")

</div>

Hi all I would like to incrementally build a plot from different subplots using layout. The issue I’m struggling with is that the number of subplots is a parameter/variable. So I would like to build a list of subplots, …

---

## [AlgebraOfGraphics visual(Lines): how can I keep AoG from joining up lines corresponding to different parameter values?](https://discourse.julialang.org/t/algebraofgraphics-visual-lines-how-can-i-keep-aog-from-joining-up-lines-corresponding-to-different-parameter-values/100661)

<div class="topic-metadata">

**Author:** [@Christopher\_White](https://discourse.julialang.org/u/Christopher_White)\
**Replies:** 11\
**Last updated:** [June 22, 2023, 3:18pm UTC](https://discourse.julialang.org/t/algebraofgraphics-visual-lines-how-can-i-keep-aog-from-joining-up-lines-corresponding-to-different-parameter-values/100661 "2023-06-22T15:18:44Z")

</div>

The code using DataFrames using AlgebraOfGraphics using CairoMakie df1 = DataFrame(x = 1:10, y = (1:10).^2, parameter = 1) df2 = DataFrame(x = 1:10, y = 1.1\*(1:10).^2, parameter = 2) df = \[df1; df2\] aogplt = data(df) \*…

---

## [Makie - arrowhead options](https://discourse.julialang.org/t/makie-arrowhead-options/100596)

<div class="topic-metadata">

**Author:** [@yoplo](https://discourse.julialang.org/u/yoplo)\
**Replies:** 4\
**Last updated:** [June 20, 2023, 5:14pm UTC](https://discourse.julialang.org/t/makie-arrowhead-options/100596 "2023-06-20T17:14:19Z")

</div>

Hello! I am drawing an arrows plot in GLMakie, Where can I find a list of the legal inputs to the arrowhead keyword? yoplo

---

## [Best way to let axis automatically adjust in live GLMakie plot?](https://discourse.julialang.org/t/best-way-to-let-axis-automatically-adjust-in-live-glmakie-plot/100615)

<div class="topic-metadata">

**Author:** [@mhinsch](https://discourse.julialang.org/u/mhinsch)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 5:05pm UTC](https://discourse.julialang.org/t/best-way-to-let-axis-automatically-adjust-in-live-glmakie-plot/100615 "2023-06-20T17:05:57Z")

</div>

I’m plotting some numbers produced by my simulation using GLMakie. The code looks somewhat like this: data = Observable(\[\[0.0\], \[0.0\]\]) series(data) while sim\_is\_running # do stuff push!(data\[\]\[1\], result1) …

---

## [CairoMakie - how set a name for a figure?](https://discourse.julialang.org/t/cairomakie-how-set-a-name-for-a-figure/100522)

<div class="topic-metadata">

**Author:** [@PeteS](https://discourse.julialang.org/u/PeteS)\
**Replies:** 2\
**Last updated:** [June 19, 2023, 8:55am UTC](https://discourse.julialang.org/t/cairomakie-how-set-a-name-for-a-figure/100522 "2023-06-19T08:55:34Z")

</div>

Hi, I’m using CairoMakie in VSCode, viewing the plots in the Julia Plots tab and switching between them using the Plot Navigator of the Julia extension tab. Is there any way to set a meaningful name of a Figure() so tha…

---

## [Makie - save specific axis only](https://discourse.julialang.org/t/makie-save-specific-axis-only/65962)

<div class="topic-metadata">

**Author:** [@keithjlee](https://discourse.julialang.org/u/keithjlee)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 8:16am UTC](https://discourse.julialang.org/t/makie-save-specific-axis-only/65962 "2023-06-16T08:16:26Z")

</div>

I have a plotting function that allows for a bit of interactivity, but I’d like to be able to exclude the toggles/sliders when I’m saving the figure, which is an LScene() type in position \[1,1\] of my GridLayout. I wo…

---

## [Modify position of axis labels in a PGFPlotsX created with plot()](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425)

<div class="topic-metadata">

**Author:** [@andresdrenik](https://discourse.julialang.org/u/andresdrenik)\
**Replies:** 0\
**Last updated:** [June 15, 2023, 10:41pm UTC](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425 "2023-06-15T22:41:19Z")

</div>

Hi, I’m creating the attached figure with pgfplotsx() p1 = plot(𝕊.Ŵ,𝕊.Ĵ, label = "Efficiency", color = 3, linestyle=:dash, legend = :topright, xguide = L"\\hat{W}(\\hat{w})", yguide = L"\\hat{J}(\\hat{w})") #, xguidefontval…

---

## [How to display all minorticks in logscale if axis limit span is too small in Makie?](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 6:20pm UTC](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403 "2023-06-15T18:20:56Z")

</div>

Sometimes when I use log10 as the axis scale and IntervalsBetween(9) as the minorticks, if the data range is not large enough such that less than two majorticks are displayed, all the minorticks are missing. For example,…

---

## [Plots.jl plot in Tk.jl canvas](https://discourse.julialang.org/t/plots-jl-plot-in-tk-jl-canvas/100362)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 8:11pm UTC](https://discourse.julialang.org/t/plots-jl-plot-in-tk-jl-canvas/100362 "2023-06-14T20:11:00Z")

</div>

Hi, Is it possible to draw Plots.jl plot in the Tk.jl canvas? If so, could you please send me an example code? Thanks! Adam

---

## [The way Gadfly chooses ticks leads to ugly plots very often?](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 2:13pm UTC](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328 "2023-06-14T14:13:10Z")

</div>

There’s an experiment for evaluating the claim in the title here. See the readme, and the SVG plots, viewable directly there (in the browser, on Gitlab). My conclusion was that a very large percentage of these random Ga…

---

## [Plots: margins, positions of axes, etc., within the canvas (paper)](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 8:31am UTC](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317 "2023-06-14T08:31:37Z")

</div>

What is the general method to control the positions of the axes in a plot? Below is my first small attempt to push the upper x axis downward, which fails: julia\> using Plots julia\> plot(sin; top\_margin=10mm) ERROR: Un…

---

## [How to plot a spectrum with dB as y-axis with PythonPlot](https://discourse.julialang.org/t/how-to-plot-a-spectrum-with-db-as-y-axis-with-pythonplot/100172)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [June 11, 2023, 8:01am UTC](https://discourse.julialang.org/t/how-to-plot-a-spectrum-with-db-as-y-axis-with-pythonplot/100172 "2023-06-11T08:01:15Z")

</div>

I am using PythonPlot and want to have a logarithmic y axis formatted in dezibel (dB). In Python I could use the following code: from UliEngineering.Math.Decibel import \* import matplotlib.ticker as mtick def decibel\_fo…

---

## [GeoMakie: Could not find font regular, using TeX Gyre Heros Makie](https://discourse.julialang.org/t/geomakie-could-not-find-font-regular-using-tex-gyre-heros-makie/100092)

<div class="topic-metadata">

**Author:** [@thunderclouds](https://discourse.julialang.org/u/thunderclouds)\
**Replies:** 4\
**Last updated:** [June 11, 2023, 12:24am UTC](https://discourse.julialang.org/t/geomakie-could-not-find-font-regular-using-tex-gyre-heros-makie/100092 "2023-06-11T00:24:32Z")

</div>

I have a question about the fonts in GeoMakie.jl. When I run the following sample code, I get the error “Warning: Could not find font regular, using TeX Gyre Heros Makie”. It seems that this error occurs at the timing w…

---

## [How to get live plotting of data into gui](https://discourse.julialang.org/t/how-to-get-live-plotting-of-data-into-gui/100115)

<div class="topic-metadata">

**Author:** [@blckbart](https://discourse.julialang.org/u/blckbart)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 3:57pm UTC](https://discourse.julialang.org/t/how-to-get-live-plotting-of-data-into-gui/100115 "2023-06-09T15:57:34Z")

</div>

Hi All, I am looking for a good example GUI made using glade and GTK. Specifically I want to be able to live update a plot. Any help would be appreciated. Thanks!

---

## [Getting 3D shapes without illumination](https://discourse.julialang.org/t/getting-3d-shapes-without-illumination/100091)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 5\
**Last updated:** [June 9, 2023, 2:45pm UTC](https://discourse.julialang.org/t/getting-3d-shapes-without-illumination/100091 "2023-06-09T14:45:28Z")

</div>

I am plotting with GLMakie my own 3D solids by defining GeometryBasics.faces(...) and GeometryBasics.coordinates(...) for each type. Then I plot the solids using a code like this: m = GeometryBasics.mesh(solid) po…

---

## [Recommendation for animated 3D diagram](https://discourse.julialang.org/t/recommendation-for-animated-3d-diagram/99903)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 11\
**Last updated:** [June 8, 2023, 6:29pm UTC](https://discourse.julialang.org/t/recommendation-for-animated-3d-diagram/99903 "2023-06-08T18:29:50Z")

</div>

I’m contemplating trying to make an animation based on the following figure: In the animation, I’d like to have the two red cups (and the blue balls contained in them) rotate independently around the circle, with a p…

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

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