From: Tony S Yu <to...@MI...> - 2009-07-28 19:27:46
|
> Josh Hemann wrote: >> Tony, >> >> I know this is a year later but your code was hugely helpful to me >> last >> week, so thank you I'm glad you found it helpful. On Jul 28, 2009, at 12:56 PM, Michael Droettboom wrote: > Would you (Josh and Tony) be amenable to us including this in the > set of > examples? It would make it easier for users to find it. > Eventually, it > might be nice to include this as a core plotting command, but in the > meantime, I think it would still be useful as-is. > > Mike Hey Mike, I'm always happy to contribute what little I can to matplotlib. However, if it's going to be an official example, it should be cleaned up a bit (see attached). Summary of changes. * My original example (i.e. not Josh's fault) didn't play well with namespaces (i.e. from pylab import *). This has been changed to use the proper imports (i.e. np and plt). * Also, there were problems with rgrids when I originally wrote the code, which has since been fixed (at least on trunk it is). This eliminates the need to manually draw a grid. * I made a few other clean ups for clarity. (Josh: I hope you don't mind, I switched the data for f4_base and f5_base so that I could remove the associated comment.) * Final note. The polygon frame no longer works properly and I couldn't really figure out how to fix it. Best, -Tony |