using new data type date
final plot is a figure with three subplots
more specific
the function now operates on a list and not on a str