On a scatter plot demo

In the on-line Matplotlib documentation there is an example:

scatter_demo2.py

which shows a very nice scatter plot --- one that I would like to be able to reproduce. However, I have been unsuccessful in getting it to execute on my system.

I get the following error:

AttributeError: 'module' object has no attribute 'get_sample_data'
File "D:\Python Code Testing\MatPlotLib_Example_02.py", line 14, in <module>
   datafile = cbook.get_sample_data('goog.npy')

Has anyone succeeded in getting this interesting example to run on their system? If yes, I would appreciate information on how they accomplished this.

--V. Stokes

It looks like you're running an earlier version of matplotlib from before the "get_sample_data" function existed.

What does:

>>> import matplotlib
>>> matplotlib.__version__

give you?

Mike

···

On 08/19/2010 04:34 AM, Virgil Stokes wrote:

   In the on-line Matplotlib documentation there is an example:

scatter_demo2.py

which shows a very nice scatter plot --- one that I would like to be able to
reproduce. However, I have been unsuccessful in getting it to execute on my system.

I get the following error:

AttributeError: 'module' object has no attribute 'get_sample_data'
File "D:\Python Code Testing\MatPlotLib_Example_02.py", line 14, in<module>
    datafile = cbook.get_sample_data('goog.npy')

Has anyone succeeded in getting this interesting example to run on their system?
If yes, I would appreciate information on how they accomplished this.

--V. Stokes

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA