[Matplotlib-users] More Matlab-like way to manipulate colormaps?

2008-06-21 Thread David Goldsmith
Hi. Making progress. Caveat for what follows: the last version of Matlab I used was like 6 or 7, I think - it's been a little while - so for all I know, the colormap manipulation API I've been able to discover in the current MPL does correspond closely to the same thing in the current Matlab.

Re: [Matplotlib-users] Axes3d

2008-06-21 Thread Andrew Straw
Mike, just a question about the new transforms backend -- can the input dimensionality be greater than 2? (I realize functions to do so probably don't currently exist, but the question is about the transforms machinery itself.) -Andrew Michael Droettboom wrote: > I'm not very familiar with how ax

Re: [Matplotlib-users] rationale for contour() argument dimensions?

2008-06-21 Thread Eric Firing
Chris, The point is that contouring and gridding are two entirely separate operations--and this is true in general, not just for matplotlib. Contouring algorithms--at least all the ones I have looked at--work with data on a regular grid. There are many ways to map scattered data to a regular

Re: [Matplotlib-users] colorbar()

2008-06-21 Thread Darren Dale
On Friday 20 June 2008 5:40:04 pm Bryan Fodness wrote: > Is there a way to get the colorbar to work with an axes instance. > > ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w') > ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') > ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r

Re: [Matplotlib-users] threading problems

2008-06-21 Thread Eric Firing
Scott, I think that for interactive work such as you describe, ipython -pylab pretty well solves the problem, and provides window behavior like matlab's. Ipython is a big help when working with python even when you are not plotting. It is easy to install, and you don't have to learn much to st

Re: [Matplotlib-users] colorbar()

2008-06-21 Thread Eric Firing
Bryan Fodness wrote: > Is there a way to get the colorbar to work with an axes instance. > > ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w') > ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') > ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r) > ax2.axvline(x=0, color='gra

Re: [Matplotlib-users] colorbar()

2008-06-21 Thread Ryan May
Bryan Fodness wrote: > Is there a way to get the colorbar to work with an axes instance. > > ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w') > ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') > ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r) > ax2.axvline(x=0, color='gra

[Matplotlib-users] rationale for contour() argument dimensions?

2008-06-21 Thread Chris
I may be a bit thick, but I am having a heck of a time figuring out how to use contour() properly. Specifically, I do not see why the z dimension should be a 2d array. It should only take a set of x,y,z coordinates to produce a surface -- what is the extra dimension for? More importantly, how

Re: [Matplotlib-users] threading problems

2008-06-21 Thread SRH
Daniel Ashbrook wrote: > > The issue is that the > show() command takes over the main thread of execution, so I can't have > my listening process running. Essentially I need to: > > 1) Pop up a figure() > 2) Start the drawing loop > 3) Start the socket listener > 4) When the listener gets com

[Matplotlib-users] colorbar()

2008-06-21 Thread Bryan Fodness
Is there a way to get the colorbar to work with an axes instance. ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w') ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r) ax2.axvline(x=0, color='gray', linestyle='--') ax2.axhline(y=0

Re: [Matplotlib-users] color xy plot

2008-06-21 Thread John Hunter
On Fri, Jun 20, 2008 at 6:14 PM, sordnay <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm trying to plot in 2D, 3 variables from time series, instead of volume I > want color for the third variable. > I have partial success with a scatter plot, but I'm unable to manage the > colorbar so it represents z

[Matplotlib-users] color xy plot

2008-06-21 Thread sordnay
Hi all, I'm trying to plot in 2D, 3 variables from time series, instead of volume I want color for the third variable. I have partial success with a scatter plot, but I'm unable to manage the colorbar so it represents z values, I needed to sort the variables and it's getting a bit ugly, so I thoug

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-21 Thread David Warde-Farley
On 19-Jun-08, at 11:30 AM, John Hunter wrote: > On Wed, Jun 18, 2008 at 2:42 PM, David Warde-Farley <[EMAIL PROTECTED] > > wrote: > >> One more related thing: is there any way to retrieve the size of a >> textbox >> in figure coordinates, something like >> ax.get_ymajorticklabels[0].get_width(

Re: [Matplotlib-users] Axes3d

2008-06-21 Thread Michael Droettboom
In theory, yes, but it's a completely untested theory. Each transform class has an input_dims and output_dims member that defines the input and output dimensions. So theoretically, you could create a perspective or orthogonal projection that maps from 3D to 2D. Cheers, Mike Andrew Straw wrot