grapa.scripts.script_processCVfT.compute_levels
- grapa.scripts.script_processCVfT.compute_levels(dataset, numberapprox=15, minvalue='auto', minfractionpositive=None) list
Determines human-friendly levels in view of contourf plot, imposing a minvalue and approximate number of bins.
- Parameters:
dataset – something that np.quantile can act on
numberapprox – number of targetted discrete levels
minvalue – if given, imposes the min value of the levels.
minfractionpositive – minimal fraction of the colorscale with positive value, in case min and maxhave different signs. None: no effect. e.g. 2/3, 1/2
- Returns:
level values, hopefully human-friendly