plot_data#
- geetools.utils.plot_data(type, data, label_name, colors=[], ax=None, **kwargs)#
Plotting mechanism used in all the plotting functions.
It binds the matplotlib capabilities with the data aggregated by different xes. the shape of the data should as follows:
{ "label1": {"properties1": value1, "properties2": value2, ...} "label2": {"properties1": value1, "properties2": value2, ...}, ... }
- Parameters:
type (str) – The type of plot to use. can be any type of plot from the python lib matplotlib.pyplot. If the one you need is missing open an issue!
data (dict) – the data to use as inputs of the graph. Please follow the format specified in the documentation.
label_name (str) – The name of the property that was used to generate the labels
property_names – The list of names that was used to name the values. They will be used to order the keys of the data dictionary.
colors (list) – A list of colors to use for the plot. If not provided, the default colors from the matplotlib library will be used.
ax (matplotlib.axes.Axes | None) – The matplotlib axes to use. If not provided, the plot will be sent to a new figure.
kwargs – Additional arguments from the
pyplotchat type selected.
- Return type: