geetools.FeatureCollectionAccessor.plot_hist#

geetools.FeatureCollectionAccessor.plot_hist(property, label='', ax=None, color=None, **kwargs)#

Plot the histogram of a specific property.

Parameters:
  • property (geetools.types.ee_str) – The property to display

  • label (str) – The label to use for the property. If not provided, the property name will be used.

  • ax (Optional[matplotlib.axes.Axes]) – The matplotlib axes to use. If not provided, the plot will be send to the current axes (plt.gca())

  • color – The color to use for the plot. If not provided, the default colors from the matplotlib library will be used.

  • kwargs – Additional arguments from the pyplot.hist function.

Return type:

matplotlib.axes.Axes

Examples

import ee, geetools

normClim = ee.ImageCollection('OREGONSTATE/PRISM/Norm81m').toBands()
region = ee.Geometry.Rectangle(-123.41, 40.43, -116.38, 45.14)
climSamp = normClim.sample(region, 5000)
climSamp.geetools.plot_hist("07_ppt")