plotProfile(): permit xtype to be a vector

This is good for plotting user-specified functions.