yt-project / libyt

In-situ analysis with yt
https://libyt.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Support Time Series Figure #40

Closed cindytsai closed 1 year ago

cindytsai commented 2 years ago

Support Time Series Figure

Plot time series dataset. This can be done in inline script already, but the script will be a little bit messy.

cindytsai commented 1 year ago

I don't see why we need this at all ... 😅 Simply put a list in a global, then track and append values to it would do. For example,

time_series_data = []

def yt_inline():
    # 1. do something to get value
    # 2. time_series_data.append(value)
    # 3. plot it