fix section plotting for pandas-based casts
give castswhere and optional arity of one where it accepts a function and
returns the subset where that function evaluates true