OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
202 stars 65 forks source link

Timeseries report should display each element of vectorized states/controls/parameters separately. #999

Open robfalck opened 11 months ago

robfalck commented 11 months ago

Description

When a state is a vector/matrix/tensor quantity at each given point in time the resulting timeseries plot is nonsensical. Dymos should extract each element from the state (or control/parameter/etc) in this case and plot it along with a legend to indicate which plot belongs to which index.

Example

See the matrix-states cannonball test case.

Ideally the z plot would have 4 series in it, labeled in the legend as z[0, 0], z[0, 1], z[1, 0], and z[1, 1].

Dymos Version

1.9.2-dev

Relevant environment information

No response