[Matplotlib-users] Dynamically defining map extents

2008-06-13 Thread washakie
Hello, I've defined the following function to dynamically define map extents based on lon,lat input data. It is not very elegant or robust, but it does seem to work. One issue, however, and it probably is related to something else further down the chain... but every plot ends up being a different

Re: [Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread washakie
Okay?? That does seem to work... I guess I'd better go read up on index_tricks.py ? Thanks. Alan G Isaac wrote: > x1,y1,x2,y2 =np.random.random((4,20)) data = dict(var1=(x1,y1), var2=(x2,y2)) a = np.c_[[d for xy in data.values() for d in xy]] a > array([[ 0.66613738, 0.

[Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread washakie
Hello, I've started to use the convention of making dictionaries to hold my datasets. But I haven't settled on an approach yet, and would like input from people for how they a) handle their arrays of data, and b) how to create pylab arrays from lists of lists, etc. What I generally have is: Data

[Matplotlib-users] contourf & imshow logarithmic colormap

2007-10-30 Thread washakie
Hello, I'm trying to find a way to use imshow or contourf with a logarithmic colormap. Searching the threads I've found a few queries about this before, but not a solution. Any suggestions? Thanks! -- View this message in context: http://www.nabble.com/contourf---imshow-logarithmic-colormap-tf

Re: [Matplotlib-users] [Plone-Users] Installing matplotlib into Plone Python

2007-05-13 Thread John Washakie
> If you have a custom python you need to specifiy > /the/full/path/to/your/python. > > -aj AJ, complete accident to get offlist (apologies!) I have python located in: /usr/bin/python but there is also a python located in /opt/Plone-2.5.2/Python-2.4.4/bin To be honest, I have no idea which on

Re: [Matplotlib-users] [Plone-Users] Installing matplotlib into Plone Python

2007-05-13 Thread John Washakie
> > > The same steps as with any other Python installation. You take the > Python interpreter used for your Zope instance to install the package. > > -aj Not clear, If I: % python setup.py build % python setup.py install It's just going to install in the default /usr/ locations. Are you saying th

[Matplotlib-users] Installing matplotlib into Plone Python

2007-05-12 Thread John Washakie
Hello, I want to use matplotlib with Plone. I have it installed on my machine, but not for the Plone instance of Python. What are the steps I need to take to install it so that it is recognized by the Plone Python instance? Thanks! -

Re: [Matplotlib-users] setting scatter colors

2007-05-06 Thread John Washakie
Eric, Exactly. Thanks for your post. I finally figured it out, and wanted to post here for completeness in case no one followed up, but I'm glad that you did. So yes, the following: scatter(x, y, c=arange(len(x)), cmap=cm.spectral) is exactly what I wanted... except that for my data I had: Yvar

[Matplotlib-users] setting scatter colors

2007-05-06 Thread John Washakie
Trying again, a little more detail: I am trying to use the color setting feature of SCATTER: colors=cm.spectral(linespace(0,100,len(x)) then, plotting: scatter(x,y,c=colors) I get the error: TypeError: c must be a matplotlib color arg or a sequence of them But I don't understand. >x.shape >(

[Matplotlib-users] changing colors of scatter elements

2007-05-06 Thread John Washakie
Hello all, I'm trying to create a plot in each element in my x,y array have a slightly different color - using spectral for example. My data is a time series, but I am not plotting the time series. I want the older data to show up in a different color from the latest data. What I have so far is: