= Draw()
draw draw
ROOT Draw instance: Title = OFF, Show = ON, Info = ON
/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)
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.
get_color_gradient ()
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 |
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)
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)
set_entries ()
get_window_ratio (c=None)
get_stat_margins (c=None, x2=None, y2=None, d=0.01, bottom=False, left=False, h=0.0, w=0.0)
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)
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)
format_axis (axis, h, title, tit_offset, tit_size, centre_title, lab_size, label_offset, limits, ndiv, tick_size, color=None)
format_pie (pie, h=None, r=None, text_size=None, angle3d=None, angle_off=None, label_format=None)
format_text (t, name='text', align=20, color=1, size=0.05, angle=None, ndc=None, font=None)
format_frame (frame)
fill_hist (h, x, y=None, zz=None)
set_2d_ranges (h, dx, dy)
arr2coods (a)
fix_chi2 (g, prec=0.01, show=True)
make_darray (values)
graph_values (g, m, err=False, as_u=True)
graph_xy (g, err=True, as_u=True)
graph_x (g, err=True, as_u=True)
graph_y (g, err=True, as_u=True)
hist_values (h, err=True)
hist_xy (h, err=True, raw=False)
hist_values_2d (h, err=True, flat=True, z_sup=True)
hist_xyz (h, err=True, flat=False, z_sup=True, grid=False)
h_y (h)
h_x (h)
h_xy (h)
set_bin_labels (g, labels)
make_box_args (x1, y1, x2, y2)
make_poly_args (x, y, last_x=None)
make_star (cx=0, cy=0, r=1, n=5)
set_titles (status=True)
shift_graph (g, ox=0, oy=0)
get_3d_profiles (h, opt, err=True)
get_3d_correlations (h, opt='yz', thresh=0.25, err=True, z_supp=True)
scale_graph (gr, scale=None, val=1, to_low_flux=False)
get_quantile (h, q)
markers (i, duo=False)
duo_markers (i)
:returns full and open marker
set_palette (pal)
n_pal (n)
set_n_palette (n)
is_graph (h)
update_canvas (c=None)
show_colors (colors)
show_wheel ()
show_line_styles ()
ax_range (low:Any=None, high=None, fl=0.0, fh=0.0, h=None, to_int=False, thresh=None)
find_z_range (h, q=None, z0=None)
set_drawing_range (h, legend=True, lfac=None, rfac=None, thresh=None)
normalise_histo (histo, x_range=None, from_min=False)
normalise_bins (h)
set_z_range (zmin, zmax)
set_axes_range (xmin, xmax, ymin, ymax, c=None)
get_ax_range (h, d='x')
get_dax (h, d='x')
set_x_range (xmin, xmax, c=None)
set_y_range (ymin, ymax, c=None)
get_last_canvas (warn=True)
close_last_canvas ()
get_object (name)
set_time_axis (histo, form='%H:%M', off=0, axis='X')
find_mpv_fwhm (histo, nbins=15)
get_fw_center (h)
find_mpv (h, r=0.8, show_fit=False)
get_fwhm (h, fit_range=0.8, ret_edges=False, err=True)
fit_fwhm (h, fitfunc='gaus', show=False, fit_range=0.8)
get_f_fwhm (f:cppyy.gbl.TF1)
scale_histo (histo, value=None, to_max=False, x_range=None)
find_2d_centre (h, thresh=0.5)
get_2d_centre_ranges (h, dx, dy=None, thresh=0.5)
centre_2d (h, dx, dy=None, thresh=0.5)
make_transparent (pad)
hide_axis (axis)
remove_low_stat_bins (h, q=0.9, thresh=None)
get_correlation_arrays (m1, m2, sx=0, sy=0, thresh=0.1, flat=False)
correlate_maps (m1, m2, sx=0, sy=0, thresh=0.1)
correlate_all_maps (m1, m2, thresh=0.1)
set_root_warnings (status, fatal=False)
set_root_output (status=True)
is_root_object (o)
np_profile (x, y, u=False)
main ()