Gts.plot

class pyacs.gts.Gts.Gts(code=None, lat=None, lon=None, h=None, X0=None, Y0=None, Z0=None, t0=None, data=None, data_xyz=None, data_corr_neu=None, data_corr_xyz=None, offsets_dates=[], offsets_values=None, outliers=[], annual=None, semi_annual=None, velocity=None, ifile=None, log=None, metadata=None)[source]
plot(title=None, loffset=True, loutliers=True, verbose=False, date=[], yaxis=None, min_yaxis=None, yupaxis=None, xticks_minor_locator=1, lcomponent=['N', 'E', 'U'], error_scale=1.0, lperiod=[[]], lvline=[], save_dir_plots='.', save=None, show=True, unit='mm', date_unit='cal', date_ref=0.0, center=True, superimposed=None, lcolor=['r', 'g', 'c', 'm', 'y', 'k', 'b'], label=None, legend=False, set_zero_at_date=None, grid=True, plot_size=None, info=[], xlabel_fmt=None, **kwargs)

Plot North-East-Up time series with offsets/outliers using Matplotlib.

Coordinates in meters; default display unit is mm (use unit=’m’ for meters).

Parameters:
  • title (str, optional) – Plot title (added to site name). Default is None.

  • loffset (bool, optional) – Draw vertical lines at offset dates. 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 plot range (decimal years or days per date_unit). Default is [].

  • yaxis (list, optional) – [min_y, max_y] for y-axis; auto if not provided.

  • min_yaxis (list, optional) – Alternative y-axis limits.

  • yupaxis (list, optional) – Same as yaxis for Up component only.

  • xticks_minor_locator (float or str, optional) – Minor tick spacing; float for ‘decyear’/’days’, str e.g. ‘%Y’ for ‘cal’. Default is 1.

  • lcomponent (list, optional) – Components to plot. Default is [‘N’,’E’,’U’].

  • error_scale (float, optional) – Error bar scale (0 = no bars). Default is 1.0.

  • lperiod (list or dict, optional) – Background periods (light salmon); or dict per component. Default is [[]].

  • lvline (list, optional) – Dates for vertical lines (green). Default is [].

  • save_dir_plots (str, optional) – Directory for saving. Default is ‘.’.

  • save (bool or str, optional) – True = auto name, or filename. Default is None.

  • show (bool, optional) – If True, show plot. Default is True.

  • unit (str, optional) – ‘m’, ‘cm’, ‘mm’. Default is ‘mm’.

  • date_unit (str, optional) – ‘decyear’, ‘cal’, or ‘days’. Default is ‘cal’.

  • date_ref (float, optional) – Reference date. Default is 0.0.

  • center (bool, optional) – Center y-axis on mean. Default is True.

  • superimposed (Gts, optional) – Gts to overlay. Default is None.

  • lcolor (list, optional) – Colors for superimposed. Default is [‘r’,’g’,’c’,’m’,’y’,’k’,’b’].

  • label (str, optional) – Legend label for superimposed. Default is None.

  • legend (bool, optional) – Show legend. Default is False.

  • set_zero_at_date (float or list, optional) – Date (or [date, off_n, off_e, off_u]) to align master and superimposed. Default is None.

  • grid (bool, optional) – Draw grid. Default is True.

  • plot_size (tuple, optional) – Figure size. Default is best guess.

  • info (list, optional) – Titles for subplots. Default is [].

  • xlabel_fmt (str, optional) – Format for x-axis labels. Default is None.

  • **kwargs (dict, optional) – Passed to matplotlib.pyplot.errorbar (linewidth, marker, markersize, etc.).

Return type:

None