Lines outside the box of Axis3 CairoMakie

Hello, i have image:

I using xlims and ylims and get image:

How can i fix lines which outside the box? Thank you for helps

You have to filter out or replace the out-of-bounds points with NaN. Axis3 currently does not have any clipping ability.

Any chances of seeing this clipping functionality soon?

Not really, clipping in 3d is not trivial for Cairo plots, so it’s not a quick implementation.