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

use MakieCore for core recipe functions #998

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
fix missing reference
  • Loading branch information
SimonDanisch committed Jun 2, 2021
commit 24d92680207d55fc8d0d8267f6c52ad2fa98d5ae
3 changes: 1 addition & 2 deletions src/makielayout/layoutables/legend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ function layoutable(::Type{Legend},
# above a 3d plot, but for now this hack is ok.
translate!(scene, (0, 0, 10))
end

onany(title, nbanks, titleposition, rowgap, colgap, patchlabelgap, groupgap, titlegap,
titlevisible, orientation, gridshalign, gridsvalign) do args...
relayout()
Expand Down Expand Up @@ -514,7 +513,7 @@ function layoutable(::Type{Legend}, fig_or_scene,
error("Number of elements not equal: $(length(titles)) titles, $(length(contentgroups)) content groups and $(length(labelgroups)) label groups.")
end


entrygroups = Node{Vector{EntryGroup}}([])
legend = layoutable(Legend, fig_or_scene, entrygroups; kwargs...)
entries = [[LegendEntry(l, pg, legend) for (l, pg) in zip(labelgroup, contentgroup)]
Expand Down
2 changes: 1 addition & 1 deletion src/units.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ basetype(::Type{<: Pixel}) = Pixel
"""
Millimeter on screen. This unit respects the dimension and pixel density of the screen
to represent millimeters on the screen. This is the must use unit for layouting,
that needs to look the same on all kind of screens. Similar as with the [`Pixel`](@ref) unit,
that needs to look the same on all kind of screens. Similar as with the `Pixel` unit,
a camera can change the actually displayed dimensions of any object using the millimeter unit.
"""
struct Millimeter{T} <: Unit{T}
Expand Down