I would like to do a surface plot of a function f(x,y) that is defined for any integers x and y. The caveat is that I want to restrict the domain of (x,y) to a convex but non-rectangular region. (For example, I want to restrict to x>=0, y>=0, x+y<=b for some known integer b.)
I have been able to follow the matplotlib surface plotting examples, however all of these examples impose a rectangular domain. If you have any suggestions on how to accomplish this, they would be greatly appreciated.
Thank you in advance for your help.