Re: [Matplotlib-users] issue of compiling matplotlib1.1.0 on linux

2012-03-13 Thread Eric Firing
On 03/12/2012 08:28 PM, christophershou wrote:
 Hi, dears
 
 I’m a beginner of matplotlib and I tried hard, but couldn’t compile it
 
 Here’s the details of my system
 
 lLinux host28 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 
 x86_64 x86_64 x86_64 GNU/Linux

You are missing critical dependencies, including, but not limited to,
the freetype2 headers.

It looks like you are on a Redhat variant, so try the instructions in
the note here for using yum-builddep to get the dependencies:
http://matplotlib.sourceforge.net/users/installing.html#build-requirements

This may install an earlier version of numpy; if you have installed a
later version of numpy yourself and want to keep it, you can use the
package manager to uninstall the python-numpy package after running
yum-builddep and before building matplotlib.

Eric

 
 lNothing touched in setup.py or setupext.py
 
 lOutput of build
 
 basedirlist is: ['/usr/local', '/usr']
 
 
 
 BUILDING MATPLOTLIB
 
 matplotlib: 1.2.x
 
 python: 2.7.2 (default, Oct 27 2011, 14:39:41) [GCC 4.1.2
 
 20080704 (Red Hat 4.1.2-51)]
 
 platform: linux2
 
 REQUIRED DEPENDENCIES
 
 numpy: 1.6.1
 
 freetype2: found, but unknown version (no pkg-config)
 
 * WARNING: Could not find 'freetype2' headers in any
 
 * of '/usr/local/include', '/usr/include',
 
 * '/usr/local/include', '/usr/include', '.',
 
 * '/usr/local/include/freetype2',
 
 * '/usr/include/freetype2',
 
 * '/usr/local/include/freetype2',
 
 * '/usr/include/freetype2', './freetype2'.
 
 OPTIONAL BACKEND DEPENDENCIES
 
 libpng: found, but unknown version (no pkg-config)
 
 * Could not find 'libpng' headers in any of
 
 * '/usr/local/include', '/usr/include',
 
 * '/usr/local/include', '/usr/include', '.'
 
 Tkinter: no
 
 * TKAgg requires Tkinter
 
 Gtk+: no
 
 * Building for Gtk+ requires pygtk; you must be able
 
 * to import gtk in your build/install environment
 
 Mac OS X native: no
 
 Qt: no
 
 Qt4: no
 
 PySide: no
 
 Cairo: no
 
 OPTIONAL DATE/TIMEZONE DEPENDENCIES
 
 datetime: present, version unknown
 
 dateutil: matplotlib will provide
 
 pytz: matplotlib will provide
 
 adding pytz
 
 OPTIONAL USETEX DEPENDENCIES
 
 dvipng: no
 
 ghostscript: 8.70
 
 latex: no
 
 pdftops: 3.00
 
 [Edit setup.cfg to suppress the above messages]
 
 
 
 pymods ['pylab']
 
 packages ['matplotlib', 'matplotlib.backends', 
 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 
 'matplotlib.testing', 'matplotlib.testing.jpl_units', 
 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 
 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 
 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 
 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']
 
 ...skipping...
 
 copying lib/pytz/zoneinfo/Pacific/Guam - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Pohnpei - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Efate - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Port_Moresby - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Marquesas - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Guadalcanal - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Niue - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Ponape - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Honolulu - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Yap - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Tarawa - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Chuuk - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Kosrae - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Easter - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Johnston - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Norfolk - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Auckland - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Tongatapu - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Gambier - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Nauru - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Kwajalein - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Chatham - 
 

[Matplotlib-users] 答复: issue of compiling matplotlib1.1.0 on linux

2012-03-13 Thread christophershou
Thanks a lot, that issue has been resolved, thanks.
I manually install the missed libpng and freetype2 again, and I didn't find 
yum-builddep in my server(it's centos), after installed those two dependencies 
, compile done! Thanks again

Best regards!
Christopher Shou/Crawler Engineer


   Developed by Cmarket

  TEL : +86-10-5820-7077
       Fax : +86-10-5820-8575
      QQ : 250201619
   MSN:shouxiaoqi...@hotmail.com
Email : christophers...@cmarket.com.cn 
   Http://www.cloump.com 
  

-邮件原件-
发件人: Eric Firing [mailto:efir...@hawaii.edu] 
发送时间: Tuesday, March 13, 2012 3:15 PM
收件人: matplotlib-users@lists.sourceforge.net
主题: Re: [Matplotlib-users] issue of compiling matplotlib1.1.0 on linux

On 03/12/2012 08:28 PM, christophershou wrote:
 Hi, dears
 
 I’m a beginner of matplotlib and I tried hard, but couldn’t compile it
 
 Here’s the details of my system
 
 lLinux host28 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 
 x86_64 x86_64 x86_64 GNU/Linux

You are missing critical dependencies, including, but not limited to,
the freetype2 headers.

It looks like you are on a Redhat variant, so try the instructions in
the note here for using yum-builddep to get the dependencies:
http://matplotlib.sourceforge.net/users/installing.html#build-requirements

This may install an earlier version of numpy; if you have installed a
later version of numpy yourself and want to keep it, you can use the
package manager to uninstall the python-numpy package after running
yum-builddep and before building matplotlib.

Eric

 
 lNothing touched in setup.py or setupext.py
 
 lOutput of build
 
 basedirlist is: ['/usr/local', '/usr']
 
 
 
 BUILDING MATPLOTLIB
 
 matplotlib: 1.2.x
 
 python: 2.7.2 (default, Oct 27 2011, 14:39:41) [GCC 4.1.2
 
 20080704 (Red Hat 4.1.2-51)]
 
 platform: linux2
 
 REQUIRED DEPENDENCIES
 
 numpy: 1.6.1
 
 freetype2: found, but unknown version (no pkg-config)
 
 * WARNING: Could not find 'freetype2' headers in any
 
 * of '/usr/local/include', '/usr/include',
 
 * '/usr/local/include', '/usr/include', '.',
 
 * '/usr/local/include/freetype2',
 
 * '/usr/include/freetype2',
 
 * '/usr/local/include/freetype2',
 
 * '/usr/include/freetype2', './freetype2'.
 
 OPTIONAL BACKEND DEPENDENCIES
 
 libpng: found, but unknown version (no pkg-config)
 
 * Could not find 'libpng' headers in any of
 
 * '/usr/local/include', '/usr/include',
 
 * '/usr/local/include', '/usr/include', '.'
 
 Tkinter: no
 
 * TKAgg requires Tkinter
 
 Gtk+: no
 
 * Building for Gtk+ requires pygtk; you must be able
 
 * to import gtk in your build/install environment
 
 Mac OS X native: no
 
 Qt: no
 
 Qt4: no
 
 PySide: no
 
 Cairo: no
 
 OPTIONAL DATE/TIMEZONE DEPENDENCIES
 
 datetime: present, version unknown
 
 dateutil: matplotlib will provide
 
 pytz: matplotlib will provide
 
 adding pytz
 
 OPTIONAL USETEX DEPENDENCIES
 
 dvipng: no
 
 ghostscript: 8.70
 
 latex: no
 
 pdftops: 3.00
 
 [Edit setup.cfg to suppress the above messages]
 
 
 
 pymods ['pylab']
 
 packages ['matplotlib', 'matplotlib.backends', 
 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 
 'matplotlib.testing', 'matplotlib.testing.jpl_units', 
 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 
 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 
 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 
 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']
 
 ...skipping...
 
 copying lib/pytz/zoneinfo/Pacific/Guam - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Pohnpei - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Efate - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Port_Moresby - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Marquesas - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Guadalcanal - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Niue - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Ponape - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Honolulu - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Yap - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Tarawa - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Chuuk - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Kosrae - 
 build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific
 
 copying lib/pytz/zoneinfo/Pacific/Easter - 
 

Re: [Matplotlib-users] access to my underlying data from within picker or pick_handler

2012-03-13 Thread John Hunter
On Mon, Mar 12, 2012 at 11:05 PM, gsal salger...@gmail.com wrote:


 I am trying to change the underlying data for my plot via a pick event,
 except that the matplotlib examples for picking show a couple of functions
 with predefined signatures and I can't seem to figure out how to modify my
 data from within those functions...how to do it?

 Here is a minimal example of what I am trying to do:

 [code]
 import matplotlib.pyplot as plt

 def pick_rlines(art,mouseevent):
   button = mouseevent.button
   key = mouseevent.key

   wsf.nnn = 4  # -- how to modify wsf.nnn from here?
   print wsf.nnn = , wsf.nnn
   props = dict(nnn=wsf.nnn)
   return True, props

 def pick_handler(event):
   mouseevent = event.mouseevent
   button = mouseevent.button
   key = mouseevent.key
   art = event.artist

   wsf.nnn = event.nnn  # -- or from here ?

 class AAA():
   pass

 class BBB():
   def __init__(self):
  pass

   wsf=AAA()# when it is defined here?
   wsf.nnn=0
   GR = [1.0, 2.0, 3.0, 4.0]

   fig = plt.figure()
   ax = fig.add_axes([0.1,0.1,0.75,0.75])
   ax.set_aspect(1)
   rlines = ax.hlines(GR,0.0,4.0,picker=pick_rlines)
   fig.canvas.mpl_connect('pick_event', pick_handler)
   plt.show()

 if __name__ == '__main__':
   the = BBB()



In the code as you've written it, the is in the global namespace, and so
your pick event handlers can see that variable.  So you could write:

  def pick_rlines(art,mouseevent):
button = mouseevent.button
key = mouseevent.key
the.wsf.nnn = 4  # the is in the global namespace

But a cleaner design would be to make the pick handler a class method of
class BBB, eg

class BBB:

def __init__(self):
self.fig = blah_blah...
self.fig.canvas.mpl_connect('pick_event',  self.pick_handler)
self.wsf = blah_blah...

def pick_handler(self, artist, event):
self.wsf.nnn = 4   # wsf is in the class namespace
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] access to my underlying data from within picker or pick_handler

2012-03-13 Thread gsal

Thanks. That did the trick.


-- 
View this message in context: 
http://old.nabble.com/access-to-my-underlying-data-from-within-picker-or-pick_handler-tp33492013p33494708.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal

Say, on Windows, the mouseevent.key correctly comes in as control, shift, or
a letter...on Linux, it does notI am always getting None.

is this a known problem with known solution? 

thanks,

gsal
-- 
View this message in context: 
http://old.nabble.com/matplotlib-picking-mouseevent.key%3DNone-tp33494747p33494747.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread Benjamin Root
On Tue, Mar 13, 2012 at 10:05 AM, gsal salger...@gmail.com wrote:


 Say, on Windows, the mouseevent.key correctly comes in as control, shift,
 or
 a letter...on Linux, it does notI am always getting None.

 is this a known problem with known solution?


Which backend are you using?  Also, which mouse event are you using where
you expect a key value?  I would expect to use a key press event to process
.key values.

Ben Root
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread John Hunter
On Tue, Mar 13, 2012 at 10:05 AM, gsal salger...@gmail.com wrote:


 Say, on Windows, the mouseevent.key correctly comes in as control, shift,
 or
 a letter...on Linux, it does notI am always getting None.

 is this a known problem with known solution?


We need more information, what is your backend, what is you GUI toolkit
version?  If you post a minimal script that exposes the problem, and run it
with --verbose-helpful and post the output, we can see if we can replicate
the problem.

JDH
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal

Here are some imports: 

# PyQt4 modules
from PyQt4.QtCore import *
from PyQt4.QtGui  import *

# matplotlib modules
import matplotlib.patches as mpathes
import matplotlib.text as mtext
import matplotlib.lines as mlines
from matplotlib.path import Path
from matplotlib.collections import LineCollection

from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as
NavigationToolbar

And this:
matplotlib.__version__ = 0.99.1.1

I am afraid I may not be able to run a rather minimal app right away since
this is somebody else's Qt app, pretty large, that I am trying to add some
plotting...I will see if I can get start another minimal Qt app...

For now, there isn't much of a problem with the application, it is just that
I inspect the mouseevent from within the picker function and I get this

None
1
matplotlib.collections.LineCollection object at 0x132fa0d0

where
None is the key
1 is the mouse button pressed
and the rest is the artist





-- 
View this message in context: 
http://old.nabble.com/matplotlib-picking-mouseevent.key%3DNone-tp33494747p33494825.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal

Here are some imports: 

# PyQt4 modules 
from PyQt4.QtCore import * 
from PyQt4.QtGui  import * 

# matplotlib modules 
import matplotlib.patches as mpathes 
import matplotlib.text as mtext 
import matplotlib.lines as mlines 
from matplotlib.path import Path 
from matplotlib.collections import LineCollection 

from matplotlib.figure import Figure 
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas 
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as
NavigationToolbar 

And this: 
matplotlib.__version__ = 0.99.1.1 

I am afraid I may not be able to run a rather minimal app right away since
this is somebody else's Qt app, pretty large, that I am trying to add some
plotting...I will see if I can get start another minimal Qt app... 

For now, there isn't much of a problem with the application, it is just that
I inspect the mouseevent from within the picker function and I get this 

None 
1 
matplotlib.collections.LineCollection object at 0x132fa0d0 

where 
None is the key 
1 is the mouse button pressed 
and the rest is the artist 
-- 
View this message in context: 
http://old.nabble.com/matplotlib-picking-mouseevent.key%3DNone-tp33494747p33495268.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
Just noticed that ``subplots`` documentation is missing from
the homepage http://matplotlib.sourceforge.net/index.html
I assume this is an oversight, so I'm reporting it.

fwiw,
Alan Isaac

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] open ascii grid data and plot

2012-03-13 Thread Goyo
El día 12 de marzo de 2012 23:25, questions anon
questions.a...@gmail.com escribió:
[...]

 Is this how the data should look when it has been imported from an ascii to
 a numpy array?

I can't see anything obiously wrong in your code or your data --I did
not dive too deep into it though. What is weird is the traceback:

Traceback (most recent call last):
  File d:\plotrainfall.py, line 40, in module
CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
  File C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py,
line 3072, in contourf
np.logical_or(outsidemask,np.logical_or(ma.getmaskarray(data),xymask))
AttributeError: logical_or

Is that the complete traceback?

Goyo

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread gsal

It does come up for me.
-- 
View this message in context: 
http://old.nabble.com/missing-documentation-on-homepage%3A-subplots-tp33496068p33496313.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Goyo
El día 13 de marzo de 2012 00:25, Federico Ariza
ariza.feder...@gmail.com escribió:
 [...]
 I want to turn visibility on and off for lines.
 I can not use the visible property, using it the autolimits relim keeps
 considering the lines as being there.
 As consequence the limits are wrong (if we think only on the visible lines).

I faced this some time ago and my workaround was writing my own
(simplified) version of relim, if memory serves. But this may not fit
your needs here. Maybe a better solution is modify relim upstream so
it can take visibility into account (maybe using a new keyword). Just
a quick thought.

 So I resorted to remove the line from its axes by line.remove()

 The question is:
 If I do not want to use another variable to keep track of this line, how can
 I find it again from the figure instance (or somewhere else)?
 get_children gets me nowhere or maybe?

I don't think matplotlib keeps a reference to a line object after you
remove it from the axes. If I'm right and you want to follow that path
you'll need to track it yourself.

Regards

Goyo

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Federico Ariza
Hi

That is exactly what I am doing, but I thought it was kept somewhere.

I like the idea of upstream modification of relim.

Thanks
Federico

On Tue, Mar 13, 2012 at 2:13 PM, Goyo goyod...@gmail.com wrote:

 El día 13 de marzo de 2012 00:25, Federico Ariza
 ariza.feder...@gmail.com escribió:
  [...]
  I want to turn visibility on and off for lines.
  I can not use the visible property, using it the autolimits relim keeps
  considering the lines as being there.
  As consequence the limits are wrong (if we think only on the visible
 lines).

 I faced this some time ago and my workaround was writing my own
 (simplified) version of relim, if memory serves. But this may not fit
 your needs here. Maybe a better solution is modify relim upstream so
 it can take visibility into account (maybe using a new keyword). Just
 a quick thought.

  So I resorted to remove the line from its axes by line.remove()
 
  The question is:
  If I do not want to use another variable to keep track of this line, how
 can
  I find it again from the figure instance (or somewhere else)?
  get_children gets me nowhere or maybe?

 I don't think matplotlib keeps a reference to a line object after you
 remove it from the axes. If I'm right and you want to follow that path
 you'll need to track it yourself.

 Regards

 Goyo




-- 
Y yo que culpa tengo de que ellas se crean todo lo que yo les digo?

-- Antonio Alducin --
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PyQt4 FigureCanvasQTAgg Subclass segfaults with Matplotlib 1.1?

2012-03-13 Thread Keith Hughitt
Thanks for the suggestions, Darren.

I spent some time going through older revisions of Matplotlib (and
Numpy and SciPy) and it turns out that it isn't an issue with
Matplotlib as I originally suspected, but rather how I went out
updated an imshow-based plot. Previously I was attempting to plot an
image first, then set then use the result to create a
FigureCanvasQTAgg instance:

import matplotlib.pyplot as plt

figure = plt.figure()
self.axes = figure.add_subplot(111)
self.axes.imshow(...)

self.figure = figure
FigureCanvasQTAgg.__init__(self, self.figure)

This works in some environments and it happened to work at the time I
originally developed the code, but is not the best way to do things.

A better way is to first instantiate a Figure instance:

self.figure = Figure()
self.axes = self.figure.add_subplot(111)
self.axes.imshow(...)
FigureCanvasQTAgg.__init__(self, self.figure)

For now this seems to do the trick. If anyone knows of a better way to
do things, please let me know.

Thanks!
Keith

On Mon, Mar 12, 2012 at 11:57 AM, Darren Dale dsdal...@gmail.com wrote:

 Have you tried running with older checkouts on the master branch to
 see when the problem was introduced? You can do something like:

 git log --oneline --graph lib/matplotlib/backends/backend_qt4.py # or
 backend_qt4agg.py

 to see what commits were applied to master but not v1.0.x. Try
 bisecting the commit history to find the commit that introduced the
 problem (which you might want to describe in a little more detail.)

 Darren

 On Mon, Mar 12, 2012 at 10:13 AM, Keith Hughitt keith.hugh...@gmail.com 
 wrote:
  *bump*
 
  Anyone else encountering this problem?
 
 
  On Tue, Mar 6, 2012 at 4:06 PM, Keith Hughitt keith.hugh...@gmail.com
  wrote:
 
  Hey all,
 
  Anyone know what has changed from Maplotlib 1.0.x to 1.1.x that might
  cause a PyQt4 application to segfault?
 
  Here is the code I'm working
  on: https://github.com/sunpy/sunpy/blob/master/doc/examples/rgb_composite/rgb_composite.py
 
  It works fine with earlier versions of Matplotlib (0.99 and 1.0.x) but
  when I try and run the demo with Matplotlib 1.1 I get a segfault.
 
  Any ideas?
 
  Thanks,
  Keith
 
 
 
  --
  Try before you buy = See our experts in action!
  The most comprehensive online learning library for Microsoft developers
  is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
  Metro Style Apps, more. Free future releases when you subscribe now!
  http://p.sf.net/sfu/learndevnow-dev2
  ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 

 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Benjamin Root
On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza ariza.feder...@gmail.comwrote:

 Hi

 That is exactly what I am doing, but I thought it was kept somewhere.

 I like the idea of upstream modification of relim.

 Thanks
 Federico


Federico,

Why would you think it is kept somewhere?  The method is called remove,
after all.  I am curious because I want to know if improvements are needed
to the documentation.

As for relim(), I am thinking the autoscaling system needs another revamp.
I have ran into subtle issues with data limits that could not be easily
fixed in the current design.

rant
Everything plottable should have a get/set for x and y data, as well as
get/set for data (which may or may not be the same as the get/set for y.
Note that there might be some confusion regarding scalar mappables.  I
think this might be the source of confusion where some collections have
set_data() while others have set_array().
Also, not all objects, for some reason, implement remove(), or something
else messed up that I am not clear about.
/rant

Cheers!
Ben Root
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
On 3/13/2012 1:59 PM, gsal wrote:
 It does come up for me.


You are probably looking at ``subplot``
rather than ``subplots``.

Alan Isaac

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
On 3/13/2012 1:59 PM, gsal wrote:
 It does come up for me.


You are probably looking at ``subplot``
rather than ``subplots``, which is missing.

Alan Isaac

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Federico Ariza
Ben

Yest It is called remove but not destroy ;)
Given that the relim takes in count the invisible lines, I thougth it was
planned that you could remove and add the lines from its axes.

Thanks
Federico


On Tue, Mar 13, 2012 at 2:44 PM, Benjamin Root ben.r...@ou.edu wrote:



 On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza 
 ariza.feder...@gmail.comwrote:

 Hi

 That is exactly what I am doing, but I thought it was kept somewhere.

 I like the idea of upstream modification of relim.

 Thanks
 Federico


 Federico,

 Why would you think it is kept somewhere?  The method is called remove,
 after all.  I am curious because I want to know if improvements are needed
 to the documentation.

 As for relim(), I am thinking the autoscaling system needs another
 revamp.  I have ran into subtle issues with data limits that could not be
 easily fixed in the current design.

 rant
 Everything plottable should have a get/set for x and y data, as well as
 get/set for data (which may or may not be the same as the get/set for y.
 Note that there might be some confusion regarding scalar mappables.  I
 think this might be the source of confusion where some collections have
 set_data() while others have set_array().
 Also, not all objects, for some reason, implement remove(), or something
 else messed up that I am not clear about.
 /rant

 Cheers!
 Ben Root




-- 
Y yo que culpa tengo de que ellas se crean todo lo que yo les digo?

-- Antonio Alducin --
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Benjamin Root
On Tue, Mar 13, 2012 at 1:51 PM, Alan G Isaac alan.is...@gmail.com wrote:

 On 3/13/2012 1:59 PM, gsal wrote:
  It does come up for me.


 You are probably looking at ``subplot``
 rather than ``subplots``, which is missing.


I can make a pull request to fix this and some other issues I have noticed
today.

Ben Root
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread John Hunter
On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza ariza.feder...@gmail.comwrote:

 Hi

 That is exactly what I am doing, but I thought it was kept somewhere.

 I like the idea of upstream modification of relim.


It would be trivial to add a kwarg to relim:

include_invisible=True

which defaults to the current behavior.
def relim(self, include_invisible=True):

Recompute the data
limits based on current artists.  If you want to exclude
invisible artists from the calculation, set
`include_invisible=False`

At present, :class:`~matplotlib.collections.Collection`
instances are not supported.

# Collections are deliberately not supported (yet); see
# the TODO note in artists.py.
self.dataLim.ignore(True)
self.ignore_existing_data_limits = True
for line in self.lines:
if include_invisible or line.get_visible():
self._update_line_limits(line)

for p in self.patches:
if include_invisible or p.get_visible():
self._update_patch_limits(p)


But include_invisible isn't the most intuitive name...

JDH
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread gsal

I don't think so, I thought I paid attention when I noticed the choice
between 'subplot' and 'subplots'.

In any case, now there does not seem to be a choice, there is no
'subplots'...there is only 'subplot'...was this page modified? 'cause the
Last Updated notice at the bottom of the page still says Oct 30, 2011..

...I am confused.


-- 
View this message in context: 
http://old.nabble.com/missing-documentation-on-homepage%3A-subplots-tp33496068p33497211.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Eric Firing
On 03/13/2012 09:17 AM, John Hunter wrote:


 On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza
 ariza.feder...@gmail.com mailto:ariza.feder...@gmail.com wrote:

 Hi

 That is exactly what I am doing, but I thought it was kept somewhere.

 I like the idea of upstream modification of relim.


 It would be trivial to add a kwarg to relim:

 include_invisible=True

 which defaults to the current behavior.
  def relim(self, include_invisible=True):
 
  Recompute the data
  limits based on current artists.  If you want to exclude
  invisible artists from the calculation, set
  `include_invisible=False`

  At present, :class:`~matplotlib.collections.Collection`
  instances are not supported.
 
  # Collections are deliberately not supported (yet); see
  # the TODO note in artists.py.
  self.dataLim.ignore(True)
  self.ignore_existing_data_limits = True
  for line in self.lines:
 if include_invisible or line.get_visible():
  self._update_line_limits(line)

  for p in self.patches:
 if include_invisible or p.get_visible():
  self._update_patch_limits(p)


 But include_invisible isn't the most intuitive name...

visible_only=False is shorter.

Eric

 JDH




 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d



 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] open ascii grid data and plot

2012-03-13 Thread questions anon
thanks for looking into this Goyo.
The complete code:

import numpy as N
import matplotlib.pyplot as plt
from numpy import ma as MA
from mpl_toolkits.basemap import Basemap
import os

shapefile=E:/GIS_layers/DSE_REGIONS
inputfile=rd:/BoMdata/r19000117.txt
outputfolder=rd:/BoMdata/outputfolder

f=N.genfromtxt(inputfile, skip_header=6,  dtype=float, names=True)
print f[0:5]

map = Basemap(projection='merc',llcrnrlat=-45,urcrnrlat=-9,
  llcrnrlon=111.975,urcrnrlon=156.525,lat_ts=0,resolution='i')
map.drawcoastlines()
map.drawstates()
map.readshapefile(shapefile, 'DSE_REGIONS')
xi=N.linspace(111.975, 156.275, 886)
yi=N.linspace(-44.525, -9.975, 691)
x,y=map(*N.meshgrid(xi,yi))
plt.title('rainfall')
CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
l,b,w,h =0.1,0.1,0.8,0.8
cax = plt.axes([l+w+0.025, b, 0.025, h])
plt.colorbar(CS,cax=cax, drawedges=True)
plt.savefig((os.path.join(outputfolder, 'rainfall.png')))
plt.show()
plt.close()


and the complete error:

Traceback (most recent call last):
  File d:/BoMdata/plotrainfall_v2.py, line 23, in module
CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
  File C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py,
line 3072, in contourf
np.logical_or(outsidemask,np.logical_or(ma.getmaskarray(data),xymask))
AttributeError: logical_or

Any feedback/ideas will be greatly appreciated.



On Wed, Mar 14, 2012 at 4:59 AM, Goyo goyod...@gmail.com wrote:

 El día 12 de marzo de 2012 23:25, questions anon
 questions.a...@gmail.com escribió:
 [...]
 
  Is this how the data should look when it has been imported from an ascii
 to
  a numpy array?

 I can't see anything obiously wrong in your code or your data --I did
 not dive too deep into it though. What is weird is the traceback:

 Traceback (most recent call last):
  File d:\plotrainfall.py, line 40, in module
CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
  File C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py,
 line 3072, in contourf
np.logical_or(outsidemask,np.logical_or(ma.getmaskarray(data),xymask))
 AttributeError: logical_or

 Is that the complete traceback?

 Goyo

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] open ascii grid data and plot

