4.1.1.9.1.8. pyfem.util.plotUtils module
- plotCurve(output: Sequence[Tuple[float, float]]) None[source]
Plot a 2D curve using pylab.
The function accepts any sequence of (x, y) pairs and plots them with red circle markers connected by lines. Import of plotting functions is local to the function to avoid enforcing a global dependency on matplotlib when the module is imported.
- Parameters:
output – Sequence of (x, y) coordinate pairs to plot.
- Returns:
None
- plotTime(t: float) str[source]
Format a time duration into a human-readable string.
Small durations are shown in scientific or fixed-point seconds, larger durations use minutes and hours as appropriate.
- Parameters:
t – Time duration in seconds.
- Returns:
A formatted string representing the elapsed time.