From 950aa63958d7eb5821afe3bca8e56e434939726d Mon Sep 17 00:00:00 2001 From: Spencer Everett Date: Tue, 24 May 2016 16:03:59 -0500 Subject: [PATCH] Changed the difference `kappamap` to be the halo map minus the binned Hilbert map. #68 #96 --- pangloss/plotting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pangloss/plotting.py b/pangloss/plotting.py index b8f43e2..875ae25 100644 --- a/pangloss/plotting.py +++ b/pangloss/plotting.py @@ -691,6 +691,7 @@ def compare_binned_maps(Kmap=None,Khalo=None,fig_size=20,savefile=None): ''' Plots two binned kappamaps, one from lensed_by_maps() and one from lensed_by_halos(), as well as their difference. NOTE: Currently, this will only compare binned kappamaps that are square. + NOTE: Currenlty, colormap only displays correclty for a fig_size of 20. ''' if Kmap is None or Khalo is None: @@ -703,7 +704,7 @@ def compare_binned_maps(Kmap=None,Khalo=None,fig_size=20,savefile=None): assert Kmap.field[0] == Khalo.field[0] # Create difference kappamap (map-halo) - kappadata = np.array([Kmap.values[0] - Khalo.values[0]]) + kappadata = np.array([Khalo.values[0] - Kmap.values[0]]) assert Kmap.map_x == Khalo.map_x assert Kmap.map_y == Khalo.map_y map_xy = [Kmap.map_x, Kmap.map_y]