Re: [matplotlib-devel] Projections - custom_projection_example.py

2010-10-04 Thread Mitchell Jon Stanton-Cook
Hi Andrew,

Thanks for the reply.

I do not want to force users of my software to have to download and 
install basemap. It's just overkill for a small Python program that I'm 
developing.

Perhaps I'm best to try and use a PathPatch for the  _gen_axes_patch  
_gen_axes_spines. Does anyone have any ideas?

Regards

Mitch



On 04/10/10 06:10, Andrew Straw wrote:
On 10/2/2010 8:33 PM, Mitchell Jon Stanton-Cook wrote:

 Hello,

 I have been trying to modify the custom projection example
 (http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html)
 to plot a Sanson Flamsteed Projection (Sinusoidal projection).
  
 Dear Mitchell,

 Can you use the 'sinu' projection in basemap? E.g.
 basemap/examples/contour_demo.py figure 1.

 -Andrew


 --
 Virtualization is moving to the mainstream and overtaking non-virtualized
 environment for deploying applications. Does it make network security
 easier or more difficult to achieve? Read this whitepaper to separate the
 two and get a better understanding.
 http://p.sf.net/sfu/hp-phase2-d2d
 ___
 Matplotlib-devel mailing list
 Matplotlib-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



--
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Projections - custom_projection_example.py

2010-10-02 Thread Mitchell Jon Stanton-Cook
Hello,

I have been trying to modify the custom projection example 
(http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html) 
to plot a Sanson Flamsteed Projection (Sinusoidal projection).

Such a projection is defined as:

long0=0
x = (long-long0)*cos(lat)
y=lat

The problem is how to correctly handle the:
* _gen_axes_patch
* _gen_axes_spines

As the resultant plot area/plot boundaries is not circular/elliptical 
like the examples provided.

Does anyone, who has played with this projections, or has better 
understanding of matplotlib provide me with a way to handle this?

Regards

Mitchell







--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Matplotlib and setuptools

2010-05-31 Thread Mitchell Jon Stanton-Cook
Hello,

I have developed a package that uses matplotlib.

To simplify installation and distribution I have used the setup tools 
package.

This is an excerpt from my setup.py:

install_requires = ['biopython=1.51', 'scipy=0.7', 'numpy=1.3.0', 
'matplotlib=0.99.0']

However it fails on matplolib with the following reason:

Searching for matplotlib==0.99.0
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading 
http://sourceforge.net/project/showfiles.php?group_id=80706package_id=82474
Reading 
https://sourceforge.net/project/showfiles.php?group_id=80706package_id=278194
Reading 
https://sourceforge.net/project/showfiles.php?group_id=80706package_id=82474
Reading 
https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
No local packages or download links found for matplotlib==0.99.0
error: Could not find suitable distribution for 
Requirement.parse('matplotlib==0.99.0')

I have also tried 0.99.1 but it also fails.

Does anyone have any ideas?

Regards

Mitchell Stanton-Cook


--

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