work on merging enplot and enplot3d to a single program