Skip to content

Conversation

kunzaatko
Copy link

@kunzaatko kunzaatko commented Aug 27, 2025

Makie extension with the same plots as those from the RecipesBase extension.

  • Add documentation to the plot recipes
  • Add to Rotations Documentation
  • export the methods from Rotations? or define them there and import them for documentation?
  • Basic recipe same as from RecipesBase
  • Make the cube in 3D Rotation plot visible better with some edges
  • Add attributes from the children plots
  • Add arrows to the ends of the line segments
  • Use the new Makie ComputationPipeline API
  • Document the attributes
  • fix overlapping segments with mesh in 3D Rotation plot
julia> using Rotations

julia> using GLMakie

julia> rot = Angle2d/3);

julia> plot(rot; axis=(;aspect=DataAspect()))

julia> rot3 = RotXYZ/3, π/2, π/5);

julia> plot(rot3)
rot rot3

@kunzaatko
Copy link
Author

Note

Saving figures using MakieMaestro

julia> rot = RotMatrix/3)
2×2 RotMatrix2{Float64} with indices SOneTo(2)×SOneTo(2):
 0.5       -0.866025
 0.866025   0.5

julia> savefig(() -> plot(rot; axis=(;aspect=DataAspect())), "rot.png", (10u"cm", 15u"cm"))
┌ Warning: Figure directory not set. Using default value: You may set it by calling MakieMaestro.figure_dir!(dir). Using
│ current working directory "/home/kunzaatko/Dev/julia/Rotations"
└ @ MakieMaestro /home/kunzaatko/Dev/julia/MakieMaestro.jl/src/export/utils.jl:32
[ Info: Building figure rot.png in /home/kunzaatko/Dev/julia/Rotations
rot
julia> rot3 = RotXYZ/3, π/2, π/3)
3×3 RotXYZ{Float64} with indices SOneTo(3)×SOneTo(3)(1.0472, 1.5708, 1.0472):
 3.06162e-17  -5.30288e-17   1.0
 0.866025     -0.5          -5.30288e-17
 0.5           0.866025      3.06162e-17

julia> savefig(() -> plot(rot3), "rot3.png", (30u"cm", 30u"cm"); backends=[GLMakie], override_theme=Theme(figure_padding=40), u
pdate=true)
┌ Warning: Figure directory not set. Using default value: You may set it by calling MakieMaestro.figure_dir!(dir). Using
│ current working directory "/home/kunzaatko/Dev/julia/Rotations"
└ @ MakieMaestro /home/kunzaatko/Dev/julia/MakieMaestro.jl/src/export/utils.jl:32
[ Info: Building figure rot3.png in /home/kunzaatko/Dev/julia/Rotations
rot3

@kunzaatko
Copy link
Author

Do you have any suggestions for this?
How should I proceed with the missing TODOs?

  • Should I add the documentation? (I would like to use MakieMaestro for that to make it easier if you permit that)
  • Should I include the plotting methods in the main package so that I can document them there?

@kunzaatko kunzaatko marked this pull request as ready for review August 28, 2025 12:07
@kunzaatko kunzaatko marked this pull request as draft September 1, 2025 11:03
@kunzaatko kunzaatko marked this pull request as ready for review September 1, 2025 11:03
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.

1 participant