Re: [Matplotlib-users] Europe without coastline

2013-08-07 Thread vwf
On Tue, Aug 06, 2013 at 01:46:15AM -0700, ChaoYue wrote:
> I am using mat 1.20 and basemap 1.0.5, I tried your code and don't have the
> same issue.

After building matplotlib 1.2.0 and basemap 1.0.6 packages for Debian
the problem is gone: I have coastlines now.

Thanks

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Europe without coastline

2013-08-06 Thread ChaoYue
Hi,

I am using mat 1.20 and basemap 1.0.5, I tried your code and don't have the
same issue.

Chao

On Tue, Aug 6, 2013 at 9:33 AM, vwf [via matplotlib] <
ml-node+s1069221n41721...@n5.nabble.com> wrote:

>
> Hello,
>
> This weekend I started using matplotlib and I think it is great.
> Beautiful graphs with very little effort.
>
> My data is geographical so I would like to draw on a map, North-Sea (UK
> - Netherlands). For this I installed the basemap on my Debian system
> (Stable/Wheezy). This has a strange problem. If I zoom out, all is
> there. If I start zooming in coastlines disappears. Is this my
> mistake, a problem in the packages in Debian, or something else?
>
> Thanks
>
> The resulting image on my system:
> http://img21.imageshack.us/img21/385/xoe7.png
>
> My system:
> Python 2.7.3 (default, Jan  2 2013, 16:53:07)
> [GCC 4.7.2] on linux2
> >>> import matplotlib
> >>> matplotlib.__version__
> '1.1.1rc2'
>
> My code:
>
> import numpy as np
> import matplotlib.pyplot as plt
> from mpl_toolkits.basemap import Basemap
>
> import matplotlib as mpl
> mpl.rcParams['font.size'] = 8.
> mpl.rcParams['font.family'] = 'Arial'
> mpl.rcParams['axes.labelsize'] = 5.
> mpl.rcParams['xtick.labelsize'] = 5.
> mpl.rcParams['ytick.labelsize'] = 5.
>
> #W-Europe
> x1 = -16.
> x2 = 30.
> y1 = 36.
> y2 = 62.
>
> m = Basemap(resolution='i',projection='merc',
> llcrnrlat=y1,urcrnrlat=y2,llcrnrlon=x1,urcrnrlon=x2,lat_ts=(x1+x2)/2)
> m.drawcountries(linewidth=0.5)
> m.drawcoastlines(linewidth=0.5)
> m.drawparallels(np.arange(y1,y2,2.),labels=[1,0,0,0],color='black',dashes=[1,0],labelstyle='+/-',linewidth=0.2)
>
> m.drawmeridians(np.arange(x1,x2,2.),labels=[0,0,0,1],color='black',dashes=[1,0],labelstyle='+/-',linewidth=0.2)
>
>
> plt.savefig('eur_101.png',dpi=100)
> plt.show()
>
>
> --
>
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/Europe-without-coastline-tp41721.html
>  To start a new topic under matplotlib - users, email
> ml-node+s1069221n...@n5.nabble.com
> To unsubscribe from matplotlib, click 
> here
> .
> NAML
>



-- 
***
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Europe-without-coastline-tp41721p41722.html
Sent from the matplotlib - users mailing list archive at Nabble.com.--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Europe without coastline

2013-08-06 Thread vwf

Hello,

This weekend I started using matplotlib and I think it is great.
Beautiful graphs with very little effort.

My data is geographical so I would like to draw on a map, North-Sea (UK
- Netherlands). For this I installed the basemap on my Debian system
(Stable/Wheezy). This has a strange problem. If I zoom out, all is
there. If I start zooming in coastlines disappears. Is this my
mistake, a problem in the packages in Debian, or something else?

Thanks

The resulting image on my system:
http://img21.imageshack.us/img21/385/xoe7.png

My system:
Python 2.7.3 (default, Jan  2 2013, 16:53:07) 
[GCC 4.7.2] on linux2
>>> import matplotlib
>>> matplotlib.__version__
'1.1.1rc2'

My code:

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap

import matplotlib as mpl
mpl.rcParams['font.size'] = 8.
mpl.rcParams['font.family'] = 'Arial'
mpl.rcParams['axes.labelsize'] = 5.
mpl.rcParams['xtick.labelsize'] = 5.
mpl.rcParams['ytick.labelsize'] = 5.
 
#W-Europe
x1 = -16.
x2 = 30.
y1 = 36.
y2 = 62.
 
m = Basemap(resolution='i',projection='merc', 
llcrnrlat=y1,urcrnrlat=y2,llcrnrlon=x1,urcrnrlon=x2,lat_ts=(x1+x2)/2)
m.drawcountries(linewidth=0.5)
m.drawcoastlines(linewidth=0.5)
m.drawparallels(np.arange(y1,y2,2.),labels=[1,0,0,0],color='black',dashes=[1,0],labelstyle='+/-',linewidth=0.2)
m.drawmeridians(np.arange(x1,x2,2.),labels=[0,0,0,1],color='black',dashes=[1,0],labelstyle='+/-',linewidth=0.2)

plt.savefig('eur_101.png',dpi=100)
plt.show()


--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users