Draw

Class for all the ROOT drawing stuff
/home/runner/micromamba-root/envs/testenv/lib/python3.10/site-packages/fastcore/docscrape.py:225: UserWarning: Unknown section Attributes
  else: warn(msg)
/home/runner/micromamba-root/envs/testenv/lib/python3.10/site-packages/fastcore/docscrape.py:225: UserWarning: Unknown section See Also
  else: warn(msg)
/home/runner/micromamba-root/envs/testenv/lib/python3.10/site-packages/fastcore/docscrape.py:225: UserWarning: Unknown section Notes
  else: warn(msg)
/home/runner/micromamba-root/envs/testenv/lib/python3.10/site-packages/fastcore/docscrape.py:225: UserWarning: Unknown section Examples
  else: warn(msg)

source

FitRes

 FitRes (f)

An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.)

Arrays should be constructed using array, zeros or empty (refer to the See Also section below). The parameters given here refer to a low-level method (ndarray(...)) for instantiating an array.

For more information, refer to the numpy module and examine the methods and attributes of an array.


source

get_color_gradient

 get_color_gradient ()

source

Draw

 Draw (config:str=None, verbose:bool=True)

Main class for drawing histograms and functions

Type Default Details
config str None Path to the config file
verbose bool True verbosity
draw = Draw()
draw
ROOT Draw instance: Title = OFF, Show = ON, Info = ON

source

format_histo

 format_histo (histo, name=None, title=None, x_tit=None, y_tit=None,
               z_tit=None, marker=None, color=None, line_color=None,
               line_style=None, markersize=None, x_off=None, y_off=None,
               z_off=None, lw=None, fill_color=None, fill_style=None,
               stats=None, tit_size=None, lab_size=None, xls=None,
               yls=None, l_off_y=None, l_off_x=None, draw_first=False,
               x_range=None, xr=None, y_range=None, yr=None, z_range=None,
               zr=None, sumw2=None, do_marker=True, style=None,
               ndivx=None, ndivy=None, ncont=None, tick_size=None,
               t_ax_off=None, tform='%H:%M', center_y=False,
               center_x=False, yax_col=None, normalise=None, pal=None,
               rebin=None, y_ticks=None, x_ticks=None, z_ticks=None,
               opacity=None, center_tit=None, **kwargs)

source

set_statbox

 set_statbox (x2=None, y2=None, h=None, w=0.3, entries=False, m=False,
              rms=False, all_stat=False, fit=False, center_x=False,
              center_y=False, form=None, stats=True, **kw)

source

set_entries

 set_entries ()

source

get_window_ratio

 get_window_ratio (c=None)

source

get_stat_margins

 get_stat_margins (c=None, x2=None, y2=None, d=0.01, bottom=False,
                   left=False, h=0.0, w=0.0)

source

get_stat_pos

 get_stat_pos (c, nentries, x2=None, y2=None, d=0.01, h=None, w=0.3,
               center_x=False, center_y=False, bottom=False, left=False)

source

format_statbox

 format_statbox (th, x2=None, y2=None, d=0.01, h=None, w=0.3,
                 entries=False, m=False, rms=False, all_stat=False,
                 fit=False, fit_opt=None, stat_opt=None, center_x=False,
                 center_y=False, bottom=False, left=False, form=None,
                 c=None)

source

format_axis

 format_axis (axis, h, title, tit_offset, tit_size, centre_title,
              lab_size, label_offset, limits, ndiv, tick_size, color=None)

source

format_pie

 format_pie (pie, h=None, r=None, text_size=None, angle3d=None,
             angle_off=None, label_format=None)

source

format_text

 format_text (t, name='text', align=20, color=1, size=0.05, angle=None,
              ndc=None, font=None)

source

format_frame

 format_frame (frame)

source

fill_hist

 fill_hist (h, x, y=None, zz=None)

source

set_2d_ranges

 set_2d_ranges (h, dx, dy)

source

arr2coods

 arr2coods (a)

source

fix_chi2

 fix_chi2 (g, prec=0.01, show=True)

source

make_darray

 make_darray (values)

source

graph_values

 graph_values (g, m, err=False, as_u=True)

source

graph_xy

 graph_xy (g, err=True, as_u=True)

source

graph_x

 graph_x (g, err=True, as_u=True)

source

graph_y

 graph_y (g, err=True, as_u=True)

source

hist_values

 hist_values (h, err=True)

