[matplotlib-devel] problem with logic determining version numbers?

2010-02-12 Thread Nadia Dencheva
Hi MPL developers,

I use an older matplotlib version but this code is the same in SVN, so I thought
I'll mention it.

Thanks,
Nadia

In [1]: from matplotlib import pyplot as plt
---
ImportError   Traceback (most recent call last)

/tangra/data1/dev/spectra/center1d/center1d/matplotlib/__init__.py in ()
 149 if not (int(nn[0]) >= 1 and int(nn[1]) >= 1):
 150 raise ImportError(
--> 151 'numpy 1.1 or later is required; you have %s' % 
 
numpy.__version__)
 152
 153 def is_string_like(obj):

ImportError: numpy 1.1 or later is required; you have 2.0.0.dev8107

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] missing projections

2010-02-12 Thread Jeff Whitaker
Phillip M. Feldman wrote:
> Jeff Whitaker wrote:
>> Phillip M. Feldman wrote:
>>> Andrew Straw wrote:
 Jeff Whitaker wrote:
  
> Dr. Phillip M. Feldman wrote:
>
>> Basemap offers many projections, but is missing two of the most 
>> useful ones:
>>
>> - For satellite applications, it would be helpful to have a "camera"
>> projection, i.e., a projection that shows the Earth as viewed from a
>> specified point in space.  This would be a generalization of the 
>> current
>> geostationary projection.
>> 
> Philip:  Don't think the proj4 lib supports this.
>   
 I think it's already in there -- see nsper, for near sided 
 perspective.

 -Andrew


Philip:  I've added the near-sided perspective projection to basemap svn 
- see the nsper_demo.py example.  It only works if the earth is assumed 
to be a perfect sphere (no ellipsoids allowed).

-Jeff
   
>>> Hello Andrew-
>>>
>>> It does sound as thought nsper is exactly what I need, but when I 
>>> try to use it, I get the following error message:
>>>
>>> ValueError: 'nsper' is an unsupported projection.
>>> The supported projections are:
>>>
>>> aeqd Azimuthal Equidistant
>>> poly Polyconic
>>> gnom Gnomonic
>>> moll Mollweide
>>> tmercTransverse Mercator
>>> nplaea   North-Polar Lambert Azimuthal
>>> gall Gall Stereographic Cylindrical
>>> mill Miller Cylindrical
>>> merc Mercator
>>> stereStereographic
>>> npstere  North-Polar Stereographic
>>> geos Geostationary
>>> vandgvan der Grinten
>>> laea Lambert Azimuthal Equal Area
>>> mbtfpq   McBryde-Thomas Flat-Polar Quartic
>>> sinu Sinusoidal
>>> spstere  South-Polar Stereographic
>>> lcc  Lambert Conformal
>>> npaeqd   North-Polar Azimuthal Equidistant
>>> eqdc Equidistant Conic
>>> cyl  Cylindrical Equidistant
>>> omercOblique Mercator
>>> aea  Albers Equal Area
>>> spaeqd   South-Polar Azimuthal Equidistant
>>> orthoOrthographic
>>> cass Cassini-Soldner
>>> splaea   South-Polar Lambert Azimuthal
>>> robinRobinson
>>>
>>> Phillip 
>> Philip:  I think Andrew meant nsper is in proj4.  I'll look into 
>> adding support for it in Basemap.
>>
>> -Jeff
>>
> Thanks!


-- 
Jeffrey S. Whitaker Phone  : (303)497-6313
Meteorologist   FAX: (303)497-6449
NOAA/OAR/PSD  R/PSD1Email  : jeffrey.s.whita...@noaa.gov
325 BroadwayOffice : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] problem with logic determining version numbers?

2010-02-12 Thread Andrew Straw
Nadia Dencheva wrote:
> Hi MPL developers,
>
> I use an older matplotlib version but this code is the same in SVN, so I 
> thought
> I'll mention it.
>
> ImportError: numpy 1.1 or later is required; you have 2.0.0.dev8107
Thanks Nadia. Fixed in svn r8128.

-Andrew


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Display Interactive plots on a web page?

2010-02-12 Thread Brian32

Andrew,

jpPlot looks very promising.  I will definitely try to add that into my
code. 

Thanks, 
Brian

Andrew Straw wrote:
> 
> Brian32 wrote:
>> Hello,
>>
>> I am currently displaying plots on a web page using matplotlib by
>> creating
>> .png files.  I would like have the ability for people to have access to
>> the
>> interactive plot feature (Zoom,Save) when they look at the plots on the
>> web
>> page.  I do not care if the plot is a pop up or if is directly on the web
>> page.  At this point I just want the interactive feature available.  I am
>> assuming that the end user that clicks on a web link will already have
>> python/matplotlib installed.  Does anyone know if this is even possible? 
>> If
>> it is I would love to see an example of this.  
>>
>> Thanks in advance,
>> Brian 
>>   
> I think you might be interesting in something like a javascript charting
> library. This webpage lists some interesting options:
> http://www.alsonkemp.com/tools/highcharts-javascript-charting-library/
> 
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Display-Interactive-plots-on-a-web-page--tp27550397p27566906.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel