You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
(1) |
2
(8) |
3
(10) |
4
|
5
(4) |
6
|
7
(5) |
8
(6) |
9
(4) |
10
(12) |
11
(7) |
12
(2) |
13
(2) |
14
(5) |
15
(9) |
16
(4) |
17
(7) |
18
(2) |
19
(12) |
20
(8) |
21
(11) |
22
(11) |
23
(2) |
24
(18) |
25
(18) |
26
(6) |
27
(7) |
28
(10) |
29
(7) |
30
(31) |
31
(10) |
|
From: Jeff W. <jef...@no...> - 2012-08-28 18:35:34
|
On 8/28/12 9:31 AM, Jose Gomez-Dans wrote: > Hi, > I'd like to plot some EASE Grid global data (the EASE grid is defined > for a cylindrical equal area projection). In proj4 parlance, it is > defined as > > +proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 > +units=m +no_defs > > My data are gridded, and I want to use either pcolormesh or imshow to > plot them on a map. Apart from reprojecting into something that > basemap deals with natively, is there something else that I can do > within python/matplolib to plot the data without reprojecting it? > > Thanks! > Jose > Jose: Shouldn't be too hard to add support for that projection. Could you file a feature request at https://github.com/matplotlib/basemap/issues ?? -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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Jeff W. <jef...@no...> - 2012-08-28 18:15:51
|
On 8/28/12 12:09 PM, klo uo wrote: > Jeff, I just thought to mention this: function name "wmsmap" maybe > should be changed to "restmap" as for WMS servers will need to do > another template. Here is example urllib call for sample WMS function > GetMap: Klo: Let's move this discussion over to the pull request https://github.com/matplotlib/basemap/pull/73 -Jeff > > ======================================== > basemap_url = "\ > http://geonetwork3.fao.org/ows/14097?\ > request=GetMap&\ > service=WMS&\ > version=1.1.1&\ > layers=country_bnd&\ > format=image/svg%2Bxml&\ > bgcolor=0xFFFFFF&\ > transparent=TRUE&\ > srs=EPSG:4326&\ > bbox=-180,-137.464503042596,180,137.464503042596&\ > width=986&\ > height=753\ > " > ======================================== -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: klo uo <kl...@gm...> - 2012-08-28 18:09:55
|
Jeff, I just thought to mention this: function name "wmsmap" maybe should be changed to "restmap" as for WMS servers will need to do another template. Here is example urllib call for sample WMS function GetMap: ======================================== basemap_url = "\ http://geonetwork3.fao.org/ows/14097?\ request=GetMap&\ service=WMS&\ version=1.1.1&\ layers=country_bnd&\ format=image/svg%2Bxml&\ bgcolor=0xFFFFFF&\ transparent=TRUE&\ srs=EPSG:4326&\ bbox=-180,-137.464503042596,180,137.464503042596&\ width=986&\ height=753\ " ======================================== |
From: klo uo <kl...@gm...> - 2012-08-28 16:57:10
|
>> Jeff it looks great, everything is parametrized including server name >> and map name, so it should work for any additional service. >> However on Windows with Python 2.7 and Basemap 1.0.5 I get an error >> while trying to run the script: > > > Klo: Just added a pull request for this > > https://github.com/matplotlib/basemap/pull/73 > > Regarding your windows error - you have to rebuild basemap to get the needed > updates (it's not just a matter of running the testwms.py script). Thanks will do that right now. I was just investigating possibility of returning clear map without annotations where it is possible. For example World_Topo_Map (http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer) has additional layers and according layers parameter in export function (http://atlas.resources.ca.gov/arcgis/SDK/REST/export.html): ======================================== Description: Determines which layers appear on the exported map. There are four ways to specify which layers are shown: show: Only the layers specified in this list will be exported. hide: All layers except those specified in this list will be exported. include: In addition to the layers exported by default, the layers specified in this list will be exported. exclude: The layers exported by default excluding those specified in this list will be exported. Syntax: [show | hide | include | exclude]:layerId1,layerId2 where layerId1, layerId2are the layer ids returned by the map service resource Example: layers=show:2,4,7 ======================================== if we add additional parameter "&layers=hide:5,6,7,8,9" I expected annotations to be gone, but unfortunately not there yet Will look further if it's somehow possible to clear annotations. |
From: Jeff W. <jef...@no...> - 2012-08-28 16:21:43
|
On 8/28/12 9:56 AM, klo uo wrote: > On Mon, Aug 27, 2012 at 9:32 PM, Jeff Whitaker wrote: >> Klo: Yes. And vice versa, some of those 4500 projections aren't supported >> by Basemap. >> >> Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it >> by cloning my fork (https://github.com/jswhit/basemap) and running >> examples/testwms.py. I created an extra kward 'epsg' for creating Basemap >> instances. To use the wmsmap function, you have to use that keyword. Give >> it a try and let me know what you think. > Jeff it looks great, everything is parametrized including server name > and map name, so it should work for any additional service. > However on Windows with Python 2.7 and Basemap 1.0.5 I get an error > while trying to run the script: Klo: Just added a pull request for this https://github.com/matplotlib/basemap/pull/73 Regarding your windows error - you have to rebuild basemap to get the needed updates (it's not just a matter of running the testwms.py script). -Jeff > ======================================== > Traceback (most recent call last): > File "testwms.py", line 39, in <module> > m=Basemap2(epsg=epsg,resolution='h',width=width,height=height) > TypeError: __init__() got an unexpected keyword argument 'epsg' > ======================================== > > I than added initial empty "epsg" arg to original Basemap class > declaration, but then after some time processing I get: > ======================================== > warning: width and height keywords ignored for Cylindrical Equidistant > projectionEPSG: > Traceback (most recent call last): > File "testwms.py", line 47, in <module> > m.drawparallels(np.arange(0,80,1),labels=[1,0,0,0]) > File "testwms.py", line 15, in wmsmap > if not hasattr(self,'epsg'): > AttributeError: 'Basemap2' object has no attribute 'epsg' > ======================================== > > So I leave it for now and assume it's some tiny issue not obvious at > this time to me. > > I'll continue WMS search, but yesterday I spent couple of hours just > to look at those beautiful maps provided on arcgis server. I explored > on all and it's so nicely done and with high resolution zoom. They are > annotated though, but again, see i.e. Ocean Basemap, or overlay with > transparency over some more colored topo map like GEBCO_08 from > maps.ngdc.noaa.gov server - just great. World Topo also... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: klo uo <kl...@gm...> - 2012-08-28 15:56:11
|
On Mon, Aug 27, 2012 at 9:32 PM, Jeff Whitaker wrote: > > Klo: Yes. And vice versa, some of those 4500 projections aren't supported > by Basemap. > > Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it > by cloning my fork (https://github.com/jswhit/basemap) and running > examples/testwms.py. I created an extra kward 'epsg' for creating Basemap > instances. To use the wmsmap function, you have to use that keyword. Give > it a try and let me know what you think. Jeff it looks great, everything is parametrized including server name and map name, so it should work for any additional service. However on Windows with Python 2.7 and Basemap 1.0.5 I get an error while trying to run the script: ======================================== Traceback (most recent call last): File "testwms.py", line 39, in <module> m=Basemap2(epsg=epsg,resolution='h',width=width,height=height) TypeError: __init__() got an unexpected keyword argument 'epsg' ======================================== I than added initial empty "epsg" arg to original Basemap class declaration, but then after some time processing I get: ======================================== warning: width and height keywords ignored for Cylindrical Equidistant projectionEPSG: Traceback (most recent call last): File "testwms.py", line 47, in <module> m.drawparallels(np.arange(0,80,1),labels=[1,0,0,0]) File "testwms.py", line 15, in wmsmap if not hasattr(self,'epsg'): AttributeError: 'Basemap2' object has no attribute 'epsg' ======================================== So I leave it for now and assume it's some tiny issue not obvious at this time to me. I'll continue WMS search, but yesterday I spent couple of hours just to look at those beautiful maps provided on arcgis server. I explored on all and it's so nicely done and with high resolution zoom. They are annotated though, but again, see i.e. Ocean Basemap, or overlay with transparency over some more colored topo map like GEBCO_08 from maps.ngdc.noaa.gov server - just great. World Topo also... |
From: Jose Gomez-D. <jgo...@gm...> - 2012-08-28 15:31:27
|
Hi, I'd like to plot some EASE Grid global data (the EASE grid is defined for a cylindrical equal area projection). In proj4 parlance, it is defined as +proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs My data are gridded, and I want to use either pcolormesh or imshow to plot them on a map. Apart from reprojecting into something that basemap deals with natively, is there something else that I can do within python/matplolib to plot the data without reprojecting it? Thanks! Jose |
From: Mic <mic...@gm...> - 2012-08-28 05:41:40
|
Hello, I am not able to get nicer spaces between the xticks with the following code: *import random import matplotlib.pyplot as plt coverages = [random.randint(1,10)*2] * 100 contig_names = ['AAB0008r'] * len(coverages) fig = plt.figure() fig.clf() ax = fig.add_subplot(111) ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.5) ind = range(len(coverages)) rects = ax.bar(ind, coverages, width=0.2, align='center', color='thistle') ax.set_xticks(ind) ax.set_xticklabels(contig_names) #function to auto-rotate the x axis labels fig.autofmt_xdate() plt.show() * How to get more space between the xticks so they do not look like overlapped anymore? Thank you in advance. |
From: Jeff W. <jef...@no...> - 2012-08-27 19:32:10
|
On 8/27/12 11:24 AM, klo uo wrote: > On Mon, Aug 27, 2012 at 2:34 PM, Jeff Whitaker wrote: >> Klo: WMS servers use EPSG codes to define map projections - Basemap uses a >> set of kwargs. We need some way of inferring epsg codes from the Basemap >> kwargs. Alternatively, we could extend Basemap so it can accept EPSG codes. >> But, there are many EPSG codes that don't correspond to allowable Basemap >> projections, and valid Basemap projections that don't correspond to EPSG >> codes. It's not obvious to me how to proceed. >>> Here is same server from agency where you work according your >>> signature: maps.ngdc.noaa.gov/rest/services it provides additional >>> maps on same server as arcgis >>> >>> I also checked many WMS servers, first with XML editor but then with >>> Gaia, which was excellent help in determining that many WMS servers >>> just return their capabilities, but does not provide service as >>> described in capabilities response. Some offer tilling features, for >>> possible future interactive zooming in Basemap ;) >> >> Maybe it's better not have the function accept a OWSLib wms object - that >> way we don't have to tie ourselves to a particular WMS server. > > Thanks for explaining Jeff, but aren't we using arcgis REST service > which accepts more then 4500 projections? Are you saying Basemap > offers projection that's not listed here: > http://atlas.resources.ca.gov/arcgis/SDK/REST/gcs.html Klo: Yes. And vice versa, some of those 4500 projections aren't supported by Basemap. Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it by cloning my fork (https://github.com/jswhit/basemap) and running examples/testwms.py. I created an extra kward 'epsg' for creating Basemap instances. To use the wmsmap function, you have to use that keyword. Give it a try and let me know what you think. -Jeff > > EPSG codes may be important to WMS. And providing WMS feature is maybe > question how. Any GIS tool has WMS service support. Some WMS servers > provide tiling capabilities and that also can be considered for future > feature of fast zooming in Basemap. Most of them seem to offer just > EPSG:4326 and there are servers with many projections (not as many as > arcgis REST service) > But at this point of static map servers we can just use urllib module > and do requested WMS function which will return the map without using > any additional function or package > > I'm validating public WMS servers and these days I'll report again. As > mentioned many simply aren't working, many are localized, etc. > Hope will find nice usage for some selected > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Alexander C. <AC...@as...> - 2012-08-27 19:03:51
|
We have a WMS server that uses basemap to display unstructured ocean model data. We just limit the set of projections to a select few (just the most common ones), and have a mapping between EPSG and the required Basemap kwargs. It sometimes requires some implementation of proj4 prior to getting to the Basemap part of the code. I can see that it could be useful and not to difficult to add an EPSG kwarg for a few most common projections and how they would be used by Basemap users. Alexander Crosby RPS-ASA On Mon, 2012-08-27 at 06:34 -0600, Jeff Whitaker wrote: On 8/26/12 9:07 PM, klo uo wrote: > On Sun, Aug 26, 2012 at 9:56 PM, Jeff Whitaker wrote: >> Klo: Since epsg codes comprise a very small subset of possible Basemap >> projections, it may be better to just allow Basemap to accept an epsg kwarg. >> That keyword would be required in order to use a WMS to display a map >> background. This may be tricky though, since Basemap needs more information >> to define a map projection region than is provided by the epsg code. We may >> have to start with just a few supported epsg codes and then add more as >> necessary. >> >> I added a testwms.py example to my fork >> (https://github.com/jswhit/basemap.git) that shows how to use three >> different map projections (epsg codes). > I'm not sure if I understand projection problem, as arcgis webservice > provides thousands of projections, but then you know better. > I thought that the code will be just one function which would accept > Map name, then coordinates and projection code will be deduced from > Basemap function initiation? Klo: WMS servers use EPSG codes to define map projections - Basemap uses a set of kwargs. We need some way of inferring epsg codes from the Basemap kwargs. Alternatively, we could extend Basemap so it can accept EPSG codes. But, there are many EPSG codes that don't correspond to allowable Basemap projections, and valid Basemap projections that don't correspond to EPSG codes. It's not obvious to me how to proceed. > > Here is same server from agency where you work according your > signature: maps.ngdc.noaa.gov/rest/services it provides additional > maps on same server as arcgis > > I also checked many WMS servers, first with XML editor but then with > Gaia, which was excellent help in determining that many WMS servers > just return their capabilities, but does not provide service as > described in capabilities response. Some offer tilling features, for > possible future interactive zooming in Basemap ;) Maybe it's better not have the function accept a OWSLib wms object - that way we don't have to tie ourselves to a particular WMS server. -Jeff > > Here is one http://maps.dwd.de/geoserver/wms?request=GetCapabilities&service=WMS&version=1.1.1 > which offers bluemarble in many projection. Additionally it offers > some German datasets, but does not offer tilling service. > > Perhaps we could look just for servers with get map service but also > tilling support and support for various projections. > > ------------------------------------------------------------------------------ > 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 > Mat...@li...<mailto:Mat...@li...> > 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 Mat...@li...<mailto:Mat...@li...> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: klo uo <kl...@gm...> - 2012-08-27 17:25:05
|
On Mon, Aug 27, 2012 at 2:34 PM, Jeff Whitaker wrote: > Klo: WMS servers use EPSG codes to define map projections - Basemap uses a > set of kwargs. We need some way of inferring epsg codes from the Basemap > kwargs. Alternatively, we could extend Basemap so it can accept EPSG codes. > But, there are many EPSG codes that don't correspond to allowable Basemap > projections, and valid Basemap projections that don't correspond to EPSG > codes. It's not obvious to me how to proceed. >> >> Here is same server from agency where you work according your >> signature: maps.ngdc.noaa.gov/rest/services it provides additional >> maps on same server as arcgis >> >> I also checked many WMS servers, first with XML editor but then with >> Gaia, which was excellent help in determining that many WMS servers >> just return their capabilities, but does not provide service as >> described in capabilities response. Some offer tilling features, for >> possible future interactive zooming in Basemap ;) > > > Maybe it's better not have the function accept a OWSLib wms object - that > way we don't have to tie ourselves to a particular WMS server. Thanks for explaining Jeff, but aren't we using arcgis REST service which accepts more then 4500 projections? Are you saying Basemap offers projection that's not listed here: http://atlas.resources.ca.gov/arcgis/SDK/REST/gcs.html EPSG codes may be important to WMS. And providing WMS feature is maybe question how. Any GIS tool has WMS service support. Some WMS servers provide tiling capabilities and that also can be considered for future feature of fast zooming in Basemap. Most of them seem to offer just EPSG:4326 and there are servers with many projections (not as many as arcgis REST service) But at this point of static map servers we can just use urllib module and do requested WMS function which will return the map without using any additional function or package I'm validating public WMS servers and these days I'll report again. As mentioned many simply aren't working, many are localized, etc. Hope will find nice usage for some selected |
From: Michael R. <raw...@ya...> - 2012-08-27 15:28:49
|
________________________________ From: Warren Weckesser <war...@en...> To: "mat...@li..." <mat...@li...> Sent: Saturday, August 25, 2012 11:13 AM Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command On Sat, Aug 25, 2012 at 9:59 AM, Michael Rawlins <raw...@ya...> wrote: > > > > >________________________________ > From: Damon McDougall <dam...@gm...> >To: Michael Rawlins <raw...@ya...> >Cc: "mat...@li..." <mat...@li...> >Sent: Saturday, August 25, 2012 4:21 AM >Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command > >On Fri, Aug 24, 2012 at 02:39:12PM -0700, Michael Rawlins wrote: >> >> >> >> >> ________________________________ >> From: Damon McDougall <dam...@gm...> >> To: Michael Rawlins <raw...@ya...> >> Cc: "mat...@li..." <mat...@li...> >> 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: > >> >> If I use plt.plot(x, y, color='g', marker='.', markersize=3.0) >> >> the dots are black. > >That should not happen... Have you tried some of the other colours? 'r', >'b', 'm', 'y', 'c'? Are they all black? What are you saving the file as? What >is the output of: > >plt.get_backend() > > >Yes I've tried several. All produce black dots. The output of that command is 'agg'. I use: > >plt.savefig('map.eps') > >to produce eps images. > > The default 'markeredgecolor' (or 'mec') is black, and with small dots, you will see more edge color than face color. To test this, create the same plot but with an exaggerated marker size, e.g. markersize=30. If that is the problem, you can fix it by also setting the edge color to green, e.g. mec='g'. Warren [Sending to the list this time--forgot to "reply to all" the first time.] Success. I've made the markers larger. The correct color is being plotted. As Warren suggested, without specifying markeredgecolor I see mostly black border with the smaller marker size. Thanks to all for the help. ------------------------------------------------------------------------------ >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 >Mat...@li... >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 Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Francesco M. <fra...@gm...> - 2012-08-27 15:11:30
|
Dear matplotlibers, I encountered a bug (?) in fill_between when using logarithmic scales and the last part of y and yerr arrays as set to zero: a diagonal stripe going from the rightmost non zero value to the first value is drawn. It's visible in the right panel of the attached figure, while is not present if the plot is linear (left panel). If xaxis is log and yaxis is linear the plot is correctly drawn. I'm using mpl.__version__ = '1.1.1rc' under Kubuntu 12.04 with Python 2.7.3 The plot has been created with the script below. Is this a bug or am I missing something? Cheers Francesco ##### error_fill_between.py ###### import matplotlib.pyplot as plt import numpy as np #values to plot x = np.linspace( 1, 10, num=100 ) y = np.exp( -x**2 ) y[50:] = 0 yerr = y* np.random.rand(100) #figure fig = plt.figure() ax1 = fig.add_subplot(121) #first axes: linear ax1.errorbar( x,y,yerr, c='r' ) ax1.fill_between( x,y-yerr,y+yerr, color='b', alpha=0.4 ) ax2 = fig.add_subplot(122) #second axes: logarithmic ax2.errorbar( x,y,yerr, c='r' ) ax2.fill_between( x,y-yerr,y+yerr, color='b', alpha=0.4 ) ax2.set_xscale( "log" ) ax2.set_yscale( "log" ) plt.show() ###### end script ######### |
From: Jeff W. <js...@fa...> - 2012-08-27 12:34:29
|
On 8/26/12 9:07 PM, klo uo wrote: > On Sun, Aug 26, 2012 at 9:56 PM, Jeff Whitaker wrote: >> Klo: Since epsg codes comprise a very small subset of possible Basemap >> projections, it may be better to just allow Basemap to accept an epsg kwarg. >> That keyword would be required in order to use a WMS to display a map >> background. This may be tricky though, since Basemap needs more information >> to define a map projection region than is provided by the epsg code. We may >> have to start with just a few supported epsg codes and then add more as >> necessary. >> >> I added a testwms.py example to my fork >> (https://github.com/jswhit/basemap.git) that shows how to use three >> different map projections (epsg codes). > I'm not sure if I understand projection problem, as arcgis webservice > provides thousands of projections, but then you know better. > I thought that the code will be just one function which would accept > Map name, then coordinates and projection code will be deduced from > Basemap function initiation? Klo: WMS servers use EPSG codes to define map projections - Basemap uses a set of kwargs. We need some way of inferring epsg codes from the Basemap kwargs. Alternatively, we could extend Basemap so it can accept EPSG codes. But, there are many EPSG codes that don't correspond to allowable Basemap projections, and valid Basemap projections that don't correspond to EPSG codes. It's not obvious to me how to proceed. > > Here is same server from agency where you work according your > signature: maps.ngdc.noaa.gov/rest/services it provides additional > maps on same server as arcgis > > I also checked many WMS servers, first with XML editor but then with > Gaia, which was excellent help in determining that many WMS servers > just return their capabilities, but does not provide service as > described in capabilities response. Some offer tilling features, for > possible future interactive zooming in Basemap ;) Maybe it's better not have the function accept a OWSLib wms object - that way we don't have to tie ourselves to a particular WMS server. -Jeff > > Here is one http://maps.dwd.de/geoserver/wms?request=GetCapabilities&service=WMS&version=1.1.1 > which offers bluemarble in many projection. Additionally it offers > some German datasets, but does not offer tilling service. > > Perhaps we could look just for servers with get map service but also > tilling support and support for various projections. > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: klo uo <kl...@gm...> - 2012-08-27 03:07:32
|
On Sun, Aug 26, 2012 at 9:56 PM, Jeff Whitaker wrote: > Klo: Since epsg codes comprise a very small subset of possible Basemap > projections, it may be better to just allow Basemap to accept an epsg kwarg. > That keyword would be required in order to use a WMS to display a map > background. This may be tricky though, since Basemap needs more information > to define a map projection region than is provided by the epsg code. We may > have to start with just a few supported epsg codes and then add more as > necessary. > > I added a testwms.py example to my fork > (https://github.com/jswhit/basemap.git) that shows how to use three > different map projections (epsg codes). I'm not sure if I understand projection problem, as arcgis webservice provides thousands of projections, but then you know better. I thought that the code will be just one function which would accept Map name, then coordinates and projection code will be deduced from Basemap function initiation? Here is same server from agency where you work according your signature: maps.ngdc.noaa.gov/rest/services it provides additional maps on same server as arcgis I also checked many WMS servers, first with XML editor but then with Gaia, which was excellent help in determining that many WMS servers just return their capabilities, but does not provide service as described in capabilities response. Some offer tilling features, for possible future interactive zooming in Basemap ;) Here is one http://maps.dwd.de/geoserver/wms?request=GetCapabilities&service=WMS&version=1.1.1 which offers bluemarble in many projection. Additionally it offers some German datasets, but does not offer tilling service. Perhaps we could look just for servers with get map service but also tilling support and support for various projections. |
From: Timothy D. <tim...@gm...> - 2012-08-26 22:57:22
|
Hi, It turns out I was missing two packages: freetype and libpng. These could be downloaded as brew install freetype brew install libpng I thought I had done this... I may have re-installed pkg-config via brew as well. I'm not sure why I was unable to google this.... After making these changes I had no problem installing the development version of matplotlib. Thanks, Tim On Sun, Aug 26, 2012 at 5:41 PM, Timothy Duly <tim...@gm...> wrote: > Hi, > > I'm having trouble installing matplotlib on my Mac OS X mountain lion > (10.8). > > See my output below. Note two things: > > 1. The error is "predicted" by > > freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in > any > * of '/usr/local/include', '/usr/include', > * '/usr/X11/include', '/usr/local/include', > * '/usr/include', '.', > * '/usr/local/include/freetype2', > * '/usr/include/freetype2', > * '/usr/X11/include/freetype2', > * '/usr/local/include/freetype2', > * '/usr/include/freetype2', './freetype2'. > > even though I have pkg-config installed via "brew install pkg-config" > > 2. For some reason, the installer cannot find "ft2build.h". To the best > of my knowledge, this file is not on my machine: > In file included from src/ft2font.cpp:3: > > src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found > > #include <ft2build.h> > > ^ > > 1 error generated. > > I have installed pkg-config via "brew install pkg-config", and "brew > doctor" gives me no issues. I installed matplotlib via the command: > > sudo pip install git+ > https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev > > Does anyone know what might be the issue here? I had no problems on OS X > 10.7... > > Thanks, > Tim > > > Here's the full log message: > > Downloading/unpacking matplotlib-dev from git+ > https://github.com/matplotlib/matplotlib.git > Running setup.py egg_info for package matplotlib-dev > basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] > > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.2.x > python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC > 4.2.1 > Compatible Apple Clang 4.0 > (tags/Apple/clang-418.0.60)] > platform: darwin > > 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/X11/include', '/usr/local/include', > * '/usr/include', '.', > * '/usr/local/include/freetype2', > * '/usr/include/freetype2', > * '/usr/X11/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/X11/include', '/usr/local/include', > * '/usr/include', '.' > Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: > 8.5 > Gtk+: no > * Building for Gtk+ requires pygtk; you must > be able > * to "import gtk" in your build/install > environment > Mac OS X native: yes > Qt: no > Qt4: no > PySide: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > dateutil: 1.5 > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: /bin/sh: gs: command not found > latex: no > > [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'] > > warning: no files found matching 'KNOWN_BUGS' > warning: no files found matching 'INTERACTIVE' > warning: no files found matching 'MANIFEST' > warning: no files found matching '__init__.py' > warning: no files found matching 'examples/data/*' > warning: no files found matching 'lib/mpl_toolkits' > warning: no files found matching > 'lib/matplotlib/mpl-data/matplotlib.conf' > warning: no files found matching > 'lib/matplotlib/mpl-data/matplotlib.conf.template' > warning: no files found matching 'LICENSE*' under directory 'license' > Installing collected packages: matplotlib-dev > Running setup.py install for matplotlib-dev > basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] > > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.2.x > python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC > 4.2.1 > Compatible Apple Clang 4.0 > (tags/Apple/clang-418.0.60)] > platform: darwin > > 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/X11/include', '/usr/local/include', > * '/usr/include', '.', > * '/usr/local/include/freetype2', > * '/usr/include/freetype2', > * '/usr/X11/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/X11/include', '/usr/local/include', > * '/usr/include', '.' > Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: > 8.5 > Gtk+: no > * Building for Gtk+ requires pygtk; you must > be able > * to "import gtk" in your build/install > environment > Mac OS X native: yes > Qt: no > Qt4: no > PySide: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > dateutil: 1.5 > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: /bin/sh: gs: command not found > latex: no > > [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'] > building 'matplotlib.ft2font' extension > clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe > -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE > -DMACOSX -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall > -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 > -I/usr/local/include -I/usr/include -I/usr/X11/include > -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include > -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 > -I/usr/include/freetype2 -I/usr/X11/include/freetype2 > -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -c src/ft2font.cpp -o build/temp.macosx-10.8-intel-2.7/src/ft2font.o > clang: warning: argument unused during compilation: '-mno-fused-madd' > In file included from src/ft2font.cpp:3: > src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found > #include <ft2build.h> > ^ > 1 error generated. > error: command 'clang' failed with exit status 1 > Complete output from command /usr/bin/python -c "import > setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', > '\n'), __file__, 'exec'))" install --single-version-externally-managed > --record /tmp/pip-EQWF8R-record/install-record.txt: > basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] > > > ============================================================================ > > BUILDING MATPLOTLIB > > matplotlib: 1.2.x > > python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 > > Compatible Apple Clang 4.0 > > (tags/Apple/clang-418.0.60)] > > platform: darwin > > > > 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/X11/include', '/usr/local/include', > > * '/usr/include', '.', > > * '/usr/local/include/freetype2', > > * '/usr/include/freetype2', > > * '/usr/X11/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/X11/include', '/usr/local/include', > > * '/usr/include', '.' > > Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 > > Gtk+: no > > * Building for Gtk+ requires pygtk; you must be > able > > * to "import gtk" in your build/install environment > > Mac OS X native: yes > > Qt: no > > Qt4: no > > PySide: no > > Cairo: no > > > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > > dateutil: 1.5 > > pytz: matplotlib will provide > > adding pytz > > > > OPTIONAL USETEX DEPENDENCIES > > dvipng: no > > ghostscript: /bin/sh: gs: command not found > > latex: no > > > > [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'] > > running install > > running build > > running build_py > > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.macosx-10.8-intel-2.7/matplotlib/mpl-data > > running build_ext > > building 'matplotlib.ft2font' extension > > clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common > -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX > -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes > -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 > -I/usr/local/include -I/usr/include -I/usr/X11/include > -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include > -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 > -I/usr/include/freetype2 -I/usr/X11/include/freetype2 > -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -c src/ft2font.cpp -o build/temp.macosx-10.8-intel-2.7/src/ft2font.o > > clang: warning: argument unused during compilation: '-mno-fused-madd' > > In file included from src/ft2font.cpp:3: > > src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found > > #include <ft2build.h> > > ^ > > 1 error generated. > > error: command 'clang' failed with exit status 1 > > ---------------------------------------- > Command /usr/bin/python -c "import > setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', > '\n'), __file__, 'exec'))" install --single-version-externally-managed > --record /tmp/pip-EQWF8R-record/install-record.txt failed with error code 1 > in /Users/duly/build/matplotlib-dev > Storing complete log in /Users/duly/Library/Logs/pip.log > > > |
From: Timothy D. <tim...@gm...> - 2012-08-26 22:41:27
|
Hi, I'm having trouble installing matplotlib on my Mac OS X mountain lion (10.8). See my output below. Note two things: 1. The error is "predicted" by freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '/usr/local/include', '/usr/include', * '/usr/X11/include', '/usr/local/include', * '/usr/include', '.', * '/usr/local/include/freetype2', * '/usr/include/freetype2', * '/usr/X11/include/freetype2', * '/usr/local/include/freetype2', * '/usr/include/freetype2', './freetype2'. even though I have pkg-config installed via "brew install pkg-config" 2. For some reason, the installer cannot find "ft2build.h". To the best of my knowledge, this file is not on my machine: In file included from src/ft2font.cpp:3: src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found #include <ft2build.h> ^ 1 error generated. I have installed pkg-config via "brew install pkg-config", and "brew doctor" gives me no issues. I installed matplotlib via the command: sudo pip install git+ https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev Does anyone know what might be the issue here? I had no problems on OS X 10.7... Thanks, Tim Here's the full log message: Downloading/unpacking matplotlib-dev from git+ https://github.com/matplotlib/matplotlib.git Running setup.py egg_info for package matplotlib-dev basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.x python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] platform: darwin 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/X11/include', '/usr/local/include', * '/usr/include', '.', * '/usr/local/include/freetype2', * '/usr/include/freetype2', * '/usr/X11/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/X11/include', '/usr/local/include', * '/usr/include', '.' Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 1.5 pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [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'] warning: no files found matching 'KNOWN_BUGS' warning: no files found matching 'INTERACTIVE' warning: no files found matching 'MANIFEST' warning: no files found matching '__init__.py' warning: no files found matching 'examples/data/*' warning: no files found matching 'lib/mpl_toolkits' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template' warning: no files found matching 'LICENSE*' under directory 'license' Installing collected packages: matplotlib-dev Running setup.py install for matplotlib-dev basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.x python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] platform: darwin 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/X11/include', '/usr/local/include', * '/usr/include', '.', * '/usr/local/include/freetype2', * '/usr/include/freetype2', * '/usr/X11/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/X11/include', '/usr/local/include', * '/usr/include', '.' Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 1.5 pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [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'] building 'matplotlib.ft2font' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.8-intel-2.7/src/ft2font.o clang: warning: argument unused during compilation: '-mno-fused-madd' In file included from src/ft2font.cpp:3: src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found #include <ft2build.h> ^ 1 error generated. error: command 'clang' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt: basedirlist is: ['/usr/local/', '/usr', '/usr/X11'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.x python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] platform: darwin 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/X11/include', '/usr/local/include', * '/usr/include', '.', * '/usr/local/include/freetype2', * '/usr/include/freetype2', * '/usr/X11/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/X11/include', '/usr/local/include', * '/usr/include', '.' Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 1.5 pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [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'] running install running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.8-intel-2.7/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.8-intel-2.7/src/ft2font.o clang: warning: argument unused during compilation: '-mno-fused-madd' In file included from src/ft2font.cpp:3: src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found #include <ft2build.h> ^ 1 error generated. error: command 'clang' failed with exit status 1 ---------------------------------------- Command /usr/bin/python -c "import setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt failed with error code 1 in /Users/duly/build/matplotlib-dev Storing complete log in /Users/duly/Library/Logs/pip.log |
From: Jeff W. <js...@fa...> - 2012-08-26 19:56:30
|
On 8/26/12 5:44 AM, klo uo wrote: > On Sun, Aug 26, 2012 at 12:18 AM, Jeff Whitaker <js...@fa...> wrote: >> Klo: The image in interpolated to the Basemap projection region. This is >> slow - the main reason to use the WMS is to avoid this by having it done on >> the server side. > All right, that's the right way anyway > > >> The trick is to figure out what the EPSG projection code is based on the >> Basemap projection info, and pass that information to the WMS server so it >> can do the interpolation. > Yes, and also to pass right `size` parameter as aspect ratio needs to be correct > Do you want me to try to pair both projections (Basemap name and WKID > and WKT as they call it)? Klo: Since epsg codes comprise a very small subset of possible Basemap projections, it may be better to just allow Basemap to accept an epsg kwarg. That keyword would be required in order to use a WMS to display a map background. This may be tricky though, since Basemap needs more information to define a map projection region than is provided by the epsg code. We may have to start with just a few supported epsg codes and then add more as necessary. I added a testwms.py example to my fork (https://github.com/jswhit/basemap.git) that shows how to use three different map projections (epsg codes). -Jeff -Jeff > > >> Here's an example for south polar stereographic: >> >> width = 12000.e3 >> plt.figure() >> basemap_url =\ >> "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export?\ >> bbox=%d,%d,%d,%d&\ >> bboxSR=3412&\ >> imageSR=3412&\ >> size=800,800&\ >> dpi=128&\ >> format=png32&\ >> f=image" % (-width/2,-width/2,width/2,width/2) >> m =\ >> Basemap(projection='stere',resolution='i',lon_0=0,lat_0=-90,lat_ts=-70,\ >> width=width,height=width,rsphere=(6378273,6356889.449)) >> m.imshow(plt.imread(urllib2.urlopen(basemap_url)),origin='upper') >> m.drawmeridians(np.arange(-180,180,30),labels=[0,0,0,1],color='y') >> m.drawparallels(np.arange(-80,-0,10),labels=[1,0,0,0],color='y') >> m.drawcoastlines() >> plt.show() >> > Looks beautifully :) > > As said later today I'll look at Nokia maps and then will try to look > for WMS servers. |
From: Carlos G. <car...@gm...> - 2012-08-26 17:59:56
|
Indeed I was running Apple Python instead of macport. Thanks for all that pointed it out. best Carlos On Fri, Aug 24, 2012 at 11:46 AM, Carlos Grohmann <car...@gm... > 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 "<stdin>", line 1, in <module> > 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. > > -- 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. |
From: klo uo <kl...@gm...> - 2012-08-26 17:18:11
|
> As said later today I'll look at Nokia maps and then will try to look > for WMS servers. Nokia map services are OK, and can be used even without applying for free account, but they brand every map with their logo even for professional licence. REST services (http://api.maps.nokia.com/en/restmaps/overview.html) are very limited, in one projection and mapped according central point instead bounding box. They offer (http://api.maps.nokia.com/en/index.html) other approaches like JS, JAVA, HTML5 and perhaps some more advanced service can be deduced from there in Python, but it's not worth perhaps. BTW I checked one WMS server (http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities). It has tiling service (GetTileService) and mapping service (GetMap) but only in standard projection EPSG:4326 Here are maps provided: 1 - WMS Global Mosaic, pan sharpened 2 - WMS Global Mosaic, not pan sharpened 3 - CONUS mosaic of 1990 MRLC dataset 4 - SRTM reflectance magnitude, 30m 5 - Current global view of the earth, morning 6 - Current global view of the earth in the afternoon 7 - Blue Marble Next Generation, Global MODIS derived image 8 - Blue Marble, Global MODIS derived image 9 - SRTM derived global elevation, 3 arc-second, hue mapped 10 - Global 1km elevation, seamless SRTM land elevation and ocean depth 11 - SRTM derived global elevation, 3 arc-second 12 - United States elevation, 30m 13 - Digital Elevation Map of the United States, DTED dataset, 3 second resolution, grayscale 14 - Digital Elevation Map of the United States, DTED dataset, 3 second resolution, hue mapped 15 - ASTER DEM, tiled only, 1.5 arc-second per pixel Only first two offer international locations (from Landsat) |
From: klo uo <kl...@gm...> - 2012-08-26 11:44:48
|
On Sun, Aug 26, 2012 at 12:18 AM, Jeff Whitaker <js...@fa...> wrote: > Klo: The image in interpolated to the Basemap projection region. This is > slow - the main reason to use the WMS is to avoid this by having it done on > the server side. All right, that's the right way anyway > The trick is to figure out what the EPSG projection code is based on the > Basemap projection info, and pass that information to the WMS server so it > can do the interpolation. Yes, and also to pass right `size` parameter as aspect ratio needs to be correct Do you want me to try to pair both projections (Basemap name and WKID and WKT as they call it)? > Here's an example for south polar stereographic: > > width = 12000.e3 > plt.figure() > basemap_url =\ > "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export?\ > bbox=%d,%d,%d,%d&\ > bboxSR=3412&\ > imageSR=3412&\ > size=800,800&\ > dpi=128&\ > format=png32&\ > f=image" % (-width/2,-width/2,width/2,width/2) > m =\ > Basemap(projection='stere',resolution='i',lon_0=0,lat_0=-90,lat_ts=-70,\ > width=width,height=width,rsphere=(6378273,6356889.449)) > m.imshow(plt.imread(urllib2.urlopen(basemap_url)),origin='upper') > m.drawmeridians(np.arange(-180,180,30),labels=[0,0,0,1],color='y') > m.drawparallels(np.arange(-80,-0,10),labels=[1,0,0,0],color='y') > m.drawcoastlines() > plt.show() > Looks beautifully :) As said later today I'll look at Nokia maps and then will try to look for WMS servers. |
From: Jeff W. <js...@fa...> - 2012-08-25 22:18:41
|
On 8/25/12 3:08 PM, klo uo wrote: > On Sat, Aug 25, 2012 at 10:19 PM, Jeff Whitaker <js...@fa...> wrote: >> Klo: For cylindrical equidistant maps (projection='cyl') it will be easy, >> since the corner lat/lon values are all that is needed. For other >> projections, we'll need a way to translate EPSG projection codes into >> Basemap kwargs. > Jeff, how is it done for static bitmaps as bluemarble, etopo... ? > Can't the same be done, if image fits in one of supported projections? Klo: The image in interpolated to the Basemap projection region. This is slow - the main reason to use the WMS is to avoid this by having it done on the server side. > > According http://atlas.resources.ca.gov/arcgis/SDK/REST/export.html > `bbox` is required with syntax like: > > Syntax: <xmin>, <ymin>, <xmax>, <ymax> > > Number format for `bbox` AFAIK (but not sure) depends on `bboxSR` > projection and dense list of available projections with their code is > here: http://atlas.resources.ca.gov/arcgis/SDK/REST/pcs.html The trick is to figure out what the EPSG projection code is based on the Basemap projection info, and pass that information to the WMS server so it can do the interpolation. Here's an example for south polar stereographic: width = 12000.e3 plt.figure() basemap_url =\ "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export?\ bbox=%d,%d,%d,%d&\ bboxSR=3412&\ imageSR=3412&\ size=800,800&\ dpi=128&\ format=png32&\ f=image" % (-width/2,-width/2,width/2,width/2) m =\ Basemap(projection='stere',resolution='i',lon_0=0,lat_0=-90,lat_ts=-70,\ width=width,height=width,rsphere=(6378273,6356889.449)) m.imshow(plt.imread(urllib2.urlopen(basemap_url)),origin='upper') m.drawmeridians(np.arange(-180,180,30),labels=[0,0,0,1],color='y') m.drawparallels(np.arange(-80,-0,10),labels=[1,0,0,0],color='y') m.drawcoastlines() plt.show() -Jeff > > So perhaps, by just providing `cyl` (bboxSR=4326) and imageSR to any > desired projection from above list will do the trick? > > Quickly now, I tried to map other projection on whole world as it was > easier not knowing Basemap that well: > > ======================================== > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import urllib2 > > lon1 = -180; lon2 = 180; lat1 = -90; lat2 = 90 > > basemap_url = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/export?\ > bbox=%d,%d,%d,%d&\ > bboxSR=4326&\ > imageSR=54030&\ > size=2000,1000&\ > format=png32&\ > f=image" % (lon1, lat1, lon2, lat2) > > m = Basemap(projection='robin', lon_0=0, resolution='c') > m.imshow(plt.imread(urllib2.urlopen(basemap_url)), origin='upper') > m.drawcoastlines() > plt.gca().axison = False > plt.title("Robinson Projection") > plt.show() > ======================================== > > Seems almost fine ;) |
From: klo uo <kl...@gm...> - 2012-08-25 19:32:24
|
Well it seems ArcGIS web-services can't be bitten in public place. Google and Bing static maps have many limitations: - require account for providing key - draw logos on image - limited size: Bing basic account can return max 900x834 and Google 1280x1280 (while ArcGIS 2048x2048) - Google static maps has max 25K requests per day per application and not per IP - Bing static map doesn't return requested exact coordinates, and I can't see parameter that can define returned image SR (haven't checked Google) I'll have a look tomorrow at Nokia (img size limit 2048x2048), but considering OWSLib and providing arcgis webservice function to Basemap class seems fine. Also just reusing some of OWSLib solution for map services doesn't seem like bad idea - nothing is required except Python builtin XML parsing ---------- http://msdn.microsoft.com/en-us/library/ff701724.aspx https://developers.google.com/maps/documentation/staticmaps http://api.maps.nokia.com/en/restmaps/api.html |
From: klo uo <kl...@gm...> - 2012-08-25 17:54:44
|
>> Result with coastlines overlay attached! > > Here is attachment Hm, image needs to be approved by moderator... Here is a link to it: http://i.imgur.com/1ZMoU.png |
From: klo uo <kl...@gm...> - 2012-08-25 17:40:45
|
> Export Map (http://atlas.resources.ca.gov/arcgis/SDK/REST/export.html) > seems like only function needed, but more knowledge about Basemap is > needed, as my main problem with it is fitting projections right. I > tried to overlay arcgis map over some Basemap projections like: > > m=Basemap(...) > m.imshow(arcgis_map) > m.drawcoastlines() > > But it never fits, and also aspect ratio should be considered. Success! :) It was that "imageSR" had to be set, as it doesn't seem to be deduced from the map: ======================================== basemap_url = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/export?\ bbox=%d,%d,%d,%d&\ bboxSR=4326&\ imageSR=4326&\ size=800,600&\ dpi=128&\ format=png32&\ f=image" % (lon1, lat1, lon2, lat2) \ ======================================== Result with coastlines overlay attached! Jeff, I think it is easy to make this function to Basemap class, but I'm not confident doing it. If you can make it, I'll then try to use it as template and pair it to other available webservices Cheers |