Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makie looses x-axis precision when plotting unix time #3003

Closed
truedichotomy opened this issue Jun 12, 2023 · 2 comments
Closed

Makie looses x-axis precision when plotting unix time #3003

truedichotomy opened this issue Jun 12, 2023 · 2 comments
Labels
Makie Backend independent issues (Makie core)

Comments

@truedichotomy
Copy link

truedichotomy commented Jun 12, 2023

When plotting a time series data using unix time represented as Float64 as my x-axis, Makie looses precision and makes the plot look very blocky. Attached are two plots using the exact same dataset, except in the second figure, x is subtracted by x[1].

GLMakie.plot(x, y, color=z)
Screenshot 2023-06-12 at 17 40 32

GLMakie.plot(x .- x[1], y, color=z)
Screenshot 2023-06-12 at 17 51 37

julia> versioninfo()
Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores
@ffreyer
Copy link
Collaborator

ffreyer commented Jun 13, 2023

This is also a float precision issue, see #2848

truedichotomy added a commit to oceansensing/jlglider that referenced this issue Jun 14, 2023
@asinghvi17 asinghvi17 added the Makie Backend independent issues (Makie core) label Jun 16, 2023
@ffreyer
Copy link
Collaborator

ffreyer commented May 24, 2024

Should be fixed in Makie 0.21 via #3681

@ffreyer ffreyer closed this as completed May 24, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Makie Backend independent issues (Makie core)
Projects
None yet
Development

No branches or pull requests

3 participants