How to draw 2D scattered plot with its projections in same canvas like the attached figure?