Project

General

Profile

Bug #1365

Bunch::root_histogram auto-selects poor x binning in 2D

Added by Rogers, Chris over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
24 October 2013
Due date:
% Done:

100%

Estimated time:

Description

    if nx_bins==None: nx_bins = int(num_events/10.)
    if not y_axis_string == '' and draw_option=='': 
      draw_option = 'COL'
      y_points = self.list_get_hit_variable([y_axis_string], [y_axis_units])[0]
      if nx_bins == None: nx_bins = int(num_events**0.7/10.)
      if ny_bins == None: ny_bins = int(num_events**0.7/10.)

Should be

    if y_axis_string == '' and nx_bins==None:
      nx_bins = int(num_events/10.)
    if not y_axis_string == '' and draw_option=='': 
      draw_option = 'COL'
      y_points = self.list_get_hit_variable([y_axis_string], [y_axis_units])[0]
      if nx_bins == None: nx_bins = int(num_events**0.7/10.)
      if ny_bins == None: ny_bins = int(num_events**0.7/10.)

#1

Updated by Rogers, Chris about 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This has been implemented already...

Also available in: Atom PDF