Re: [Matplotlib-users] Latex equations and SVG export

2007-07-11 Thread Edin Salkovic
On 7/10/07, Edin Salkovic <[EMAIL PROTECTED]> wrote: > On 7/10/07, John Hunter <[EMAIL PROTECTED]> wrote: > > Hey Edin, if you get a minute, could you contribute a patch against > > the faq in htdocs/faq.html.template explaining how to install the > > bakoma fonts for svg viewers? Is this sufficie

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Jeff Whitaker
Mark Bakker wrote: > Viraj and Jeff - > > Maybe one extension of Jeff's answer. > The process works as long as x, y, and z are 2D arrays of the same > size and shape. > Hence, x and y don't have to form a rectangular grid. > I have used this feature regularly for conformal mapping. > And it makes

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Mark Bakker
I thought it was cool the first time I saw it. Just try something simple from pylab import * x,y = meshgrid(linspace(-5,5,101),linspace(0,5,101)) h = y z = x + complex(0,1)*y znew = z**0.25 # Doing a simple conformal map xnew = znew.real ynew = znew.imag contourf(xnew,ynew,h,linspace(0,5,10)) ax

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Scott Sinclair
That is very cool, I hadn't thought of it! So what you're saying is that any transformation (a complex distortion) of a regular rectangular grid is fine. The fact that the grid's 'pixels' are four sided quadrilaterals satisfies this condition and the contour algorithm works... Cheers, Scott

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Mark Bakker
Viraj and Jeff - Maybe one extension of Jeff's answer. The process works as long as x, y, and z are 2D arrays of the same size and shape. Hence, x and y don't have to form a rectangular grid. I have used this feature regularly for conformal mapping. And it makes a lot of sense. The contour routin