fixed XY_plot