tangram.plot_utils.q_value

tangram.plot_utils.q_value(data, perc)

Computes min and max values according to percentile for colormap in plot functions

Parameters
  • data (numpy array) – input

  • perc (float) – percentile that between 0 and 100 inclusive

Returns

will be later used to define the data range covers by the colormap

Return type

tuple of floats