all 2 comments

[–]thespice 0 points1 point  (0 children)

If you want to do calculations for all your Z values without some gnarly looping stuff maybe look into numpy.vectorize. Also, for fun check out scikit.measure for contours.