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_

Re: [Matplotlib-users] hist doesn't like 2d arrays

2011-02-20 Thread K . -Michael Aye
On 2011-02-18 07:32:48 +0100, Robert Abiad said: > Dear Folks, > > I'm finding that hist has problems computing on 2d arrays. > > import numpy > import pylab > mu, sigma = 2, 0.5 > v = numpy.random.normal(mu,sigma,16) > pylab.hist(v, bins=1000, normed=1) > > Th

[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"

Re: [Matplotlib-users] matplotlib gcc segmentation fault / exit status 1 on SLES and SUSE linux

2011-02-20 Thread Diederik van Lierop
Jeremy Brown-9 wrote: > > I ran into a nasty problem and was stuck until I realized that my numpy > version was 1.3 when it should of been 1.5. But the errors never gave me > an indication that this was the issue. > > ... > It is working correctly just hope to save someone the headache. >

[Matplotlib-users] Changing font throught matplotlibrc file

2011-02-20 Thread Curiouslearn
Hello, I am trying to change the default font by adding the following lines to the matplotlibrc file: ## FONT font.family : serif font.serif : Palatino However, I get the following error. /Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/matplotlib/font_manager.py:12

[Matplotlib-users] [matplotlib-users] probability map

2011-02-20 Thread Wolfgang Kerzendorf
Dear all, I have tried to make 1 sigma, 2 sigma and 3 sigma contours of my data. To calculate the levels. I took my 2d array (lets call it data). I sorted sortData = sort(data.flatten())[::-1] I normalized it: normSortData = sortData / sum(sortData) Then I did the cumulative sum: cumSum = np.c

Re: [Matplotlib-users] 1.0.1 installation problem

2011-02-20 Thread Christoph Gohlke
On 2/20/2011 12:25 AM, Richard D. Moores wrote: > Windows Vista > Python 2.6 > > I downloaded matplotlib-1.0.1.win-amd64-py2.6.exe from > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/, > but I get "Python version 2.6 required, which was not found in the > registry".

[Matplotlib-users] 1.0.1 installation problem

2011-02-20 Thread Richard D. Moores
Windows Vista Python 2.6 I downloaded matplotlib-1.0.1.win-amd64-py2.6.exe from http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/, but I get "Python version 2.6 required, which was not found in the registry". I do have Python 2.6, but its folder is C:\Python26. What to