[Matplotlib-users] GCC error when building matplotlib

2012-08-24 Thread Joe Borġ
Hi,

I've reinstalled numpy and the error from gcc has changed.  Please see log,
all the system information should be in there.


Regards,
Joseph David Borġ
http://www.jdborg.com


matplotlib_build.log
Description: Binary data
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GCC error when building matplotlib

2012-08-24 Thread Benjamin Root
On Fri, Aug 24, 2012 at 6:35 AM, Joe Borġ  wrote:

> Hi,
>
> I've reinstalled numpy and the error from gcc has changed.  Please see
> log, all the system information should be in there.
>
>
Matplotlib 1.1.1 does not work with py3k.  We are just about ready to
release v1.2.0 which will work with py3k.  Please feel free to checkout the
master branch on our github page and test it out before the release!

Ben Root
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GCC error when building matplotlib

2012-08-24 Thread Joe Borġ
Thanks Ben,

Works fine.


Regards,
Joseph David Borġ
http://www.jdborg.com


On 24 August 2012 13:41, Benjamin Root  wrote:

>
> On Fri, Aug 24, 2012 at 6:35 AM, Joe Borġ  wrote:
>
>> Hi,
>>
>> I've reinstalled numpy and the error from gcc has changed.  Please see
>> log, all the system information should be in there.
>>
>>
> Matplotlib 1.1.1 does not work with py3k.  We are just about ready to
> release v1.2.0 which will work with py3k.  Please feel free to checkout the
> master branch on our github page and test it out before the release!
>
> Ben Root
>
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap via macports

2012-08-24 Thread Francesco Montesano
2012/8/24 Carlos Grohmann :
> Hello all,
>
> I just did a fresh macports install, and installed py27-matplotlib-basemap,
> so all dependencies were installed as well.
>
> After installing python, I did run port-select (or something like it) to
> make sure I'm using macports python.
>
> My problem is that I can't run it:
>
>
> GuanoMac:~ guano$ python
> Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
 from mpl_toolkits.basemap import Basemap
> Traceback (most recent call last):
>   File "", line 1, in 
> ImportError: No module named basemap
>
>
> Anyone experienced in this kind of installation could share hints?

if you do
import sys
print sys.path

you can check if the directory of basemap is in your path

if not, you can add it both in the scritp/session
appending/inserting/extending sys.path (which is a list):
e.g.: sys.path.append( "dir/to/basemap" )
or in the .profile, .bash_profile or .bash_rc files (in this way is
loaded in every session)
export PYTHONPATH=$PYTHONPATH:dir/to/basemap


cheers,
Francesco

>
> tks
>
> Carlos
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Geosciences - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> 
> Can’t stop the signal.
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap via macports

2012-08-24 Thread George Nurser
Hi,
Macports python is currently 2.7.3.
I don't think you are running macports python.

Try /opt/local/python & see if you have the same problem.

George Nurser

On 24 August 2012 15:46, Carlos Grohmann  wrote:
> Hello all,
>
> I just did a fresh macports install, and installed py27-matplotlib-basemap,
> so all dependencies were installed as well.
>
> After installing python, I did run port-select (or something like it) to
> make sure I'm using macports python.
>
> My problem is that I can't run it:
>
>
> GuanoMac:~ guano$ python
> Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
 from mpl_toolkits.basemap import Basemap
> Traceback (most recent call last):
>   File "", line 1, in 
> ImportError: No module named basemap
>
>
> Anyone experienced in this kind of installation could share hints?
>
> tks
>
> Carlos
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Geosciences - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> 
> Can’t stop the signal.
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap via macports

2012-08-24 Thread Jeff Whitaker

On 8/24/12 8:46 AM, Carlos Grohmann wrote:

Hello all,

I just did a fresh macports install, and installed 
py27-matplotlib-basemap, so all dependencies were installed as well.


After installing python, I did run port-select (or something like it) 
to make sure I'm using macports python.


My problem is that I can't run it:


