Axes.
spy
(Z, precision=0, marker=None, markersize=None, aspect='equal', origin='upper', **kwargs)¶Plot the sparsity pattern on a 2-D array.
spy(Z)
plots the sparsity pattern of the 2-D array Z.
Parameters: | Z : sparse array (n, m)
precision : float, optional, default: 0
origin : [“upper”, “lower”], optional, default: “upper”
aspect : [‘auto’ | ‘equal’ | scalar], optional, default: “equal”
Two plotting styles are available: image or marker. Both are available for full arrays, but only the marker style works for :class:`scipy.sparse.spmatrix` instances. If *marker* and *markersize* are *None*, an image will be returned and any remaining kwargs are passed to :func:`~matplotlib.pyplot.imshow`; else, a :class:`~matplotlib.lines.Line2D` object will be returned with the value of marker determining the marker type, and any remaining kwargs passed to the :meth:`~matplotlib.axes.Axes.plot` method. If *marker* and *markersize* are *None*, useful kwargs include: * *cmap* * *alpha* |
---|