avl_fileplot

Contents

avl_fileplot#

Generates a four-view geometry plot (isometric, top, front, side) from an AvlGeometry object.

Plot AVL geometry as an interactive 3-D plotly figure.

avl_aero_tables.avl_fileplot.avl_fileplot(geometry)[source]#

Plot AVL geometry as a single interactive 3-D figure.

Parameters:

geometry (AvlGeometry) – Parsed AvlGeometry from avl_fileread().

Returns:

Interactive 3-D figure. Save with fig.write_html("out.html"); embed in Sphinx via the plotly-figure directive.

Return type:

plotly.graph_objects.Figure

Example

>>> from avl_aero_tables.avl_fileread import avl_fileread
>>> from avl_aero_tables.avl_fileplot import avl_fileplot
>>> geom = avl_fileread("examples/bd/bd.avl")
>>> fig = avl_fileplot(geom)
>>> "Bubble Dancer" in fig.layout.title.text
True
>>> fig.write_html(
...     "tests/geometry.html", include_plotlyjs="cdn", config={"displayModeBar": True}
... )