Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-21 Thread Daniel Hyams
Thanks Eric! On Sun, Feb 20, 2011 at 9:02 PM, Eric Firing wrote: > On 02/20/2011 06:17 AM, Daniel Hyams wrote: >> >> The function "clabel" does not allow the use of formatters for the >> label; this small patch enables their use, so that one can pass in any >> subclass of ticker.Formatter in the

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Eric Firing
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Eric Firing
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_

[Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Daniel Hyams
The function "clabel" does not allow the use of formatters for the label; this small patch enables their use, so that one can pass in any subclass of ticker.Formatter in the 'fmt' argument. Replace the following in contour.py: def get_text(self, lev, fmt): "get the text of the label"