ALLCools.plot.utilities

Module Contents

_density_based_sample(data: pandas.DataFrame, coords: list, portion=None, size=None, seed=None)[source]

down sample data based on density, to prevent overplot in dense region and decrease plotting time

_translate_coord_name(coord_name)[source]
_make_tiny_axis_label(ax, x, y, arrow_kws=None, fontsize=5)[source]

this function assume coord is [0, 1]

_extract_coords(data, coord_base, x, y)[source]
zoom_min_max(vmin, vmax, scale)[source]
zoom_ax(ax, zoom_scale, on='both')[source]
smart_number_format(x, pos=None)[source]
add_ax_box(ax, expend=0, **patch_kws)[source]
tight_hue_range(hue_data, portion)[source]

Automatic select a SMALLEST data range that covers [portion] of the data