Skip to content

Commit cb6568b

Browse files
committed
ellipsoid should use 3dof chi2 function
1 parent b2e0b36 commit cb6568b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spatialmath/base/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def ellipsoid(
736736
# process the probability
737737
from scipy.stats.distributions import chi2
738738

739-
s = math.sqrt(chi2.ppf(confidence, df=2)) * scale
739+
s = math.sqrt(chi2.ppf(confidence, df=3)) * scale
740740
else:
741741
s = scale
742742

0 commit comments

Comments
 (0)