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

Fix axis mirrored ticks alignment #3598

Merged
merged 3 commits into from Feb 4, 2024

Conversation

jkrumbiegel
Copy link
Collaborator

  • move mirrored ticks by spine width
  • adjust test

Fixes #3431

@MakieBot
Copy link
Collaborator

MakieBot commented Feb 4, 2024

Compile Times benchmark

Note, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running:

using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(fig)
using create display create display
GLMakie 3.29s (3.21, 3.33) 0.04+- 369.42ms (363.05, 374.10) 4.97+- 453.75ms (446.68, 457.79) 4.60+- 6.91ms (6.79, 7.02) 0.07+- 24.48ms (24.30, 24.70) 0.15+-
master 3.26s (3.24, 3.28) 0.01+- 345.38ms (292.77, 399.83) 49.04+- 455.69ms (435.86, 505.94) 23.53+- 6.90ms (6.69, 6.98) 0.10+- 24.48ms (24.25, 24.55) 0.10+-
evaluation 0.99x invariant, 0.02s (0.79d, 0.18p, 0.03std) 0.93x noisy🤷‍♀️, 24.04ms (0.69d, 0.24p, 27.01std) 1.00x invariant, -1.94ms (-0.11d, 0.84p, 14.06std) 1.00x invariant, 0.01ms (0.12d, 0.82p, 0.09std) 1.00x invariant, 0.0ms (0.02d, 0.97p, 0.13std)
CairoMakie 3.12s (3.10, 3.15) 0.02+- 341.07ms (330.70, 347.04) 5.70+- 147.00ms (144.25, 152.31) 2.76+- 7.47ms (7.37, 7.54) 0.06+- 615.16μs (610.03, 620.70) 3.68+-
master 3.14s (3.12, 3.16) 0.01+- 338.98ms (334.14, 352.87) 6.73+- 147.65ms (145.59, 150.09) 1.87+- 7.46ms (7.40, 7.51) 0.04+- 613.37μs (610.03, 616.38) 2.24+-
evaluation 1.01x faster ✓, -0.02s (-1.36d, 0.03p, 0.02std) 0.99x invariant, 2.09ms (0.34d, 0.54p, 6.21std) 1.00x invariant, -0.65ms (-0.28d, 0.62p, 2.32std) 1.00x invariant, 0.01ms (0.30d, 0.58p, 0.05std) 1.00x invariant, 1.79μs (0.59d, 0.30p, 2.96std)
WGLMakie 3.64s (3.61, 3.68) 0.02+- 321.36ms (317.40, 326.15) 2.96+- 8.77s (8.72, 8.84) 0.04+- 8.97ms (8.87, 9.07) 0.07+- 72.11ms (67.74, 79.09) 4.48+-
master 3.64s (3.63, 3.68) 0.02+- 322.44ms (319.04, 329.67) 3.73+- 8.79s (8.73, 8.88) 0.05+- 9.16ms (8.94, 10.07) 0.41+- 70.51ms (67.96, 75.32) 3.24+-
evaluation 1.00x invariant, -0.0s (-0.15d, 0.78p, 0.02std) 1.00x invariant, -1.08ms (-0.32d, 0.56p, 3.35std) 1.00x invariant, -0.02s (-0.40d, 0.47p, 0.04std) 1.02x invariant, -0.19ms (-0.64d, 0.28p, 0.24std) 0.98x invariant, 1.6ms (0.41d, 0.46p, 3.86std)

@jkrumbiegel jkrumbiegel merged commit 4ea99ef into master Feb 4, 2024
17 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/fix-axis-mirror-ticks-alignment branch February 4, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asymmetric ticks when mirrored and align=1
2 participants