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

[BUG] Edgelabel not working for :tree, :buchheim and :chorddiagram #155

Open
ValentinKaisermayer opened this issue Jun 20, 2021 · 2 comments

Comments

@ValentinKaisermayer
Copy link
Contributor

import Plots, GraphRecipes

source = [1, 2, 2, 1, 5, 5, 1, 8, 8]
destiny =  [2, 3, 4, 5, 6, 7, 8, 9, 10]

edgelabel=Dict((s,d) => "$s => $d" for (s,d) in zip(source, destiny))

Plots.plot(GraphRecipes.GraphPlot((source, destiny)), method=:buchheim, edgelabel=edgelabel)
@ValentinKaisermayer
Copy link
Contributor Author

ERROR: BoundsError: attempt to access 0-element Vector{Array} at index [1]
Stacktrace:
  [1] getindex
    @ .\array.jl:801 [inlined]
  [2] macro expansion
    @ \.julia\packages\GraphRecipes\5fwQZ\src\graphs.jl:859 [inlined]
  [3] macro expansion
    @ \.julia\packages\RecipesBase\92zOw\src\RecipesBase.jl:319 [inlined]
  [4] macro expansion
    @ \.julia\packages\GraphRecipes\5fwQZ\src\graphs.jl:852 [inlined]
  [5] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, g::GraphRecipes.GraphPlot)
    @ GraphRecipes \.julia\packages\RecipesBase\92zOw\src\RecipesBase.jl:282
  [6] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline \.julia\packages\RecipesPipeline\CirY4\src\user_recipe.jl:36
  [7] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline \.julia\packages\RecipesPipeline\CirY4\src\RecipesPipeline.jl:70
  [8] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
    @ Plots \.julia\packages\Plots\FKcum\src\plot.jl:172
  [9] #plot#154
    @ \.julia\packages\Plots\FKcum\src\plot.jl:58 [inlined]
 [10] top-level scope
    @ REPL[2]:1

@ValentinKaisermayer
Copy link
Contributor Author

Works if curves is set to false.

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