Skip to content

Missing x- and y-ticks at 0.0 with set_zero_subnormals(true) #5122

@thchr

Description

@thchr

A Python package I'm loading (via PythonCall) is somehow setting set_zero_subnormals(true). That's annoying, but I wasn't aware - but what made me aware was that this affected my plotting in Makie.

Specifically, it makes it so that x- or y-ticks marks set to 0 are not shown:

julia> set_zero_subnormals(true);

julia> using GLMakie

julia> faxp=plot(0.0:1.0:5.0, rand(6))

julia> faxp.axis.limits = (0.0, 5.0, 0.0, 1.0)
(0.0, 5.0, 0.0, 1.0)

Will result in a plot like this (not the missing x- and y-tick marks at zero):

Image

The tickmarks do not appear even if we set x.ticks = ([0.0, 5.0], ["Start", "End"]) (similarly for the y-ticks).


You could reasonably argue that the real issue is that pyimport in PythonCall sets set_zero_subnormals(true), but after discussion on Slack, I figured I'd file it as an issue anyway.

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