Binary classification plot

Hi everyone,

There is a plot code that shows X1 vs X2 if they are continous variables and y is a binary classification.

Do you know any ways to beautifuly plot X1 vs X2 if they are binary variables (at least one)?

Technically that’s a plot of y vs (x1,x2). It’s a 3D plot where the 3rd axis is coded by the shape and color of the marker.

If x1 and x2 were limited to values of 0 and 1, such a plot would be unreadable.