Skip to content

Commit

Permalink
Merge pull request #66 from JuliaRobotics/test/4Q19/65
Browse files Browse the repository at this point in the history
test plotKDE array fix #65
  • Loading branch information
dehann authored Oct 17, 2019
2 parents 88b65b9 + c156cdd commit ab4c273
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
24 changes: 24 additions & 0 deletions test/testPlotKDE.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab4c273

Please sign in to comment.