Skip to content

PolarAxis not supported #494

Description

@marcpabst

Bug description

PolarAxis is not supported.

Steps to reproduce

Running

AlgebraOfGraphics.draw(plt, axis=(type=PolarAxis, thetalimits=(-pi, pi)))

results in

MethodError: Cannot `convert` an object of type 
  Type{PolarAxis} to an object of type 
  Union{Type{Axis}, Type{Axis3}}

Changing this struct to include Type{PolarAxis} should fix the problem, but needs testing:

struct AxisSpec
type::Union{Type{Axis}, Type{Axis3}}
position::Tuple{Int,Int}
attributes::NamedArguments
end

Edit: Adding PolarAxis is apparently not enough, results in

MethodError: no method matching initialize_block!(::PolarAxis; zlabel::String, zticks::MakieCore.Automatic, ylabel::String, xlabel::String, xticks::MakieCore.Automatic, yticks::MakieCore.Automatic)

Btw: I really like AoG!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions