QuadMesh method for setting grid


Does anyone know if there is a reason that quadmesh objects don’t have a method for setting the geometry of the grid (i.e. the _coordinates attribute)? If there’s not a reason, I’ll add one.

Now, this gets to a larger scale matplotlib API question. Should I add this as a property (either coordinates or verts) which would be pythonic? Or do I proliferate the use of getter and setter functions which is consistent? Or do I meet in the middle and use set_* and get_* to implement the property? Personally, I prefer the first one from purity, but recognize the need for a consistent API. Looking over the code base right now, it seems pretty organic, with a variety of all 3 of the approaches I mentioned being taken.




Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from: Norman Oklahoma United States.