# Visualization

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

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

**Page:** 58

---

## [Makie animations broken?](https://discourse.julialang.org/t/makie-animations-broken/56847)

<div class="topic-metadata">

**Author:** [@tross](https://discourse.julialang.org/u/tross)\
**Replies:** 4\
**Last updated:** [November 12, 2021, 7:07pm UTC](https://discourse.julialang.org/t/makie-animations-broken/56847 "2021-11-12T19:07:01Z")

</div>

I was using a script to animate plots using Makie without any issue for a while, however now I am getting an error and I have no idea how to resolve it. Here is an example script from an earlier post using Makie Abstra…

---

## [RecipesBase: How to define the same recipe for different packages?](https://discourse.julialang.org/t/recipesbase-how-to-define-the-same-recipe-for-different-packages/71283)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 9\
**Last updated:** [November 12, 2021, 2:10pm UTC](https://discourse.julialang.org/t/recipesbase-how-to-define-the-same-recipe-for-different-packages/71283 "2021-11-12T14:10:57Z")

</div>

I have packages A, B, C, where both B and C depend on A. In order to make some function f available to both B and C at the same time, I first define it in A and then overload it in B and C with some local methods, e.g. m…

---

## [Plotting with Observables in Makie](https://discourse.julialang.org/t/plotting-with-observables-in-makie/70939)

<div class="topic-metadata">

**Author:** [@jm4h](https://discourse.julialang.org/u/jm4h)\
**Replies:** 6\
**Last updated:** [November 11, 2021, 6:49am UTC](https://discourse.julialang.org/t/plotting-with-observables-in-makie/70939 "2021-11-11T06:49:10Z")

</div>

I want to make an interactive plot with sliders, where the displayed data changes when my sliders get moved. That seems to work when the observable plotted is an array of positions. But is it possible if the observable …

---

## [Makie: categorical x variables](https://discourse.julialang.org/t/makie-categorical-x-variables/71263)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [November 10, 2021, 4:43pm UTC](https://discourse.julialang.org/t/makie-categorical-x-variables/71263 "2021-11-10T16:43:28Z")

</div>

Hi, I recently moved from Plots to Makie and I am trying to make a box plot where each box aggregates data w.r.t. a real variable x. However the three categories are not evenly spaced. You can see a MWE here which prod…

---

## [Gadfly can't do Time values?](https://discourse.julialang.org/t/gadfly-cant-do-time-values/71187)

<div class="topic-metadata">

**Author:** [@luc-j-bourhis](https://discourse.julialang.org/u/luc-j-bourhis)\
**Replies:** 0\
**Last updated:** [November 9, 2021, 8:20am UTC](https://discourse.julialang.org/t/gadfly-cant-do-time-values/71187 "2021-11-09T08:20:13Z")

</div>

It seems that Gadly cannot handle Time on the x-axis (from Dates) as shown below. Would there be a package that could plug that hole? Or do I have to use Period instead as suggested by the error message? Or am I missing …

---

## [Label vectors in Plots](https://discourse.julialang.org/t/label-vectors-in-plots/71156)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [November 8, 2021, 5:21pm UTC](https://discourse.julialang.org/t/label-vectors-in-plots/71156 "2021-11-08T17:21:56Z")

</div>

Hi all, Is it possible to label vectors in a plot rather than in the legend? Here is an example where I would like to label the vectors A and B. using Plots plot( sqrt.(\[0,.5\]), sqrt.(\[0,.5\]), xlims = (-1.…

---

## [Computer modern font in every element of plot (PyPlot)](https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030)

<div class="topic-metadata">

**Author:** [@DaveR](https://discourse.julialang.org/u/DaveR)\
**Replies:** 8\
**Last updated:** [November 7, 2021, 3:29pm UTC](https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030 "2021-11-07T15:29:49Z")

</div>

I’m trying to achieve an homogeneous looking plot where every element of the plot has Computer Modern font using the PyPlot package. Following some of the answers to existing questions in the forum, this is as close as …

---

## [Bug? Plots + pyplot()](https://discourse.julialang.org/t/bug-plots-pyplot/70940)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [November 4, 2021, 11:47am UTC](https://discourse.julialang.org/t/bug-plots-pyplot/70940 "2021-11-04T11:47:21Z")

</div>

I’m on Windows 11 (64bit), latest update as of now. I use Julia v1.6.3, latest update as of today with all packages. When I do simple plots using the pyplot() backend, my Jupyter notebook crashes with the following erro…

---

## [Length and setting of ticks](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952)

<div class="topic-metadata">

**Author:** [@mixstam1453](https://discourse.julialang.org/u/mixstam1453)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 7:52pm UTC](https://discourse.julialang.org/t/length-and-setting-of-ticks/70952 "2021-11-04T19:52:35Z")

</div>

hello, i am new in Plots.jl and i would like to put ticks in all my axis of the plot with framestyle=:box . Here is my code with the default function: x = 0:0.1:2pi ; y1 = cos.(x) default(fontfamily ="New Century Scho…

---

## [2 problems with Gaston.jl](https://discourse.julialang.org/t/2-problems-with-gaston-jl/70907)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 3\
**Last updated:** [November 4, 2021, 12:46am UTC](https://discourse.julialang.org/t/2-problems-with-gaston-jl/70907 "2021-11-04T00:46:05Z")

</div>

As it doesn’t (yet?) seem to be possible to create a plot with two different x-axes and two different y-axes with Plots, I decided to give Gaston a try, because it would give me an interface to my good old Gnuplot, where…

---

## [Plotly.js - stacked bars in subplots](https://discourse.julialang.org/t/plotly-js-stacked-bars-in-subplots/60856)

<div class="topic-metadata">

**Author:** [@stej](https://discourse.julialang.org/u/stej)\
**Replies:** 6\
**Last updated:** [November 3, 2021, 10:53am UTC](https://discourse.julialang.org/t/plotly-js-stacked-bars-in-subplots/60856 "2021-11-03T10:53:29Z")

</div>

Hi all, I’m trying to plot stacked bars with PlotlyJS. It looks ok, when I use just one plot, but when I combine two plots together, the bars are no longer stacked. Example: using PlotlyJS, Dates dates = \[Date(2021, …

---

## [Multiple plots: some refinements](https://discourse.julialang.org/t/multiple-plots-some-refinements/64800)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 25\
**Last updated:** [November 2, 2021, 4:33pm UTC](https://discourse.julialang.org/t/multiple-plots-some-refinements/64800 "2021-11-02T16:33:34Z")

</div>

Hi to everybody, I am trying to make some plots for my research (Fisher contour plots) using Plots.jl. I am quite satisfied with the results I have obtained (in a very short amount of time!) FisherMatrix = \[16523.02 33…

---

## [Makie.jl: right align colorbar ticklabel](https://discourse.julialang.org/t/makie-jl-right-align-colorbar-ticklabel/70787)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 8:35am UTC](https://discourse.julialang.org/t/makie-jl-right-align-colorbar-ticklabel/70787 "2021-11-02T08:35:58Z")

</div>

Cheers. Consider the figure: I aim to align the tick labels of the colorbar on the right. This happens with ticklabelalign = (:right, :center); however then the tick labels lie within the colorbar. To fix this, I r…

---

## [3D Heatmap](https://discourse.julialang.org/t/3d-heatmap/70658)

<div class="topic-metadata">

**Author:** [@skolari93](https://discourse.julialang.org/u/skolari93)\
**Replies:** 8\
**Last updated:** [November 1, 2021, 10:48am UTC](https://discourse.julialang.org/t/3d-heatmap/70658 "2021-11-01T10:48:05Z")

</div>

Hello! Is there a way creatinge a 3D heatplot using Plots.jl? I try to visualize a 4D plot by plotting a 3D sphere and coloring the surface according to a function f. This is the closest I was able to do: plot(x,y,z,…

---

## [How to remove the box around the legend in PyPlot.jl](https://discourse.julialang.org/t/how-to-remove-the-box-around-the-legend-in-pyplot-jl/25528)

<div class="topic-metadata">

**Author:** [@mirtah](https://discourse.julialang.org/u/mirtah)\
**Replies:** 7\
**Last updated:** [October 31, 2021, 8:54pm UTC](https://discourse.julialang.org/t/how-to-remove-the-box-around-the-legend-in-pyplot-jl/25528 "2021-10-31T20:54:38Z")

</div>

hi. I would like to remove the box around the legend in my plot. May I ask you to how to do this. Sorry , I am new to Julia. this is the code I use. version of Julia :1.1.1 using PyPlot x=\[1,2,3,4\] y=x figure() …

---

## [Levels keyword but for scatter plot](https://discourse.julialang.org/t/levels-keyword-but-for-scatter-plot/70697)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [October 31, 2021, 6:57pm UTC](https://discourse.julialang.org/t/levels-keyword-but-for-scatter-plot/70697 "2021-10-31T18:57:48Z")

</div>

Hi! The levels keyword of surface is useful: fig = Figure() xs = LinRange(0, 20, 50) ys = LinRange(0, 15, 50) zs = \[cos(x) \* sin(y) for x in xs, y in ys\] ax, hm = contourf(fig\[1, 1\], xs, ys, zs, colormap = :Spectr…

---

## [PyPlot crashes REPL after re-install](https://discourse.julialang.org/t/pyplot-crashes-repl-after-re-install/70685)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 3\
**Last updated:** [October 31, 2021, 4:03pm UTC](https://discourse.julialang.org/t/pyplot-crashes-repl-after-re-install/70685 "2021-10-31T16:03:08Z")

</div>

Hello community, I deleted the miniconda by mistake, then installed back again. Unfortunately the pyplot doesn’t work anymore. I found the python version in miniconda is updated to 3.9, while the previous one was 3.7. I…

---

## [StatsPlot -- axes labels overwrite each other](https://discourse.julialang.org/t/statsplot-axes-labels-overwrite-each-other/70539)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 18\
**Last updated:** [October 30, 2021, 3:50pm UTC](https://discourse.julialang.org/t/statsplot-axes-labels-overwrite-each-other/70539 "2021-10-30T15:50:21Z")

</div>

I’m plotting some results from a Turing session. Using the Turing recipe, I get: The problem is the tiny variation in the sample value, which makes the density plot look ugly/overlapping (numeric) labels along the ab…

---

## [How to create layouts in Julia plotting packages?](https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 11\
**Last updated:** [October 30, 2021, 1:57am UTC](https://discourse.julialang.org/t/how-to-create-layouts-in-julia-plotting-packages/70586 "2021-10-30T01:57:39Z")

</div>

As a Matlab person, I’m so attached to the thinking as below: Handle = figure(1); % creating a figure handle Han01 = subplot(2, 2, 1); % creating a subplot handle (1st out of a total of 2x2 subplo…

---

## [Makie.jl: align first axis' boundary with ticklabels of second axis](https://discourse.julialang.org/t/makie-jl-align-first-axis-boundary-with-ticklabels-of-second-axis/70626)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 2\
**Last updated:** [October 29, 2021, 9:24pm UTC](https://discourse.julialang.org/t/makie-jl-align-first-axis-boundary-with-ticklabels-of-second-axis/70626 "2021-10-29T21:24:11Z")

</div>

I have the figure in which I want to make best use of the available space, i.e., let subfigure (a) reach the right boundary. Makie allocates space to xticklabels on the right hand side of the figures; here from the c…

---

## [Rotatable 3D plot in jupyter](https://discourse.julialang.org/t/rotatable-3d-plot-in-jupyter/70535)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 10:16am UTC](https://discourse.julialang.org/t/rotatable-3d-plot-in-jupyter/70535 "2021-10-28T10:16:24Z")

</div>

How to make a rotatable 3D plot in Jupyter? For example, from the REPL, this works by opening a new tab in my browser: using WGLMakie let x = LinRange(-1,1,31), f(x,y) = x^2 - y^2 surface(x,x,f.(x,x')) end In the t…

---

## [How can I save a Makie heatmap as PNG with one pixel per matrix element?](https://discourse.julialang.org/t/how-can-i-save-a-makie-heatmap-as-png-with-one-pixel-per-matrix-element/70579)

<div class="topic-metadata">

**Author:** [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 8:50pm UTC](https://discourse.julialang.org/t/how-can-i-save-a-makie-heatmap-as-png-with-one-pixel-per-matrix-element/70579 "2021-10-28T20:50:33Z")

</div>

For example: using Makie x = rand(300, 400) fig = heatmap(x) Makie.save("out1.png", fig) # 800 x 600 Makie.save("out2.png", fig, px\_per\_unit=1) # 800 x 600 Makie.save("out3.png", fig, resolution=size(x)) # 300 x 400 …

---

## [How to get plot parameters?](https://discourse.julialang.org/t/how-to-get-plot-parameters/70440)

<div class="topic-metadata">

**Author:** [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 12:13am UTC](https://discourse.julialang.org/t/how-to-get-plot-parameters/70440 "2021-10-27T00:13:10Z")

</div>

We have the plot. Is there a way to get (lookup) plot parameters? Why do I want it? My goal is to create a master legend for subplots. So I need the legend labels to create an empty plot with legend only and I’d like to…

---

## [Fill under line to vertical axis in Plots.jl](https://discourse.julialang.org/t/fill-under-line-to-vertical-axis-in-plots-jl/70251)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 2\
**Last updated:** [October 23, 2021, 11:07pm UTC](https://discourse.julialang.org/t/fill-under-line-to-vertical-axis-in-plots-jl/70251 "2021-10-23T23:07:05Z")

</div>

anyone tried to plot a line and fill to the y axis using Plots? similar like this:

---

## [Animation using frames in Dash for Julia](https://discourse.julialang.org/t/animation-using-frames-in-dash-for-julia/70254)

<div class="topic-metadata">

**Author:** [@valeroc](https://discourse.julialang.org/u/valeroc)\
**Replies:** 2\
**Last updated:** [October 23, 2021, 12:32pm UTC](https://discourse.julialang.org/t/animation-using-frames-in-dash-for-julia/70254 "2021-10-23T12:32:23Z")

</div>

Hi, I have been trying to do animation in Dash for Julia using frames (see the Simple Play Button Demo at Intro to animations in Python) . I managed to make that demo work for Dash in Python but after translating it to …

---

## [\[Makie\] Rotate bar plot labels](https://discourse.julialang.org/t/makie-rotate-bar-plot-labels/68679)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 3\
**Last updated:** [October 22, 2021, 8:42am UTC](https://discourse.julialang.org/t/makie-rotate-bar-plot-labels/68679 "2021-10-22T08:42:20Z")

</div>

I have a bar-plot: But the labels are hard to read in this orientation. A workaround is to make the plot with direction = :x: But is there a way to simply rotate the labels in the first plot? Code used to create…

---

## [Inset axis in Makie](https://discourse.julialang.org/t/inset-axis-in-makie/70209)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 4:45pm UTC](https://discourse.julialang.org/t/inset-axis-in-makie/70209 "2021-10-22T16:45:06Z")

</div>

How to make the inset axis non-transparent? using CairoMakie f = Figure() ax1 = Axis(f\[1,1\]) scatter!(ax1, randn(1000), randn(1000)) ax2 = Axis(f\[1,1\], width=Relative(0.2), height=Relative(0.3), halign=0.1, valign=0.1, …

---

## [Makie - Clipped heatmap](https://discourse.julialang.org/t/makie-clipped-heatmap/70014)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 7:55am UTC](https://discourse.julialang.org/t/makie-clipped-heatmap/70014 "2021-10-19T07:55:21Z")

</div>

Hello! Is there a way to get a clipped heatmap in Makie? MWE would be: # Packages using GLMakie GLMakie.activate!() # Ranges a = -3:0.033:3 b = -3:0.033:3 # Function f(x,y) = (x\*y)/(1-abs(x+y)) # Plot \_fig = Figure(…

---

## [Unicode support for other fonts in Plots](https://discourse.julialang.org/t/unicode-support-for-other-fonts-in-plots/69971)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [October 18, 2021, 7:18pm UTC](https://discourse.julialang.org/t/unicode-support-for-other-fonts-in-plots/69971 "2021-10-18T19:18:20Z")

</div>

We can use unicode symbols in plots, like: julia\> plot(rand(10),label="π → 10⁻¹ ×") However, if we change the fonts, most commonly that not this errors: julia\> plot(rand(10),label="π → 10⁻¹ ×",fontfamily="Computer …

---

## [NN Activation Functions with Plotly Dash](https://discourse.julialang.org/t/nn-activation-functions-with-plotly-dash/69992)

<div class="topic-metadata">

**Author:** [@cepel](https://discourse.julialang.org/u/cepel)\
**Replies:** 0\
**Last updated:** [October 18, 2021, 5:44pm UTC](https://discourse.julialang.org/t/nn-activation-functions-with-plotly-dash/69992 "2021-10-18T17:44:35Z")

</div>

Hey everyone! I developed a Dash Julia application for visualizing activation functions in neural networks. You can select multiple activation functions and compare on a line chart. Feel free to review the codes on GitH…

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

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