Skip to content

treeheatmap alternative #16

@cvigilv

Description

@cvigilv

Description

I was tinkering with implementing some tree variations that include heatmaps/bars and opted to start with the easiest way I could think about: plotting a tree in one axis and the heatmap/bar in other axis and linking the y axes. This works in principle, but the tree is "off-by-one".

Could we opt for moving the tree one unit up (start at coordinate (0,1)) or add an option for this?

Example:

Image

Code:

begin
    fig = Figure(size=(1000, 500))
    ax1 = Axis(fig[1, 1])
    ax2 = Axis(fig[1, 2])
    linkyaxes!(ax1, ax2)
    treeplot!(ax1, tree)
    heatmap!(ax2, rand(100, 5))
    fig
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions