perda.plotting.plotting_constants#
- pydantic model perda.plotting.plotting_constants.DiffPlotConfig[source]#
Bases:
BaseModelConfiguration for diff bar chart visualization.
- Fields:
-
field bucket_size_ms:
int= 1000#
-
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.FontConfig[source]#
Bases:
BaseModelFont 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:
BaseModelConfiguration for GPS map overlay plots.
- 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 the map trace.
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.
lat_range (tuple[float, float]) – Valid latitude range. Points outside are filtered.
lon_range (tuple[float, float]) – Valid longitude range. Points outside are filtered.
- 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 lat_range:
tuple[float,float] = (35.0, 50.0)#
-
field lon_range:
tuple[float,float] = (-125.0, -66.0)#
- pydantic model perda.plotting.plotting_constants.LayoutConfig[source]#
Bases:
BaseModelLayout 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'#
- pydantic model perda.plotting.plotting_constants.ScatterHistogramPlotConfig[source]#
Bases:
BaseModelConfiguration for frequency analysis visualization.
-
field color_scatter:
str= 'blue'#
-
field color_line:
str= 'crimson'#
-
field color_histogram:
str= 'blue'#
-
field histogram_bins:
int= 80#
-
field color_scatter: