Re: [Matplotlib-users] Problem with axvline in gridspec with log Y axis

2012-09-14 Thread Phil Elson
Thanks for raising this. I have simplified and opened an issue for the bug (
https://github.com/matplotlib/matplotlib/issues/1246) and will be looking
at this asap.

All the best,

Phil
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] John Hunter awarded PSF's Distinguished Service Award

2012-09-14 Thread Damon McDougall
All,

John Hunter, lead author of matplotlib, has been awarded PSF's
Distinguished Service Award.

For details, see
http://pyfound.blogspot.co.uk/2012/09/announcing-2012-distinctive-service.html

Some of you may have already seen this. For those who haven't, it serves as
a poignant reminder to the immense effort of John and the matplotlib
developers over the past decade.

Best,
Damon


-- 
Damon McDougall
http://www.damon.is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread gsal
Hi, everybody:

I don't have experience with images or contours and need some help plotting
a 'z' quantity for given x,y coordinates.  

What are the choices?

Here is a small sample of the data:

 The first row has the i-th x-coordinate at which the field starts to have
the value [i,j].
 The first column has the j-th y-coordinate at which the field starts to
have the value [i,j].
 
 The coordinate steps are not constant, nor the same for both dimensions;
they can be anything because they come from some odd finite difference
program. 
 
 My first shot at this is getting combersome, I am hoping for a better way.
 
 So far, because the second decimal place in the x,y coordinate is alwasy
zero, I simply turned those coordinates into integers by multiplying by ten
and truncating; then by subtracting the first value from the rest, they look
very much like matrix indeces (except for the missing ones):

 Then, because I don't know any better, I broadcast the values onto another
matrix, to fill in the in-between values:

Now, I have a matrix where every i,j has its own z-value and I am supposed
to be able to plot it with ax.contourf(mymatrix)...which I can, up until
about mymatrix[:,:1900] or so, afte that, I get the following error:

Traceback (most recent call last):
  File C:\findiff\t1.py, line 73, in module
ax.contourf(full[:,:2000])
  File C:\Python26\lib\site-packages\matplotlib\axes.py, line 7322, in
contourf
return mcontour.QuadContourSet(self, *args, **kwargs)
  File C:\Python26\lib\site-packages\matplotlib\contour.py, line 1106, in
__init__
ContourSet.__init__(self, ax, *args, **kwargs)
  File C:\Python26\lib\site-packages\matplotlib\contour.py, line 700, in
__init__
self._process_args(*args, **kwargs)
  File C:\Python26\lib\site-packages\matplotlib\contour.py, line 1130, in
_process_args
C = _cntr.Cntr(x, y, z.filled(), _mask)
ValueError: Arguments x, y, z, mask (if present) must be 2D arrays.
x, y, z must be castable to double.



My current matrix is about 12000x5000.

Any asistance would be greatly appreciated.

Thanks,

Germán 



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Need-to-plot-z-at-given-x-y-contour-or-something-tp38926.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Benjamin Root
On Fri, Sep 14, 2012 at 2:51 PM, gsal salger...@gmail.com wrote:

 Hi, everybody:

 I don't have experience with images or contours and need some help plotting
 a 'z' quantity for given x,y coordinates.

 What are the choices?

 Here is a small sample of the data:

  The first row has the i-th x-coordinate at which the field starts to have
 the value [i,j].
  The first column has the j-th y-coordinate at which the field starts to
 have the value [i,j].

  The coordinate steps are not constant, nor the same for both dimensions;
 they can be anything because they come from some odd finite difference
 program.

  My first shot at this is getting combersome, I am hoping for a better way.

  So far, because the second decimal place in the x,y coordinate is alwasy
 zero, I simply turned those coordinates into integers by multiplying by ten
 and truncating; then by subtracting the first value from the rest, they
 look
 very much like matrix indeces (except for the missing ones):

  Then, because I don't know any better, I broadcast the values onto another
 matrix, to fill in the in-between values:

 Now, I have a matrix where every i,j has its own z-value and I am supposed
 to be able to plot it with ax.contourf(mymatrix)...which I can, up until
 about mymatrix[:,:1900] or so, afte that, I get the following error:

 Traceback (most recent call last):
   File C:\findiff\t1.py, line 73, in module
 ax.contourf(full[:,:2000])
   File C:\Python26\lib\site-packages\matplotlib\axes.py, line 7322, in
 contourf
 return mcontour.QuadContourSet(self, *args, **kwargs)
   File C:\Python26\lib\site-packages\matplotlib\contour.py, line 1106, in
 __init__
 ContourSet.__init__(self, ax, *args, **kwargs)
   File C:\Python26\lib\site-packages\matplotlib\contour.py, line 700, in
 __init__
 self._process_args(*args, **kwargs)
   File C:\Python26\lib\site-packages\matplotlib\contour.py, line 1130, in
 _process_args
 C = _cntr.Cntr(x, y, z.filled(), _mask)
 ValueError: Arguments x, y, z, mask (if present) must be 2D arrays.
 x, y, z must be castable to double.



 My current matrix is about 12000x5000.

 Any asistance would be greatly appreciated.

 Thanks,

 Germán



tricontourf() might be more what you are looking for.  Another possibility
is pcolor() (note that for irregularly spaced grids, pcolormesh() would not
work).

Cheers!
Ben Root
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] John Hunter has been awarded the first Distinguished Service Award by the PSF

2012-09-14 Thread Fernando Perez
Hi folks,

you may have already seen this, but in case you haven't, I'm thrilled
to share that the Python Software Foundation has just created its
newest and highest distinction, the Distinguished Service Award, and
has chosen John as its first recipient:

http://pyfound.blogspot.com/2012/09/announcing-2012-distinctive-service.html

This is a fitting tribute to his many contributions.

Cheers,

f

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Eric Firing
On 2012/09/14 9:00 AM, Benjamin Root wrote:
 tricontourf() might be more what you are looking for.  Another
 possibility is pcolor() (note that for irregularly spaced grids,
 pcolormesh() would not work).

Huh? I don't think there is anything pcolor can handle that pcolormesh 
can't handle faster.  In both cases, the grids must be quadrilateral, 
but that's all.

Eric

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread gsal
Wonderful...pcolor is doing the job without processing, it takes exactly what
I already have...the n+1 values for x and y coordinates defining the
boundaries of the cells and the nxn matix itself.  

pcolormesh and pcolorfast also work.

Thank you very much.





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Need-to-plot-z-at-given-x-y-contour-or-something-tp38926p38930.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Benjamin Root
On Fri, Sep 14, 2012 at 3:50 PM, Eric Firing efir...@hawaii.edu wrote:

 On 2012/09/14 9:00 AM, Benjamin Root wrote:
  tricontourf() might be more what you are looking for.  Another
  possibility is pcolor() (note that for irregularly spaced grids,
  pcolormesh() would not work).

 Huh? I don't think there is anything pcolor can handle that pcolormesh
 can't handle faster.  In both cases, the grids must be quadrilateral,
 but that's all.

 Eric


Clarification: pcolormesh() must have a grid of coordinates (not
necessarially equally spaced).

As for pcolormesh() being able to handle anything that pcolor() can handle,
I have run into situations where that was not the case.  I don't remember
the details, though.  I think pcolorfast() operates like that (falling back
to pcolor() as a last resort).

Ben Root
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Eric Firing
On 2012/09/14 10:15 AM, Benjamin Root wrote:


 On Fri, Sep 14, 2012 at 3:50 PM, Eric Firing efir...@hawaii.edu
 mailto:efir...@hawaii.edu wrote:

 On 2012/09/14 9:00 AM, Benjamin Root wrote:
   tricontourf() might be more what you are looking for.  Another
   possibility is pcolor() (note that for irregularly spaced grids,
   pcolormesh() would not work).

 Huh? I don't think there is anything pcolor can handle that pcolormesh
 can't handle faster.  In both cases, the grids must be quadrilateral,
 but that's all.

 Eric


 Clarification: pcolormesh() must have a grid of coordinates (not
 necessarially equally spaced).

 As for pcolormesh() being able to handle anything that pcolor() can
 handle, I have run into situations where that was not the case.  I don't
 remember the details, though.  I think pcolorfast() operates like that
 (falling back to pcolor() as a last resort).

No, pcolorfast never falls back to pcolor.  In order of fastest to 
slowest, it tries to use image rendering, then a variant of nonuniform 
image rendering, and then a quadmesh.  It is a bit fussier about inputs 
than pcolor and pcolormesh, and does not draw lines.  pcolor and 
pcolormesh differ in the mechanism they use (pcolor uses a 
PolyCollection) and in the way masked data are handled (pcolor draws 
nothing in masked regions).

Eric



 Ben Root



--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users