Barak 0.3.2 documentation

barak.plot.arrplot

«  barak.phot.UBVRI_to_ugriz   ::   Contents   ::   barak.plot.axvfill  »

barak.plot.arrplot

barak.plot.arrplot(a, x=None, y=None, ax=None, perc=(0, 100), colorbar=True, **kwargs)[source]

Plot a 2D array with coordinates.

Label coordinates such that each coloured patch representing a value in a is centred on its x,y coordinate.

Parameters :

a : array, shape (N, M)

Values at each coordinate.

x : shape (N,)

Coordinates, must be equally spaced.

y : shape (M,)

Coordinates, must be equally spaced.

ax : axes

Axes in which to plot.

colorbar : bool (True)

Whether to also plot a colorbar.

«  barak.phot.UBVRI_to_ugriz   ::   Contents   ::   barak.plot.axvfill  »