source

hist_xy

 hist_xy (h, err=True, raw=False)

source

hist_values_2d

 hist_values_2d (h, err=True, flat=True, z_sup=True)

source

hist_xyz

 hist_xyz (h, err=True, flat=False, z_sup=True, grid=False)

source

h_y

 h_y (h)

source

h_x

 h_x (h)

source

h_xy

 h_xy (h)

source

set_bin_labels

 set_bin_labels (g, labels)

source

make_box_args

 make_box_args (x1, y1, x2, y2)

source

make_poly_args

 make_poly_args (x, y, last_x=None)

source

make_star

 make_star (cx=0, cy=0, r=1, n=5)

source

set_titles

 set_titles (status=True)

source

shift_graph

 shift_graph (g, ox=0, oy=0)

source

get_3d_profiles

 get_3d_profiles (h, opt, err=True)

source

get_3d_correlations

 get_3d_correlations (h, opt='yz', thresh=0.25, err=True, z_supp=True)

source

scale_graph

 scale_graph (gr, scale=None, val=1, to_low_flux=False)

source

get_quantile

 get_quantile (h, q)

source

markers

 markers (i, duo=False)

source

duo_markers

 duo_markers (i)

:returns full and open marker


source

set_palette

 set_palette (pal)

source

n_pal

 n_pal (n)

source

set_n_palette

 set_n_palette (n)

source

is_graph

 is_graph (h)

source

update_canvas

 update_canvas (c=None)

source

show_colors

 show_colors (colors)

source

show_wheel

 show_wheel ()

source

show_line_styles

 show_line_styles ()

source

ax_range

 ax_range (low:Any=None, high=None, fl=0.0, fh=0.0, h=None, to_int=False,
           thresh=None)

source

find_z_range

 find_z_range (h, q=None, z0=None)

source

set_drawing_range

 set_drawing_range (h, legend=True, lfac=None, rfac=None, thresh=None)

source

normalise_histo

 normalise_histo (histo, x_range=None, from_min=False)

source

normalise_bins

 normalise_bins (h)

source

set_z_range

 set_z_range (zmin, zmax)

source

set_axes_range

 set_axes_range (xmin, xmax, ymin, ymax, c=None)

source

get_ax_range

 get_ax_range (h, d='x')

source

get_dax

 get_dax (h, d='x')

source

set_x_range

 set_x_range (xmin, xmax, c=None)

source

set_y_range

 set_y_range (ymin, ymax, c=None)

source

get_last_canvas

 get_last_canvas (warn=True)

source

close_last_canvas

 close_last_canvas ()

source

get_object

 get_object (name)

source

set_time_axis

 set_time_axis (histo, form='%H:%M', off=0, axis='X')

source

find_mpv_fwhm

 find_mpv_fwhm (histo, nbins=15)

source

get_fw_center

 get_fw_center (h)

source

find_mpv

 find_mpv (h, r=0.8, show_fit=False)

source

get_fwhm

 get_fwhm (h, fit_range=0.8, ret_edges=False, err=True)

source

fit_fwhm

 fit_fwhm (h, fitfunc='gaus', show=False, fit_range=0.8)

source

get_f_fwhm

 get_f_fwhm (f:cppyy.gbl.TF1)

source

scale_histo

 scale_histo (histo, value=None, to_max=False, x_range=None)

source

find_2d_centre

 find_2d_centre (h, thresh=0.5)

source

get_2d_centre_ranges

 get_2d_centre_ranges (h, dx, dy=None, thresh=0.5)

source

centre_2d

 centre_2d (h, dx, dy=None, thresh=0.5)

source

make_transparent

 make_transparent (pad)

source

hide_axis

 hide_axis (axis)

source

remove_low_stat_bins

 remove_low_stat_bins (h, q=0.9, thresh=None)

source

get_correlation_arrays

 get_correlation_arrays (m1, m2, sx=0, sy=0, thresh=0.1, flat=False)

source

correlate_maps

 correlate_maps (m1, m2, sx=0, sy=0, thresh=0.1)

source

correlate_all_maps

 correlate_all_maps (m1, m2, thresh=0.1)

source

set_root_warnings

 set_root_warnings (status, fatal=False)

source

set_root_output

 set_root_output (status=True)

source

is_root_object

 is_root_object (o)

source

np_profile

 np_profile (x, y, u=False)

source

main

 main ()