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

Basic Makie.jl support #165

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Basic Makie.jl support #165

wants to merge 1 commit into from

Conversation

icweaver
Copy link

@icweaver icweaver commented Mar 9, 2025

Closes #164

Demo

using DynamicQuantities, GLMakie

fig = Figure()

y = 60:10:100

scatter(fig[1, 1], y * u"m")
scatter(fig[1, 2], QuantityArray(y, u"m"))
scatter(fig[2, 1], y * u"kg", y * u"m")
scatter(fig[2, 2], y * us"m/s/Hz")

fig

example

Makie TODO

Package TODO

Copy link
Contributor

github-actions bot commented Mar 9, 2025

Benchmark Results

main 84a6d8a... main / 84a6d8a...
Quantity/creation/Quantity(x) 2.79 ± 0.01 ns 2.79 ± 0.91 ns 1
Quantity/creation/Quantity(x, length=y) 3.43 ± 0.01 ns 3.43 ± 0.01 ns 1
Quantity/with_numbers/*real 3.41 ± 0.01 ns 3.41 ± 0.01 ns 1
Quantity/with_numbers/^int 8.37 ± 1.6 ns 8.37 ± 1.6 ns 1
Quantity/with_numbers/^int * real 8.99 ± 1.9 ns 8.98 ± 1.9 ns 1
Quantity/with_quantity/+y 4.04 ± 0.01 ns 4.04 ± 0.01 ns 1
Quantity/with_quantity//y 3.11 ± 0.001 ns 3.11 ± 0 ns 1
Quantity/with_self/dimension 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
Quantity/with_self/inv 3.42 ± 0.011 ns 3.42 ± 0.01 ns 1
Quantity/with_self/ustrip 2.79 ± 0.009 ns 2.79 ± 0.009 ns 1
QuantityArray/broadcasting/multi_array_of_quantities 0.0846 ± 0.0013 ms 0.0848 ± 0.00059 ms 0.998
QuantityArray/broadcasting/multi_normal_array 0.0497 ± 0.00033 ms 0.0497 ± 0.00038 ms 1
QuantityArray/broadcasting/multi_quantity_array 0.053 ± 0.0084 ms 0.0592 ± 0.00036 ms 0.897
QuantityArray/broadcasting/x^2_array_of_quantities 13 ± 1.7 μs 13.2 ± 1.8 μs 0.982
QuantityArray/broadcasting/x^2_normal_array 2.06 ± 2.1 μs 2.04 ± 0.81 μs 1.01
QuantityArray/broadcasting/x^2_quantity_array 3.83 ± 0.34 μs 4.12 ± 0.49 μs 0.929
QuantityArray/broadcasting/x^4_array_of_quantities 0.0814 ± 0.012 ms 0.0815 ± 0.0007 ms 0.999
QuantityArray/broadcasting/x^4_normal_array 0.0497 ± 0.00029 ms 0.0497 ± 0.00042 ms 0.999
QuantityArray/broadcasting/x^4_quantity_array 0.0499 ± 0.00022 ms 0.0499 ± 0.00033 ms 1
time_to_load 0.187 ± 0.0011 s 0.188 ± 0.0027 s 0.991

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

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.

Potential Makie.jl support?
1 participant