From 99fe4659afe8a11bce8d9eba66df99d43bd0dbd5 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Wed, 27 Jun 2018 21:09:31 -0500 Subject: [PATCH] Fix divide by zero error. --- examples/fmm-error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fmm-error.py b/examples/fmm-error.py index 110ec66b..c3350786 100644 --- a/examples/fmm-error.py +++ b/examples/fmm-error.py @@ -78,7 +78,7 @@ def main(): import matplotlib matplotlib.use('Agg') - im = fplot.show_scalar_in_matplotlib(np.log10(np.abs(err))) + im = fplot.show_scalar_in_matplotlib(np.log10(np.abs(err) + 1e-17)) from matplotlib.colors import Normalize im.set_norm(Normalize(vmin=-12, vmax=0)) -- GitLab