perda.plotting.plotting_constants#

pydantic model perda.plotting.plotting_constants.DiffPlotConfig[source]#

Bases: BaseModel

Configuration for diff bar chart visualization.

Fields:
field bucket_size_s: float = 1.0#
field color_base_extra: str = 'blue'#
field color_incom_extra: str = 'darkorange'#
field color_value_mismatch: str = 'crimson'#
field color_total: str = 'gray'#
pydantic model perda.plotting.plotting_constants.FFTPlotConfig[source]#

Bases: BaseModel

Configuration for FFT magnitude spectrum plots.

Parameters:
  • log_x (bool) – Logarithmic x-axis (frequency). Default is True.

  • log_y (bool) – Logarithmic y-axis (magnitude). Default is False.

  • line_color (str) – Color of the spectrum trace(s). Default is "steelblue".

  • height_single (int) – Figure height in pixels when stacked=False (single-panel view). Default is 500.

Fields:
field log_x: bool = True#
field log_y: bool = False#
field line_color: str = 'steelblue'#
field height_single: int = 500#
pydantic model perda.plotting.plotting_constants.FontConfig[source]#

Bases: BaseModel

Font configuration for plot elements.

Simplified to three sizes: - Large: Titles - Medium: Axis labels, legend titles - Small: Tick labels, legend items

Fields:
field large: int = 20#
field medium: int = 14#
field small: int = 10#
pydantic model perda.plotting.plotting_constants.GpsMapConfig[source]#

Bases: BaseModel

Configuration for GPS plotting and outlier filtering.

Parameters:
  • mapbox_style (str) – Mapbox tile style. "carto-positron" is free and requires no token.

  • mapbox_token (str) – Mapbox access token. Only needed for Mapbox-hosted styles.

  • marker_size (int) – Marker size on GPS traces.

  • line_width (int) – Line width on the map trace.

  • line_color (str) – Color of the GPS trace line.

  • zoom_padding (float) – Extra fraction added around the data extent when auto-zooming.

  • max_radius_m (float) – Maximum allowed distance in metres from the centroid of all GPS points. Points further than this are discarded as outliers. Set to float("inf") to disable.

  • max_jump_m (float) – Maximum allowed step distance in metres between consecutive points. Points that jump further than this are discarded as outliers. Set to float("inf") to disable.

Fields:
field mapbox_style: str = 'carto-positron'#
field mapbox_token: str = ''#
field marker_size: int = 3#
field line_width: int = 2#
field line_color: str = 'red'#
field zoom_padding: float = 0.4#
field max_radius_m: float = 5000.0#
field max_jump_m: float = 30.0#
pydantic model perda.plotting.plotting_constants.LayoutConfig[source]#

Bases: BaseModel

Layout configuration for plot dimensions and spacing.

Fields:
field width: int = 1200#
field height: int = 700#
field margin: Dict[str, int] [Optional]#
field plot_bgcolor: str = 'white'#
field title_x: float = 0.5#
field title_xanchor: str = 'center'#
field title_yanchor: str = 'top'#
field grid_width_per_col: int = 400#
field grid_height_per_row: int = 350#
field grid_horizontal_spacing: float = 0.08#
field grid_vertical_spacing: float = 0.12#
field max_display_resolution: int = 50#
pydantic model perda.plotting.plotting_constants.ScatterHistogramPlotConfig[source]#

Bases: BaseModel

Configuration for frequency analysis visualization.

Fields:
field color_scatter: str = 'blue'#
field color_line: str = 'crimson'#
field color_histogram: str = 'blue'#
field histogram_bins: int = 80#
pydantic model perda.plotting.plotting_constants.VLineConfig[source]#

Bases: BaseModel

Configuration for vertical marker lines on plots.

Fields:
field color: str = 'gray'#
field width: int = 2#
field dash: str = 'dash'#
field opacity: float = 0.7#