fixed captions in plot.X and plot.hat