diff --git a/test/runtests.jl b/test/runtests.jl index 4733114..2de8e0f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -21,6 +21,7 @@ using RoMEPlotting include("testPose2Point2Plotting.jl") +include("testPlotKDE.jl") # @warn "plotMCMC needs ImageMagick on osx, not running test yet." # plotMCMC(tree, :x1, show=false) diff --git a/test/testPlotKDE.jl b/test/testPlotKDE.jl new file mode 100644 index 0000000..f5e52ad --- /dev/null +++ b/test/testPlotKDE.jl @@ -0,0 +1,24 @@ +# test multi kde plot, issue 65 + +using RoME, RoMEPlotting +using Test +# Gadfly.set_default_plot_size(35cm, 25cm) + + +@testset "test plotKDE array (issue 65)" begin + + +fg = initfg() + +addVariable!(fg, :x0, ContinuousScalar) +addVariable!(fg, :x1, ContinuousScalar) + +addFactor!(fg, [:x0], Prior(Normal())) +addFactor!(fg, [:x0;:x1], LinearConditional(Normal())) + +ensureAllInitialized!(fg) + +plotKDE(fg, ls(fg)) + + +end