watex.utils.plotutils.resetting_colorbar_bound#

watex.utils.plotutils.resetting_colorbar_bound(cbmax, cbmin, number_of_ticks=5, logscale=False)[source]#

Function to reset colorbar ticks more easy to read

Parameters
  • cbmax (float) – value maximum of colorbar

  • cbmin (float minimum data value) – minimum data value

  • number_of_ticks (int) – number of ticks should be located on the color bar . Default is 5.

  • logscale (bool) – set to True if your data are lograith data .

Returns

array of color bar ticks value.

Return type

array_like