You are not running macports python (you're running Apple python). Try 
running /opt/local/bin/python27, and then import basemap.


-Jeff



GuanoMac:~ guano$ python
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named basemap


Anyone experienced in this kind of installation could share hints?

tks

Carlos

--
Prof. Carlos Henrique Grohmann
Institute of Geosciences - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com 

Can't stop the signal.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


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



--
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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Limit data for plot Basemap

2012-08-24 Thread John Bluee
Hi all

I have to plot seismic data on a worldmap and use the Basemap framework to do 
it.
My dataset contains important data in the range of -1e-8 to -1e-14 and 1e-14 to 
1e-9. Can I limit the plot to only display data in this range?

thanks and greets



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Limit data for plot Basemap

2012-08-24 Thread Benjamin Root
On Fri, Aug 24, 2012 at 11:57 AM, John Bluee  wrote:

> Hi all
>
> I have to plot seismic data on a worldmap and use the Basemap framework to
> do it.
> My dataset contains important data in the range of -1e-8 to -1e-14 and
> 1e-14 to 1e-9. Can I limit the plot to only display data in this range?
>
> thanks and greets
>
>
How are you plotting your data (plot, pcolor, scatter, etc?).  Also, is
that range the range of values in your arrays, or are they some sort of
coordinate ranges?

Cheers!
Ben Root
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Limit data for plot Basemap

2012-08-24 Thread John Bluee
I have lat and lon as coordinates and to each point a value. So far I use 
contourf to plot. 


Am 24.08.2012 um 18:14 schrieb Benjamin Root :

> 
> 
> On Fri, Aug 24, 2012 at 11:57 AM, John Bluee  wrote:
> Hi all
> 
> I have to plot seismic data on a worldmap and use the Basemap framework to do 
> it.
> My dataset contains important data in the range of -1e-8 to -1e-14 and 1e-14 
> to 1e-9. Can I limit the plot to only display data in this range?
> 
> thanks and greets
> 
> 
> How are you plotting your data (plot, pcolor, scatter, etc?).  Also, is that 
> range the range of values in your arrays, or are they some sort of coordinate 
> ranges?
> 
> Cheers!
> Ben Root
> 

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Michael Rawlins


Relatively new user here. I need to place a series of white colored dots on a 
map. I've been able to place black dots using:

plt.plot(x,y,color='k',marker='.',markersize=3.0)

The color option in this command does not plot the chosen color, only black. 
The command:

plt.plot(x,y,'wo')

places white dots with black around the edges.  I see that the 'w' is for white 
and 'o' is for the symbol. I'd like to use the former command since that gives 
me control over marker size and a dot without a black edge.

Lastly, it's not clear to me if I should be using plt.plot or just plot. Both 
work, and I don't know the difference. 
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Damon McDougall
Hey Michael!

Welcome :)

On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote:
> 
> Relatively new user here. I need to place a series of white colored dots on a 
> map. I've been able to place black dots using:
> 
> plt.plot(x,y,color='k',marker='.',markersize=3.0)
>

You can change the colour with:

plt.pyplot(x, y, color='g', marker='.', markersize=3.0)

That will plot a green dot.

> 
> The color option in this command does not plot the chosen color, only black. 
> The command:
> 
> plt.plot(x,y,'wo')
>

You can change the colour of the edge with the 'markeredgecolour'
option, or 'mec' for short:

plt.plot(x, y, 'wo', mec='w')

Kablam! Big white Os with no black edge.
You can also control the size of the marker there, too:

plt.plot(x, y, 'wo', mec='w', markersize=10.0)

> 
> places white dots with black around the edges.  I see that the 'w' is for 
> white and 'o' is for the symbol. I'd like to use the former command since 
> that gives me control over marker size and a dot without a black edge.
> 
> Lastly, it's not clear to me if I should be using plt.plot or just plot. Both 
> work, and I don't know the difference. 

If you're using pylab, it doesn't matter:

In [5]: print plot


In [6]: print plt.plot


They are *literally* the same function in memory.

Hope this helps, Michael.
Good luck!

-- 
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Damon McDougall
On Fri, Aug 24, 2012 at 09:20:47PM +0100, Damon McDougall wrote:
> Hey Michael!
> 
> Welcome :)
> 
> On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote:
> > 
> > Relatively new user here. I need to place a series of white colored dots on 
> > a map. I've been able to place black dots using:
> > 
> > plt.plot(x,y,color='k',marker='.',markersize=3.0)
> >
> 
> You can change the colour with:
> 
> plt.pyplot(x, y, color='g', marker='.', markersize=3.0)
> 
> That will plot a green dot.
> 
> > 
> > The color option in this command does not plot the chosen color, only 
> > black. The command:
> > 
> > plt.plot(x,y,'wo')
> >
> 
> You can change the colour of the edge with the 'markeredgecolour'
>

Sorry! That should me 'markeredgecolor'. All commands are American
spelling.

If I had a penny for every time I got a syntax error for using British
spelling, I'd have about 3 pence.

> option, or 'mec' for short:
> 
> plt.plot(x, y, 'wo', mec='w')
> 
> Kablam! Big white Os with no black edge.
> You can also control the size of the marker there, too:
> 
> plt.plot(x, y, 'wo', mec='w', markersize=10.0)
> 
> > 
> > places white dots with black around the edges.  I see that the 'w' is for 
> > white and 'o' is for the symbol. I'd like to use the former command since 
> > that gives me control over marker size and a dot without a black edge.
> > 
> > Lastly, it's not clear to me if I should be using plt.plot or just plot. 
> > Both work, and I don't know the difference. 
> 
> If you're using pylab, it doesn't matter:
> 
> In [5]: print plot
> 
> 
> In [6]: print plt.plot
> 
> 
> They are *literally* the same function in memory.
> 
> Hope this helps, Michael.
> Good luck!
> 
> -- 
> Damon McDougall
> http://www.damon-is-a-geek.com
> B2.39
> Mathematics Institute
> University of Warwick
> Coventry
> West Midlands
> CV4 7AL
> United Kingdom

-- 
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Background basemaps in Basemap

2012-08-24 Thread klo uo
I wanted to overlay some plot over map, and thought to use one of
provided background maps that come with Basemap
Result isn't that great as expected: loading bluemarble map took 1GB
memory, and zooming i.e. Europe region on 1920x1080 screen is too
blurred w/o details. As a consequence, using custom basemap with even
greater resolution is out of consideration