2012-03-13 Thread questions anon
also I have tried running it on a different computer and the same error
occurred

On Wed, Mar 14, 2012 at 8:22 AM, questions anon questions.a...@gmail.comwrote:

 thanks for looking into this Goyo.
 The complete code:


 import numpy as N
 import matplotlib.pyplot as plt
 from numpy import ma as MA
 from mpl_toolkits.basemap import Basemap
 import os

 shapefile=E:/GIS_layers/DSE_REGIONS
 inputfile=rd:/BoMdata/r19000117.txt
 outputfolder=rd:/BoMdata/outputfolder

 f=N.genfromtxt(inputfile, skip_header=6,  dtype=float, names=True)
 print f[0:5]


 map = Basemap(projection='merc',llcrnrlat=-45,urcrnrlat=-9,
   llcrnrlon=111.975,urcrnrlon=156.525,lat_ts=0,resolution='i')
 map.drawcoastlines()
 map.drawstates()
 map.readshapefile(shapefile, 'DSE_REGIONS')

 xi=N.linspace(111.975, 156.275, 886)
 yi=N.linspace(-44.525, -9.975, 691)
 x,y=map(*N.meshgrid(xi,yi))
 plt.title('rainfall')
 CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
 l,b,w,h =0.1,0.1,0.8,0.8
 cax = plt.axes([l+w+0.025, b, 0.025, h])
 plt.colorbar(CS,cax=cax, drawedges=True)
 plt.savefig((os.path.join(outputfolder, 'rainfall.png')))
 plt.show()
 plt.close()


 and the complete error:


 Traceback (most recent call last):
   File d:/BoMdata/plotrainfall_v2.py, line 23, in module

 CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
   File C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py,
 line 3072, in contourf
 np.logical_or(outsidemask,np.logical_or(ma.getmaskarray(data),xymask))
 AttributeError: logical_or

 Any feedback/ideas will be greatly appreciated.




 On Wed, Mar 14, 2012 at 4:59 AM, Goyo goyod...@gmail.com wrote:

 El día 12 de marzo de 2012 23:25, questions anon
 questions.a...@gmail.com escribió:
 [...]
 
  Is this how the data should look when it has been imported from an
 ascii to
  a numpy array?

 I can't see anything obiously wrong in your code or your data --I did
 not dive too deep into it though. What is weird is the traceback:

 Traceback (most recent call last):
  File d:\plotrainfall.py, line 40, in module
CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet)
  File C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py,
 line 3072, in contourf
np.logical_or(outsidemask,np.logical_or(ma.getmaskarray(data),xymask))
 AttributeError: logical_or

 Is that the complete traceback?

 Goyo



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users