Skip to content

Clipping defaults changed when upgrading to GLMakie v0.11 [noticed in Brillouin.jl] #4741

@kbarros

Description

@kbarros
  • Upgrading from v0.10.18 to v0.11.2
  • Yes
  • Mac M1

The package Brillouin.jl includes an extension for Makie plotting. Brillouin.jl uses Makie.Axis3 to create its scene, and it seems that camera defaults may have changed when moving from Makie 0.10 to 0.11. In particular, executing this code from the Brillouin docs,

using Brillouin # Might need CompatHelper branch for updated Makie
using GLMakie
sgnum = 227
Rs = [[1,0,0], [0,1,0], [0,0,1]] # conventional direct basis
kp = irrfbz_path(sgnum, Rs)
pGs = basis(kp)      # primitive reciprocal basis associated with k-path
c = wignerseitz(pGs) # associated Brillouin zone
Pᶜ⁺ᵏ = plot(c, kp)

introduces some clipping with the default camera on Makie 0.11.2:

Image

Zooming out (e.g., with the scroll wheel) would remove the clipping.

This seems to be the relevant Axis3 initialization code from Brillouin.jl (source)

    f[1,1] = ax = Makie.Axis3(f;
        aspect=:data,
        viewmode=:fit,
        xautolimitmargin=(0f0,0f0), yautolimitmargin=(0f0,0f0), zautolimitmargin=(0f0,0f0),
        axis...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions