pyacs.gts.Sgts_methods.plot_component module
- pyacs.gts.Sgts_methods.plot_component.plot_component(self, component='E', lorder=[], shift=10.0, Hshift={}, title=None, loffset=True, loutliers=True, verbose=False, date=[], yaxis=None, min_yaxis=None, yupaxis=None, xticks_minor_locator=1, error_scale=1.0, lperiod=[[]], lvline=[], save_dir_plots='.', save=None, show=True, unit='mm', date_unit='cal', date_ref=0.0, set_zero_at_date=None, superimposed=None, lcolor=[], label=None, legend=0.2, grid=True, plot_size=None, xlabel_fmt=None, **kwargs)[source]
Plot one component for multiple time series using Matplotlib.
Coordinates in meters; default display unit mm (unit=’m’ for meters).
- Parameters:
component (str, optional) – Component to plot (‘N’, ‘E’, ‘U’). Default is ‘E’.
lorder (list, optional) – Site code order (top to bottom). Default is [].
shift (float, optional) – Vertical shift between series in mm. Default is 10.
Hshift (dict, optional) – Per-code offset {‘code’: offset}. Default is {}.
title (str, optional) – Plot title. Default is None.
loffset (bool, optional) – Draw offset lines. Default is True.
loutliers (bool, optional) – Plot outliers. Default is True.
verbose (bool, optional) – Verbose mode. Default is False.
date (list, optional) – [sdate, edate] for range. Default is [].
yaxis (list, optional) – Y-axis limits; auto if not set.
min_yaxis (list, optional) – Y-axis limits; auto if not set.
yupaxis (list, optional) – Y-axis limits; auto if not set.
xticks_minor_locator (float or str, optional) – Minor tick spacing. Default is 1.
error_scale (float, optional) – Error bar scale (0 = none). Default is 1.0.
lperiod (list, optional) – Background periods. Default is [[]].
lvline (list, optional) – Dates for vertical lines. Default is [].
save_dir_plots (str, optional) – Save directory. Default is ‘.’.
save (bool or str, optional) – Save figure. Default is None.
show (bool, optional) – Show plot. Default is True.
unit (str, optional) – ‘m’, ‘cm’, ‘mm’. Default is ‘mm’.
date_unit (str, optional) – ‘decyear’, ‘cal’, ‘days’. Default is ‘cal’.
date_ref (float, optional) – Reference date. Default is 0.0.
set_zero_at_date (float, optional) – Date to align series. Default is None.
superimposed (Gts, optional) – Overlay Gts. Default is None.
lcolor (list, optional) – Colors for superimposed. Default is [].
label (str, optional) – Legend label. Default is None.
legend (float, optional) – Legend space (e.g. 0.2 = 20%). Default is 0.2.
grid (bool, optional) – Draw grid. Default is True.
plot_size (tuple, optional) – Figure size. Default is None.
xlabel_fmt (str, optional) – X-axis label format. Default is None.
**kwargs (dict, optional) – Passed to matplotlib.pyplot.errorbar.
- Return type:
None