OTOH whatever I do in Google Earth, memory never exceeds 200MB and
it's even lower with ArcGIS Explorer with any basemap on it. Maybe
it's because these packages use advanced tilling features maybe it's
else, but isn't there something that can be done with Basemap package
so that topological maps can be useful with it? Like using some GIS
webservice or similar?

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Michael Rawlins





 From: Damon McDougall 
To: Michael Rawlins  
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Friday, August 24, 2012 4:22 PM
Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command
 
On Fri, Aug 24, 2012 at 09:20:47PM +0100, Damon McDougall wrote:
> Hey Michael!
> 
> Welcome :)
> 
> On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote:
> > 
> > Relatively new user here. I need to place a series of white colored dots on 
> > a map. I've been able to place black dots using:
> > 
> > plt.plot(x,y,color='k',marker='.',markersize=3.0)
> >
> 
> You can change the colour with:
> 
> plt.pyplot(x, y, color='g', marker='.', markersize=3.0)
> 
> That will plot a green dot.


Damon,

plt.pyplot gives an error:

AttributeError: 'module' object has no attribute 'pyplot'

If I use plt.plot(x, y, color='g', marker='.', markersize=3.0)

the dots are black. But I've found success with:

plt.plot(x,y,'wo',markeredgecolor='white',markersize=3.0)

so all is well. Thanks for your help.

> 
> > 
> > The color option in this command does not plot the chosen color, only 
> > black. The command:
> > 
> > plt.plot(x,y,'wo')
> >
> 
> You can change the colour of the edge with the 'markeredgecolour'
>

-- 
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-24 Thread Jeff Whitaker
On 8/24/12 3:37 PM, klo uo wrote:
> I wanted to overlay some plot over map, and thought to use one of
> provided background maps that come with Basemap
> Result isn't that great as expected: loading bluemarble map took 1GB
> memory, and zooming i.e. Europe region on 1920x1080 screen is too
> blurred w/o details. As a consequence, using custom basemap with even
> greater resolution is out of consideration
>
> OTOH whatever I do in Google Earth, memory never exceeds 200MB and
> it's even lower with ArcGIS Explorer with any basemap on it. Maybe
> it's because these packages use advanced tilling features maybe it's
> else, but isn't there something that can be done with Basemap package
> so that topological maps can be useful with it? Like using some GIS
> webservice or similar?

Oh sure, it's simple!

http://www.google.com/patents?id=J4YOEBAJ&dq=6618053

-Jeff
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-- 
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-24 Thread klo uo
On Sat, Aug 25, 2012 at 1:26 AM, Jeff Whitaker wrote:
>
> Oh sure, it's simple!
>
> http://www.google.com/patents?id=J4YOEBAJ&dq=6618053

Hi Jeff,

thanks for your reply.

I was hoping to get response if there are ideas how this unfortunate
performance can be avoided. If there are some thoughts or if it's
closed case.

About GIS web-services, I thought maybe extending Basemap and
providing interface to some of available online mapping services.
For example arcgis is just one of them, and allows using their online
map service to arbitrary application, while exposing REST
(http://resources.arcgis.com/en/help/rest/apiref/index.html?mapserver.html)
and SOAP service with full WSDL description
(http://services.arcgisonline.com/ArcGIS/services/World_Imagery/MapServer?wsdl)
and documentation. REST requests cover all of their services while
SOAP is limited and a bit harder to code in this example. Services
offer much more than it's needed to be paired in Basemap, as can be
seen from documentation, with any imaginable projection and what not.

As an example of using the service here is image: http://i.imgur.com/RpUFv.png
and here is it's simple source code that executes unnoticeable in second:

  import matplotlib.pyplot as plt
  import urllib2

  lon1 = -10; lon2 = 30; lat1 = 30; lat2 = 60
  basemap_url =
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/export?bbox=%d,%d,%d,%d&bboxSR=4326&size=1024,768&dpi=128&format=png32&f=image";
% (lon1, lat1, lon2, lat2)
  overlay_url =
"https://ogcie.iblsoft.com/sigwx?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=ASXX&WIDTH=1024&HEIGHT=768&CRS=EPSG:4326&BBOX=%d,%d,%d,%d&TRANSPARENT=TRUE&STYLES=&FORMAT=image/png";
% (lon1, lat1, lon2, lat2)

  plt.figure(figsize=(8, 6), dpi=128, facecolor='w')
  plt.imshow(plt.imread(urllib2.urlopen(basemap_url)))
  plt.imshow(plt.imread(urllib2.urlopen(overlay_url)))
  plt.gca().axison = False
  plt.savefig("scene.png", dpi=128, transparent=True)


As both "basemap map" and overlay image use same CRS, this seems
doable with just MPL.

Having such service paired in Basemap as a feature looks very
promising to me. I don't know much about MPL and Basemap design, as if
all above talk is easy and then acceptable for implementation, but
that's roughly what I had in mind for web-services - as additional
feature for replacing bloated background maps provided, which does not
have such quality to justify low performance.


Cheers

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users