5.11.1.14. eqcorrscan.utils.plotting.subspace_detector_plot¶
-
eqcorrscan.utils.plotting.
subspace_detector_plot
(detector, stachans, size, show)[source]¶ Plotting for the subspace detector class.
Plot the output basis vectors for the detector at the given dimension.
Corresponds to the first n horizontal vectors of the V matrix.
Parameters: - stachans (list) – list of tuples of station, channel pairs to plot.
- stachans – List of tuples of (station, channel) to use. Can set to ‘all’ to use all the station-channel pairs available. If detector is multiplexed, will just plot that.
- size (tuple) – Figure size.
- show (bool) – Whether or not to show the figure.
Returns: Figure
Return type: matplotlib.pyplot.Figure
Example
>>> from eqcorrscan.core import subspace >>> import os >>> detector = subspace.Detector() >>> detector.read(os.path.join(os.path.abspath(os.path.dirname(__file__)), ... '..', 'tests', 'test_data', 'subspace', ... 'stat_test_detector.h5')) Detector: Tester >>> subspace_detector_plot(detector=detector, stachans='all', size=(10, 7), ... show=True)
(Source code, png, hires.png)