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

Plotting circuits is broken #103

Open
guyvdbroeck opened this issue Nov 21, 2021 · 1 comment
Open

Plotting circuits is broken #103

guyvdbroeck opened this issue Nov 21, 2021 · 1 comment

Comments

@guyvdbroeck
Copy link
Member

until JuliaTeX/TikzGraphs.jl#48 is fixed

@khosravipasha
Copy link
Collaborator

Plotting is broken again it seems

MethodError: no method matching plot(::LightGraphs.SimpleGraphs.SimpleDiGraph{Int64}; layout=TikzGraphs.Layouts.Layered(-1, -1), labels=["+", "*", "*", "-1", "+", "-2", "3", "1", "+", "2", "-3"], edge_labels=Dict{Any, Any}((1, 2) => "0.3", (1, 3) => "0.7", (5, 7) => "0.6", (9, 10) => "0.2", (5, 6) => "0.4", (9, 11) => "0.8"), edge_style="font=\\tiny")
Closest candidates are:
  plot(::Any, ::TikzGraphs.Layouts.Layout) at ~/.julia/packages/TikzGraphs/IrBoQ/src/TikzGraphs.jl:44 got unsupported keyword arguments "layout", "labels", "edge_labels", "edge_style"
  plot(::Any, ::TikzGraphs.Layouts.Layout, ::Vector{T}; args...) where T<:AbstractString at ~/.julia/packages/TikzGraphs/IrBoQ/src/TikzGraphs.jl:44
  plot(::Any, ::Vector{T}; args...) where T<:AbstractString at ~/.julia/packages/TikzGraphs/IrBoQ/src/TikzGraphs.jl:45
  ...

Stacktrace:
 [1] plot(g::LightGraphs.SimpleGraphs.SimpleDiGraph{Int64}, labels::Vector{String}; args::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:edge_labels, :edge_style), Tuple{Dict{Any, Any}, String}}})
   @ TikzGraphs ~/.julia/packages/TikzGraphs/IrBoQ/src/TikzGraphs.jl:45
 [2] plot(pc::PlainSumNode)
   @ ProbabilisticCircuits.LoadSave ~/.julia/packages/ProbabilisticCircuits/Y2rfA/src/LoadSave/plot.jl:33
 [3] top-level scope
   @ In[13]:6
 [4] eval
   @ ./boot.jl:373 [inlined]
 [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1196

@khosravipasha khosravipasha reopened this Feb 1, 2022
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

2 participants