ITADN

`hist` doesn't have a`stack` keyword although it's in a sample code.

#5535Closedryofurue 创建于 2026-02-25
documentation
R
ryofuruecommented
For incorrect Documentation - [x] What version of Makie are you running? (`]st -m Makie`) --- `[ee78f7c6] Makie v0.24.8` - [x] Please provide a link to the page/section or name the Julia object/function that has incorrect documentation. --- https://docs.makie.org/dev/reference/plots/hist - [x] Please explain what is incorrect --- See below. I just copied the code of "Stack & Dodge", included the program in the julia REPL, and got the following error: ``` julia> include("try.jl") ERROR: LoadError: Invalid attribute stack for plot type Hist{Tuple{Vector{Float64}}}. Did you mean space? The available plot attributes for Hist{Tuple{Vector{Float64}}} are: alpha colorscale gap label_color lowclip overdraw transparency bar_labels cycle highclip label_font model scale_to visible bins depth_shift inspectable label_formatter nan_color space weights clip_planes direction inspector_clear label_offset normalization ssao color fillto inspector_hover label_position offset strokecolor colormap flip_labels_at inspector_label label_rotation over_background_color strokewidth colorrange fxaa label_align label_size over_bar_color transformation Stacktrace: [1] validate_attribute_keys(plot::Hist{Tuple{Vector{Float64}}}) @ Makie ~/.julia/packages/Makie/Vn16E/src/recipes.jl:944 [2] push!(scene::Scene, plot::Plot) @ Makie ~/.julia/packages/Makie/Vn16E/src/scenes.jl:512 [3] plot! @ ~/.julia/packages/Makie/Vn16E/src/interfaces.jl:212 [inlined] [4] plot!(ax::Axis, plot::Hist{Tuple{Vector{Float64}}}) @ Makie ~/.julia/packages/Makie/Vn16E/src/figureplotting.jl:437 [5] _create_plot(::Function, ::Dict{Symbol, Any}, ::GridPosition, ::Vararg{Any}) @ Makie ~/.julia/packages/Makie/Vn16E/src/figureplotting.jl:336 [6] hist(::GridPosition, ::Vararg{…}; kw::@Kwargs{…}) @ Makie ~/.julia/packages/Makie/Vn16E/src/recipes.jl:530 [7] top-level scope @ ~/Library/CloudStorage/Dropbox/ctw-beams/utils/try.jl:7 [8] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [9] top-level scope @ REPL[1]:1 in expression starting at /Users/furue/Library/CloudStorage/Dropbox/ctw-beams/utils/try.jl:7 Some type information was truncated. Use `show(err)` to see complete types. ``` I'm just trying to learn how to make a "dodge" histogram and don't know how to proceed. Before this problem is fixed, what material I study? I tried looking at the source code but I was lost in the long source code. Julia Version 1.12.5 (2026-02-09).
关闭于 2026-02-26 5 条评论