Axes.
spy
(Z, precision=0, marker=None, markersize=None, aspect='equal', origin='upper', **kwargs)[source]¶Plot the sparsity pattern of a 2D array.
This visualizes the non-zero values of the array.
Two plotting styles are available: image and marker. Both
are available for full arrays, but only the marker style
works for scipy.sparse.spmatrix
instances.
Image style
If marker and markersize are None, imshow
is used. Any
extra remaining kwargs are passed to this method.
Marker style
If Z is a scipy.sparse.spmatrix
or marker or markersize are
None, a Line2D
object will be returned with
the value of marker determining the marker type, and any
remaining kwargs passed to plot
.
Parameters: | Z : array-like (M, N)
precision : float or 'present', optional, default: 0
origin : {'upper', 'lower'}, optional
aspect : {'equal', 'auto', None} or float, optional
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Other Parameters: | **kwargs
|