changeset 88:8ad844281bf8

variable name
author Jeff Hammel <k0scist@gmail.com>
date Sun, 01 Mar 2015 17:49:42 -0800
parents 8448c62a4917
children ae8b90fed06f
files numerics/histogram.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/histogram.py	Sun Mar 01 17:47:22 2015 -0800
+++ b/numerics/histogram.py	Sun Mar 01 17:49:42 2015 -0800
@@ -115,13 +115,13 @@
     if options.max is None:
         options.min = max([max(column) for column in columns])
 
-    if not options.nbins:
+    if not options.n_bins:
         # find number of bins, if not specified
         # We'll use a guess of 2 items per bin, on average
-        options.nbins = len(columns[0]) / 2
+        options.n_bins = len(columns[0]) / 2
 
     # make some bins
-    bins = frange(options.min, options.max, options.nbins)
+    bins = frange(options.min, options.max, options.n_bins)
 
     # make some histograms
     histograms = []