Hi, can you please send the complete script to reproduce this issue?
Without trying it out I can say that matplotlib’s 3d plotting is a hack and the sorting from back to the front does not always work. So it could well be that your code is performing as it should and that there’s only a problem with the plotting. Christoph
smime.p7s
Description: S/MIME cryptographic signature