Add support for plotting duration in seconds