[Numpy-discussion] numpy histogram data

2021-06-06 Thread Keith Sloan
Okay I have some data which I have created a scatter plot I have also created a histogram of red Galaxy counts for redshift with RedEllipticalMasses.keep_columns(['uminusr','Z_1']) RedEllipticalMa

Re: [Numpy-discussion] numpy histogram data

2021-06-07 Thread Keith Sloan
Thanks Not sure where I get centers & edges from # Plot of Histogram of Stacked Counts of Red elliptical Galaxies versus Red Shift REMrange1 = RedEllipticalMasses[RedEllipticalMasses[RedEllipticalMasses['uminusr']>1.8]['uminusr'] <2.0] print(len(REMrange1)) counts1, bins1 = np.histogram(REMra

Re: [Numpy-discussion] numpy histogram data

2021-06-07 Thread Keith Sloan
Thanks Okay trying to understand the data being returned. I have counts, bins = np.histogram(RedEllipticalMasses['Z_1'],bins=80) If I print lengths I get RedEllipticalMasses is 2514 bins = 81 and counts is 5 ( It is 5 Arrays each of length 80) Okay I can get centers with centers = 0.5 * (bins[

Re: [Numpy-discussion] numpy histogram data

2021-06-08 Thread Keith Sloan
There really is not a lot of other code. RedEllipticalMasses is an Astropy Table read in from a fits file from astropy.table import Table, join import numpy as np RedEllipticalMasses = Table.read('../../GAMA_Data/REMassEClassEmeasure.fits') RedEllipticalMasses['Z_1'] is a single column name 'Z_1'