Questions tagged [makie.jl]
50 questions
6
votes
2 answers
How do I delete dots created by scatter! in Julia (using Makie)
I am quite new to Julia. I am currently working on a small program, which requires me to plot a dot and remove it later (there will only be one dot at every time).
I am using the the Makie package to visualize everything, but I haven't found a way…

noahkiwi
- 63
- 3
6
votes
1 answer
Quantization distortion in x-axis of GLMakie plot. Why?
I create a simple plot using GLMakie:
GLMakie.scatter( range((-3e-9+1e-3)..(3e-9+1e-3),100), range(1..100,100) )
The result looks like this:
Looks like the x-axis is heavily quantized. The Plots package handles the same command just…

aquaticapetheory
- 293
- 1
- 8
5
votes
1 answer
How does one create a cube with Julia and Makie?
The following Julia program uses Makie to create the image shown below, a "cube with holes." However, I would like to eliminate the holes, and also make the cube nearer the shape of an actual cube, with only slightly rounded corners and edges. …

user3134725
- 1,003
- 6
- 12
4
votes
1 answer
Makie boxplot width is ignored if only one boxplot
I am using CairoMakie to plot a boxplot. The argument width in boxplot seems to work only if there are 2 or more boxplots to plot, but ignored if there is only one boxplot. For instance,
using CairoMakie
xs = rand(1:2, 1000)
ys =…

cbsteh
- 809
- 6
- 19
3
votes
1 answer
How to change slider position in Makie animation?
I want to create gif animation on my topoplot and I almost succeeded. The only problem is that slider position does not move. How to make it moving?
Here is my code:
xs = range(-0.3, length=size(dat_e, 2), step=1 ./ 128)
sg = SliderGrid(f[2, 1],
…

Vladimir Mikheev
- 335
- 1
- 8
3
votes
2 answers
How to set custom x and y tick values in a Makie heatmap
I want to make a heatmap in Julia using Makie (CairoMakie) with custom x and y tick values on the axes, like this one from Seaborn.
Any suggestions on how to modify the figure to het the months January to December on the Y-axis and the years 1949 to…

René
- 4,594
- 5
- 23
- 52
2
votes
3 answers
Makie: Non-overlapping label placement algorithm for scatter plots
I am using CairoMakie to scatter plot an XY data set but using labels as markers:
using CairoMakie
x = [0, 0.5, 0.50]
y = [0, 0.5, 0.51]
lbls = ["O", "A", "B"]
fig = Figure()
ax = Axis(fig[1,1])
scatter!(ax, x, y, marker=:circle, markersize=10,…

cbsteh
- 809
- 6
- 19
2
votes
2 answers
In Makie.jl, how to shade range of density plot?
How can I shade the middle 50% of this density plot a different color of blue (or different alpha transparency)?
using CairoMakie
f = Figure()
Axis(f[1, 1])
density!(randn(200))
f

Alec
- 4,235
- 1
- 34
- 46
2
votes
0 answers
Making an interactive plot in Julia in Colab
I am trying to run Julia v1.7.3 in google colab, following the set-up instructions from this notebook.
It mostly runs well, but I'm having a ton of trouble getting interactive plots to work. A lot of people seem to have this difficulty as well, as…

seeker_after_truth
- 385
- 3
- 20
2
votes
0 answers
ERROR: MethodError: no method matching transformation(::Scene)
I have this weird issue since this morning, when i try to use any Agent_plotting method
ex:abmplot,abmexploration,abmvideo from The Agents.jl, Interactive dynamics and Makie Packages.
The code and package version haven't been updated during the…

Benjamin 2000
- 21
- 1
2
votes
1 answer
Loop live update Julia plot
I'm brand new to Julia (v1.7.1) and I've been using VSCode as an IDE. In VSCode (v1.64) I've installed the Julia Extension (v1.5.10). When plotting in VSCode, the plot shows up in the plot pane by default. I'm using the Plots (v1.25.7) package and…

ThatsRightJack
- 721
- 6
- 29
2
votes
1 answer
Define a Topographic EEG/MEG plot function using Julia
Is it possible to define a function like plot_topography in MatLab to draw the Topographic EEG/MEG plot in Julia?

Likan Zhan
- 1,056
- 6
- 14
2
votes
0 answers
Plotting Spheres Around Coordinates in Julia using Makie.jl
I have a data structure that stores 3D structures as a bounding volume hierarchy of spheres and outputs a file containing the 3D coordinates and the radii of the spheres. I'm trying to plot these spheres using Makie.jl, but I've so far been…

MervynLarrierII.
- 21
- 3
2
votes
1 answer
Link axes in Makie.jl if other plot elements present
I would like to create multiple subplots with their own individual legends and shared y-axis limits. I am currently creating the subplots in a loop by doing the following:
fig = Figure()
for i in 1:3
lines(fig[i, 1], rand(10),…

Ian Weaver
- 150
- 9
2
votes
2 answers
Upgrading makie package
I have Julia 1.5.2 in my machine. Recently I installed a plotting package called Makie and its backend GLMakie in a Julia environment. The package was initially working fine. But then after adding a few other packages MakieThemes, AbstractPlotting,…

imantha
- 2,676
- 4
- 23
- 46