holoviews.plotting.mpl.hex_tiles module#

class holoviews.plotting.mpl.hex_tiles.HexTilesPlot(*args, **kwargs)[source]#

Bases: ColorbarPlot

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalize

holoviews.plotting.mpl.plot.MPLPlot: projection, backend_opts, fig_alpha, fig_bounds, fig_inches, fig_latex, fig_rcparams, fig_size, initial_hooks, sublabel_format, sublabel_offset, sublabel_position, sublabel_size, sublabel_skip, show_frame

holoviews.plotting.plot.GenericElementPlot: apply_ranges, apply_extents, bgcolor, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_legend, show_grid, xaxis, yaxis, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

holoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, labelled, logz, xformatter, yformatter, zformatter, zaxis, zlabel, zrotation, zticks

holoviews.plotting.mpl.element.ColorbarPlot: clabel, clim, clim_percentile, cformatter, colorbar, colorbar_opts, color_levels, cnorm, clipping_colors, cbar_padding, cbar_ticks, cbar_width, cbar_extend, rescale_discrete_levels, symmetric

aggregator = Callable(default=<function size at 0x108819df0>, label='Aggregator')

Aggregation function used to compute bin values. Any NumPy reduction is allowed, defaulting to np.size to count the number of values in each bin.

gridsize = ClassSelector(class_=(<class 'int'>, <class 'tuple'>), default=50, label='Gridsize')

Number of hexagonal bins along x- and y-axes. Defaults to uniform sampling along both axes when setting and integer but independent bin sampling can be specified a tuple of integers corresponding to the number of bins along each axis.

max_scale = Number(bounds=(0, None), default=0.9, inclusive_bounds=(True, True), label='Max scale')

When size_index is enabled this defines the maximum size of each bin relative to uniform tile size, i.e. for a value of 1, the largest bin will match the size of bins when scaling is disabled. Setting value larger than 1 will result in overlapping bins.

min_count = Number(allow_None=True, inclusive_bounds=(True, True), label='Min count')

The display threshold before a bin is shown, by default bins with a count of less than 1 are hidden.

aggregator(axis=None)[source]#

Return the number of elements along a given axis.

Parameters#

aarray_like

Input data.

axisint, optional

Axis along which the elements are counted. By default, give the total number of elements.

Returns#

element_countint

Number of elements along the specified axis.

See Also#

shape : dimensions of array ndarray.shape : dimensions of array ndarray.size : number of elements in array

Examples#

>>> import numpy as np
>>> a = np.array([[1,2,3],[4,5,6]])
>>> np.size(a)
6
>>> np.size(a,1)
3
>>> np.size(a,0)
2