implementing modular trench and smoothers for XY numeric plots