scatter_wrapper¶
- scatter_wrapper(self, func, *args, s=None, size=None, markersize=None, c=None, color=None, markercolor=None, smin=None, smax=None, cmap=None, cmap_kw=None, norm=None, norm_kw=None, vmin=None, vmax=None, N=None, levels=None, values=None, symmetric=False, locator=None, locator_kw=None, lw=None, linewidth=None, linewidths=None, markeredgewidth=None, markeredgewidths=None, edgecolor=None, edgecolors=None, markeredgecolor=None, markeredgecolors=None, **kwargs)[source]¶
Adds keyword arguments to
scatterthat are more consistent with theplotkeyword arguments and supportscmap_changerfeatures.Note
This function wraps
scatter- Parameters
s, size, markersize (float or list of float, optional) – The marker size(s). The units are scaled by
sminandsmax.smin, smax (float, optional) – The minimum and maximum marker size in units points ** 2 used to scale the
sarray. If not provided, the marker sizes are equivalent to the values in thesarray.c, color, markercolor (color-spec or list thereof, or array, optional) – The marker fill color(s). If this is an array of scalar values, the colors will be generated by passing the values through the
normnormalizer and drawing from thecmapcolormap.cmap (colormap spec, optional) – The colormap specifer, passed to the
Colormapconstructor.cmap_kw (dict-like, optional) – Passed to
Colormap.norm (normalizer spec, optional) – The colormap normalizer, used to warp data before passing it to
DiscreteNorm. This is passed to theNormconstructor.norm_kw (dict-like, optional) – Passed to
Norm.vmin, vmax (float, optional) – Used to determine level locations if
levelsis an integer. Actual levels may not fall exactly onvminandvmax, but the minimum level will be no smaller thanvminand the maximum level will be no larger thanvmax. Ifvminorvmaxis not provided, the minimum and maximum data values are used.levels, N (int or list of float, optional) – The number of level edges, or a list of level edges. If the former,
locatoris used to generate this many levels at “nice” intervals. If the latter, the levels should be monotonically increasing or decreasing (note that decreasing levels will only work withpcolorplots, notcontourplots). Default isrc[‘image.levels’]=11. Note this means you can now discretize your colormap colors in apcolorplot just like withcontourf.values (int or list of float, optional) – The number of level centers, or a list of level centers. If provided, levels are inferred using
edges. This will override anylevelsinput.symmetric (bool, optional) – If
True, automatically generated levels are symmetric about zero.locator (locator-spec, optional) – The locator used to determine level locations if
levelsorvaluesis an integer andvminandvmaxwere not provided. Passed to theLocatorconstructor. Default isMaxNLocatorwithlevelsinteger levels.locator_kw (dict-like, optional) – Passed to
Locator.lw, linewidth, linewidths, markeredgewidth, markeredgewidths (float or list thereof, optional) – The marker edge width.
edgecolors, markeredgecolor, markeredgecolors (color-spec or list thereof, optional) – The marker edge color.
- Other Parameters
**kwargs – Passed to
scatter.