Skip to content

How to add support for more recipes? #776

Description

@juliohm

I really enjoy AoG for statistical work, and would like to explore it for geometric work as well.

We have a custom Viz recipe in Meshes.jl that displays any collection of geometries with a color option. How to make it compatible with AoG? show_aesthetics shows zero methods for Viz Is there a documentation somewhere explaining how to add methods? The following code should work in theory:

data(geotable) * mapping(:geometry) * visual(Viz) |> draw

Related question

We define the recipe in a Makie.jl extension, so the Viz type is not exported by default. We can get access to it using Viz = Base.get_extension(Meshes, :MeshesMakieExt).Viz, but I wonder if there is a better way. The functions themselves (i.e., viz an viz!) are defined in the source without methods, and implemented in the extension, so they can be easily exported.

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