dotpatch¶
- edge_pydb.plotting.dotpatch(x, y, imval, blank=None, dotsize=1, clipedge=True, pad=5, axes=None, **kwargs)[source]¶
Generate and plot a patch collection for a dot plot.
- Parameters:
- xnumpy.array
The x values in the scatter plot (typically ‘ix’)
- ynumpy.array
The y values in the scatter plot (typically ‘iy’)
- imvalnumpy.array
The z values which determine the dot colors
- blankboolean array
True values in this array are set to NaN
- dotsizefloat
The size of the filled circles
- clipedgeboolean
True to derive a square bounding box around non-Nan values. False to show full image.
- padint
Padding in pixels around edges if clipedge=True
- axesmatplotlib.axes
Axes for plotting
- **kwargs
Additional arguments passed to PatchCollection
- Returns:
- imgmatplotlib image object
Plotted image
- xminmaxtuple
[x.min(), x.max()]
- yminmaxtuple
[y.min(), y.max()]