perda.plotting.parametric_plot#
- perda.plotting.parametric_plot.plot_parametric_curve(x, y, x_label='X', y_label='Y', title=None, layout_config=LayoutConfig(width=1200, height=700, margin={'l': 70, 'r': 50, 't': 90, 'b': 70}, plot_bgcolor='white', title_x=0.5, title_xanchor='center', title_yanchor='top', grid_width_per_col=400, grid_height_per_row=350, grid_horizontal_spacing=0.08, grid_vertical_spacing=0.12, max_display_resolution=50), font_config=FontConfig(large=20, medium=14, small=10))[source]#
Plot a 2D parametric curve as a static Plotly figure.
- Parameters:
x (NDArray[float64]) – X-axis values.
y (NDArray[float64]) – Y-axis values. Must have the same length as x.
x_label (str, optional) – X-axis label.
y_label (str, optional) – Y-axis label.
title (str | None, optional) – Plot title.
layout_config (LayoutConfig, optional)
font_config (FontConfig, optional)
- Return type:
go.Figure
Examples
>>> from perda.plotting import plot_parametric_curve >>> fig = plot_parametric_curve(lon_arr, lat_arr, x_label="Longitude", y_label="Latitude")