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

Error plotting dates on x-axis #406

Open
deyandyankov opened this issue Jun 18, 2022 · 0 comments
Open

Error plotting dates on x-axis #406

deyandyankov opened this issue Jun 18, 2022 · 0 comments

Comments

@deyandyankov
Copy link

Bug description

I am trying to plot a series with Date objects in the x-axis according to the example in the documentation and draw errors out.

Steps to reproduce

deyan@murderbot bugreport % julia
  Activating project at `~/bugreport/bugreport`
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.0-rc1 (2022-05-27)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> versioninfo()
Julia Version 1.8.0-rc1
Commit 6368fdc6565 (2022-05-27 18:33 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.3.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 10 on 8 virtual cores
Environment:
  JULIA_NUM_THREADS = 10

(bugreport) pkg> st
Status `~/bugreport/bugreport/Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.8
  [13f3f980] CairoMakie v0.8.6

julia> using Dates, AlgebraOfGraphics, CairoMakie
┌ Warning: SIMD capacity not detected by ScanByte, using scalar fallback
└ @ ScanByte ~/.julia/packages/ScanByte/eOQJf/src/ScanByte.jl:11

julia> df1 = (; x = [5.0], y = [5.0])
(x = [5.0], y = [5.0])

julia> plt = data(df1) * mapping(:x, :y) * visual(Lines)
Layer(AlgebraOfGraphics.Visual(Lines, {}), (x = [5.0], y = [5.0]), Any[:x, :y], {})

julia> draw(plt) # this works as expected, when x is a Float
Scene (800px, 600px):
  0 Plots
  1 Child Scene:
    └ Scene (800px, 600px)

julia> df2 = (; x = [Date(now())], y = [5.0])
(x = [Date("2022-06-18")], y = [5.0])

julia> plt = data(df2) * mapping(:x, :y) * visual(Lines)
Layer(AlgebraOfGraphics.Visual(Lines, {}), (x = [Date("2022-06-18")], y = [5.0]), Any[:x, :y], {})

julia> draw(plt) # this crashes when x is a Date
ERROR: `Makie.convert_arguments` for the plot type MakieCore.Text{Tuple{Vector{Any}}} and its conversion trait PointBased() was unsuccessful.
[...]

Error reporting

julia> draw(plt)
ERROR: `Makie.convert_arguments` for the plot type MakieCore.Text{Tuple{Vector{Any}}} and its conversion trait PointBased() was unsuccessful.
The signature that could not be converted was:
::Vector{Any}

Makie needs to convert all plot input arguments to types that can be consumed by the backends (typically Arrays with Float32 elements).
You can define a method for `Makie.convert_arguments` (a type recipe) for these types or their supertypes to make this set of arguments convertible (See http://makie.juliaplots.org/stable/documentation/recipes/index.html).

Alternatively, you can define `Makie.convert_single_argument` for single arguments which have types that are unknown to Makie but which can be converted to known types and fed back to the conversion pipeline.

Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any}; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:17
  [3] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:7
  [4] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:302
  [5] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287
  [6] plot!(P::Type{MakieCore.Text}, scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271
  [7] text!(::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
  [8] plot!(plot::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/basic_recipes/text.jl:134
  [9] plot!(scene::Scene, P::Type{MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}}, attributes::Attributes, input::Tuple{Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:402
 [10] plot!(scene::Scene, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:320
 [11] plot!
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287 [inlined]
 [12] #plot!#132
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271 [inlined]
 [13] text!(::Scene, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Any, NTuple{8, Symbol}, NamedTuple{(:align, :rotation, :textsize, :font, :color, :visible, :markerspace, :inspectable), Tuple{Observable{Tuple{Symbol, Symbol}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Symbol, Bool}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
 [14] Makie.LineAxis(parent::Scene, attrs::Attributes)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:438
 [15] #LineAxis#1153
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:3 [inlined]
 [16] initialize_block!(ax::Axis; palette::Nothing)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:317
 [17] initialize_block!(ax::Axis)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:168
 [18] _block(::Type{Axis}, ::Figure; bbox::Nothing, kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:393
 [19] _block(::Type{Axis}, ::GridPosition; kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:284
 [20] #_#1001
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:269 [inlined]
 [21] AxisEntries(ae::AlgebraOfGraphics.AxisSpecEntries, fig::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/entries.jl:64
 [22] #119
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91 [inlined]
 [23] iterate
    @ ./generator.jl:47 [inlined]
 [24] _collect(c::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}}, #unused#::Base.EltypeUnknown, isz::Base.HasShape{2})
    @ Base ./array.jl:807
 [25] collect_similar(cont::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}})
    @ Base ./array.jl:716
 [26] map(f::Function, A::Matrix{AlgebraOfGraphics.AxisSpecEntries})
    @ Base ./abstractarray.jl:2931
 [27] compute_axes_grid(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91
 [28] #238
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21 [inlined]
 [29] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [30] plot!(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21
 [31] (::AlgebraOfGraphics.var"#242#243"{NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, Layer})(f::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:46
 [32] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [33] #draw#241
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:45 [inlined]
 [34] draw(s::Layer)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:42
 [35] top-level scope
    @ REPL[9]:1

caused by: MethodError: no method matching convert_arguments(::Type{MakieCore.Text{Tuple{Vector{Any}}}}, ::Vector{Any})
Closest candidates are:
  convert_arguments(::Union{Type{Any}, Type{<:AbstractPlot}}, ::Union{AbstractVector, IntervalSets.Interval}, ::Distributions.Distribution) at ~/.julia/packages/Makie/xVGV7/src/stats/distributions.jl:21
  convert_arguments(::Union{Type{Any}, Type{<:AbstractPlot}}, ::AbstractVector, ::StatsBase.ECDF) at ~/.julia/packages/Makie/xVGV7/src/stats/ecdf.jl:22
  convert_arguments(::Union{Type{Any}, Type{<:AbstractPlot}}, ::AbstractVector, ::Function) at ~/.julia/packages/Makie/xVGV7/src/conversions.jl:564
  ...
Stacktrace:
  [1] convert_arguments_individually(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:47
  [2] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any}; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:14
  [3] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:7
  [4] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:302
  [5] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287
  [6] plot!(P::Type{MakieCore.Text}, scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271
  [7] text!(::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
  [8] plot!(plot::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/basic_recipes/text.jl:134
  [9] plot!(scene::Scene, P::Type{MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}}, attributes::Attributes, input::Tuple{Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:402
 [10] plot!(scene::Scene, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:320
 [11] plot!
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287 [inlined]
 [12] #plot!#132
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271 [inlined]
 [13] text!(::Scene, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Any, NTuple{8, Symbol}, NamedTuple{(:align, :rotation, :textsize, :font, :color, :visible, :markerspace, :inspectable), Tuple{Observable{Tuple{Symbol, Symbol}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Symbol, Bool}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
 [14] Makie.LineAxis(parent::Scene, attrs::Attributes)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:438
 [15] #LineAxis#1153
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:3 [inlined]
 [16] initialize_block!(ax::Axis; palette::Nothing)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:317
 [17] initialize_block!(ax::Axis)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:168
 [18] _block(::Type{Axis}, ::Figure; bbox::Nothing, kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:393
 [19] _block(::Type{Axis}, ::GridPosition; kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:284
 [20] #_#1001
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:269 [inlined]
 [21] AxisEntries(ae::AlgebraOfGraphics.AxisSpecEntries, fig::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/entries.jl:64
 [22] #119
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91 [inlined]
 [23] iterate
    @ ./generator.jl:47 [inlined]
 [24] _collect(c::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}}, #unused#::Base.EltypeUnknown, isz::Base.HasShape{2})
    @ Base ./array.jl:807
 [25] collect_similar(cont::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}})
    @ Base ./array.jl:716
 [26] map(f::Function, A::Matrix{AlgebraOfGraphics.AxisSpecEntries})
    @ Base ./abstractarray.jl:2931
 [27] compute_axes_grid(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91
 [28] #238
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21 [inlined]
 [29] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [30] plot!(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21
 [31] (::AlgebraOfGraphics.var"#242#243"{NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, Layer})(f::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:46
 [32] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [33] #draw#241
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:45 [inlined]
 [34] draw(s::Layer)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:42
 [35] top-level scope
    @ REPL[9]:1

caused by: MethodError: no method matching convert_arguments(::PointBased, ::Vector{Any})
Closest candidates are:
  convert_arguments(::PointBased, ::AbstractVector, ::AbstractVector, ::AbstractMatrix) at ~/.julia/packages/Makie/xVGV7/src/conversions.jl:112
  convert_arguments(::SurfaceLike, ::AbstractVector{T1}, ::AbstractVector{T2}, ::Function) where {T1, T2} at ~/.julia/packages/Makie/xVGV7/src/conversions.jl:366
  convert_arguments(::Type{<:Combined{Makie.rainclouds}}, ::Any, ::Any) at ~/.julia/packages/Makie/xVGV7/src/basic_recipes/raincloud.jl:186
  ...
Stacktrace:
  [1] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any}; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:10
  [2] convert_arguments(T::Type{MakieCore.Text{Tuple{Vector{Any}}}}, args::Vector{Any})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/conversions.jl:7
  [3] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:302
  [4] plot!(scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Any}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287
  [5] plot!(P::Type{MakieCore.Text}, scene::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Vector{Any}}; kw_attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271
  [6] text!(::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Observable, NTuple{27, Symbol}, NamedTuple{(:text, :transparency, :strokecolor, :specular, :visible, :space, :ssao, :word_wrap_width, :justification, :font, :align, :textsize, :nan_color, :shininess, :strokewidth, :rotation, :overdraw, :lineheight, :transformation, :model, :depth_shift, :color, :offset, :markerspace, :inspectable, :linewidth, :diffuse), Tuple{Observable{Vector{AbstractString}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
  [7] plot!(plot::MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/basic_recipes/text.jl:134
  [8] plot!(scene::Scene, P::Type{MakieCore.Text{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}}}, attributes::Attributes, input::Tuple{Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}}, args::Observable{Tuple{Vector{Tuple{AbstractString, Point{2, Float32}}}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:402
  [9] plot!(scene::Scene, P::Type{MakieCore.Text}, attributes::Attributes, args::Observable{Vector{Tuple{AbstractString, Point{2, Float32}}}}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:320
 [10] plot!
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:287 [inlined]
 [11] #plot!#132
    @ ~/.julia/packages/Makie/xVGV7/src/interfaces.jl:271 [inlined]
 [12] text!(::Scene, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Any, NTuple{8, Symbol}, NamedTuple{(:align, :rotation, :textsize, :font, :color, :visible, :markerspace, :inspectable), Tuple{Observable{Tuple{Symbol, Symbol}}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Observable{Any}, Symbol, Bool}}})
    @ MakieCore ~/.julia/packages/MakieCore/4Hq26/src/recipes.jl:37
 [13] Makie.LineAxis(parent::Scene, attrs::Attributes)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:438
 [14] #LineAxis#1153
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/lineaxis.jl:3 [inlined]
 [15] initialize_block!(ax::Axis; palette::Nothing)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:317
 [16] initialize_block!(ax::Axis)
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks/axis.jl:168
 [17] _block(::Type{Axis}, ::Figure; bbox::Nothing, kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:393
 [18] _block(::Type{Axis}, ::GridPosition; kwargs::Base.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:xlabel, :xticks, :ylabel, :yticks), Tuple{String, Tuple{Vector{Float64}, Vector{String}}, String, MakieCore.Automatic}}})
    @ Makie ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:284
 [19] #_#1001
    @ ~/.julia/packages/Makie/xVGV7/src/makielayout/blocks.jl:269 [inlined]
 [20] AxisEntries(ae::AlgebraOfGraphics.AxisSpecEntries, fig::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/entries.jl:64
 [21] #119
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91 [inlined]
 [22] iterate
    @ ./generator.jl:47 [inlined]
 [23] _collect(c::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}}, #unused#::Base.EltypeUnknown, isz::Base.HasShape{2})
    @ Base ./array.jl:807
 [24] collect_similar(cont::Matrix{AlgebraOfGraphics.AxisSpecEntries}, itr::Base.Generator{Matrix{AlgebraOfGraphics.AxisSpecEntries}, AlgebraOfGraphics.var"#119#120"{Figure}})
    @ Base ./array.jl:716
 [25] map(f::Function, A::Matrix{AlgebraOfGraphics.AxisSpecEntries})
    @ Base ./abstractarray.jl:2931
 [26] compute_axes_grid(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/algebra/layers.jl:91
 [27] #238
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21 [inlined]
 [28] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [29] plot!(fig::Figure, s::Layer; axis::NamedTuple{(), Tuple{}}, palettes::NamedTuple{(), Tuple{}})
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:21
 [30] (::AlgebraOfGraphics.var"#242#243"{NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, NamedTuple{(), Tuple{}}, Layer})(f::Figure)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:46
 [31] update
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:10 [inlined]
 [32] #draw#241
    @ ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:45 [inlined]
 [33] draw(s::Layer)
    @ AlgebraOfGraphics ~/.julia/packages/AlgebraOfGraphics/AJE5M/src/draw.jl:42
 [34] top-level scope
    @ REPL[9]:1

julia>

Images

If applicable, add images of the plots you obtained to help explain your problem.

Version info

julia> versioninfo()
Julia Version 1.8.0-rc1
Commit 6368fdc6565 (2022-05-27 18:33 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.3.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 10 on 8 virtual cores
Environment:
  JULIA_NUM_THREADS = 10

(bugreport) pkg> st
Status `~/bugreport/bugreport/Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.8
  [13f3f980] CairoMakie v0.8.6

(bugreport) pkg>
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

No branches or pull requests

1 participant