Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Sterling Smith
On Nov 16, 2012, at 2:25PM, Russell E. Owen wrote: > In article <50a61b5b.1090...@ed.ac.uk>, > Mathew Topper wrote: > >> Hi, >> >> I'm interested to know why the pip package manager is not more widely >> supported for installation of python packages like matplotlib? >> Matplotlib seems to be

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-16 Thread Sterling Smith
Chao, If you don't need the tick marks and are only annoyed by their appearance in the colorbar, then I am pasting below our code so far setting the tick length to 0. Code so far: from pylab import * fig = figure(2) fig.clear() a = np.arange(100).reshape(10,10) cbarlevel=np.arange(0,101,10)

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Russell E. Owen
In article <50a61b5b.1090...@ed.ac.uk>, Mathew Topper wrote: > Hi, > > I'm interested to know why the pip package manager is not more widely > supported for installation of python packages like matplotlib? > Matplotlib seems to be particularly slowly updated in the Fedora > repositories, for

Re: [Matplotlib-users] Using an array which includes NaNs for color in streamplot

2012-11-16 Thread Tony Yu
On Fri, Nov 16, 2012 at 11:35 AM, Jon Ramsey wrote: > Hi Everyone, > > I have just upgraded to matplotlib 1.2.0 so that I can use the streamplot > module, which I'm quite happy about! > However, I've noticed that when one tries to color the streamlines using a > 2-D array which contains NaNs, str

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-16 Thread Sterling Smith
Chao, The secret is positioning your ticks. I list here an untested attempt at putting the labels at the average of the current and next levels: cbar.set_ticks((cbarlevel[1:]+cbarlevel[:-1])/2.) Because you have less ticks, then you will want to remove the line cbar_level.append('') Hope tha

[Matplotlib-users] Using an array which includes NaNs for color in streamplot

2012-11-16 Thread Jon Ramsey
Hi Everyone, I have just upgraded to matplotlib 1.2.0 so that I can use the streamplot module, which I'm quite happy about! However, I've noticed that when one tries to color the streamlines using a 2-D array which contains NaNs, streamlines of only one color are shown! I have appended example co

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-16 Thread ChaoYue
I have a bit progress, but still not very well. #to have a contourf plot a = np.arange(100).reshape(10,10) cbarlevel=np.arange(0,101,10) contourf(a,levels=cbarlevel) cbar = colorbar() cbar.set_ticks(cbarlevel) #to manipulate the range: cbar_label = [] for i in range(len(cbarlevel)-1): cbar_la

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Mathew Topper
Thanks Mike, that's good to know. Will packages dependant on matplotlib (I'm thinking of basemap) be encouraged to follow suit? I know that python package management is a massive headache for our system maintainers here, and any simplification would be gratefully received. Cheers, Mat On 16/

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Michael Droettboom
One of the reasons (historically) is that the build scripts predate setuptools and ships copies of dependencies rather than using easy_install or pip to install them. There is an open PR to address this here: https://github.com/matplotlib/matplotlib/pull/1454 But you do make a good point tha

[Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Mathew Topper
Hi, I'm interested to know why the pip package manager is not more widely supported for installation of python packages like matplotlib? Matplotlib seems to be particularly slowly updated in the Fedora repositories, for example, so I often find that a source installation is necessary. I know