Skip to content

Commit 80c8768

Browse files
author
Johannes Lang
committed
Update documentation part 13
1 parent 68a8b8e commit 80c8768

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

docs/assets/Cwaiting.png

-148 Bytes
Loading

docs/tutorials/reading-outputs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,5 @@ Notes:
223223
- The script uses a spline interpolator (SciPy), however linear interpolations are often good enough.
224224
- The x-axis is logarithmic by default. Use `--linear-x` to switch to a linear x-axis.
225225
- Axis labels use robust Unicode text by default (no LaTeX dependency). If you want full LaTeX rendering and have a working LaTeX install, pass `--usetex`.
226+
- Curves are automatically truncated for $t_w+\tau > t_{\mathrm{last}}$ (no extrapolation beyond the simulated time window).
226227
- Use `--tau-min/--tau-max` and `--n-tau` to control the plotted interval and resolution.

scripts/plot_correlation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,14 @@ def main() -> int:
334334
t1 = tw + taus
335335
theta = tw / (tw + taus)
336336
y = f(t1, theta)
337+
338+
# Do not show values beyond the simulated time window.
339+
# The compressed grid is defined only up to t_last; for t_w+tau > t_last
340+
# the correlation/response is not available and should not be plotted.
341+
mask = t1 > tlast
342+
if np.any(mask):
343+
y = np.asarray(y, dtype=float).copy()
344+
y[mask] = np.nan
337345
curves.append((tw, y))
338346

339347
# Plot

0 commit comments

Comments
 (0)