fix 2d plotting for data
adding sample for pre-commit for repos that link against varial