From c156cdd4fa5861555dd688015e0489a0c7332e16 Mon Sep 17 00:00:00 2001 From: dehann Date: Wed, 16 Oct 2019 14:18:14 -0400 Subject: [PATCH] test plotKDE array fix #65 --- test/runtests.jl | 1 + test/testPlotKDE.jl | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/testPlotKDE.jl 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