[Matplotlib-users] basemap 0.99.4 on vista no go 0xC0000005: Access Violation?

2009-08-16 Thread marc desmarais
I can run a demo basemap on my Vista PC using version 0.99.3 for py2.5.  I 
upgraded to 0.99.4 because the great circle function would crash.  But now 
nothing works.

I brought it in to Microsoft C++ debugger:

unhandled exception in python.exe: 0xC005: Access Violation


Marc Desmarais

Long Beach, CA, 90814



  --
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] import pylab changes locale settings

2009-08-16 Thread Sebastian
Hi all,
When I import pylab the locale settings are changed (I'm using
matplotlib 0.99.0):

In [1]: import locale

In [2]: print locale.localeconv()
{'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_by_space': 127,
'frac_digits': 127, 'thousands_sep': '', 'n_sign_posn': 127,
'decimal_point': '.', 'int_curr_symbol': '', 'n_cs_precedes': 127,
'p_sign_posn': 127, 'mon_thousands_sep': '', 'negative_sign': '',
'currency_symbol': '', 'n_sep_by_space': 127, 'mon_grouping': [],
'p_cs_precedes': 127, 'positive_sign': '', 'grouping': []}

In [3]: import pylab

In [4]: print locale.localeconv()
{'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 1,
'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn': 1,
'decimal_point': ',', 'int_curr_symbol': 'EUR ', 'n_cs_precedes': 1,
'p_sign_posn': 1, 'mon_thousands_sep': ' ', 'negative_sign': '-',
'currency_symbol': '\xe2\x82\xac', 'n_sep_by_space': 1, 'mon_grouping':
[3, 3, 0], 'p_cs_precedes': 1, 'positive_sign': '', 'grouping': []}



Is this a bug or a feature?

For me it broke some code in a c-extension which parses a file with
floating point numbers and didn't recognize them anymore:(

Cheers,
Sebastian

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] examples for 0.99

2009-08-16 Thread Werner F. Bruhin
I am just starting to test 0.99 (having remained on 0.90.1 for some time 
now).

I can't find the examples - can anyone point out were they are.

Used the following to install:
matplotlib-0.99.0.win32-py2.5-setup.exe

Werner



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] wx and matplotlib

2009-08-16 Thread Werner F. Bruhin
I am trying to put together a wxPython frame using py.aui to show 
multiple matplotlib.figures/canvas.

Would like that each figure takes x percentage of available screen 
estate.  I.e. would like e.g. to have 2 rows with 3 columns of 
figures/statistics, i.e. 6 graphics.

If the total screen estate is too small then there should be scrollbars 
per figure/canvas.

Hopefully some samples code (in the example files which existed in 
0.90.x) can put me in the right direction, otherwise I will try to put 
together a stand alone sample (without access to my database) to show my 
problem.


Werner





--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] import pylab changes locale settings

2009-08-16 Thread Ryan May
On Sun, Aug 16, 2009 at 8:02 AM, Sebastian basti...@gmail.com wrote:

 Hi all,
 When I import pylab the locale settings are changed (I'm using
 matplotlib 0.99.0):

 In [1]: import locale

 In [2]: print locale.localeconv()
 {'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_by_space': 127,
 'frac_digits': 127, 'thousands_sep': '', 'n_sign_posn': 127,
 'decimal_point': '.', 'int_curr_symbol': '', 'n_cs_precedes': 127,
 'p_sign_posn': 127, 'mon_thousands_sep': '', 'negative_sign': '',
 'currency_symbol': '', 'n_sep_by_space': 127, 'mon_grouping': [],
 'p_cs_precedes': 127, 'positive_sign': '', 'grouping': []}

 In [3]: import pylab

 In [4]: print locale.localeconv()
 {'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 1,
 'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn': 1,
 'decimal_point': ',', 'int_curr_symbol': 'EUR ', 'n_cs_precedes': 1,
 'p_sign_posn': 1, 'mon_thousands_sep': ' ', 'negative_sign': '-',
 'currency_symbol': '\xe2\x82\xac', 'n_sep_by_space': 1, 'mon_grouping':
 [3, 3, 0], 'p_cs_precedes': 1, 'positive_sign': '', 'grouping': []}



 Is this a bug or a feature?

 For me it broke some code in a c-extension which parses a file with
 floating point numbers and didn't recognize them anymore:(


What backend are you using? IIRC, gtk has been behind this in the past.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap 0.99.4 on vista no go 0xC0000005: Access Violation?

2009-08-16 Thread Christoph Gohlke
Hi Marc,

I can not reproduce this crash on my Vista development computer or on a 
fresh installation of Windows XP, Python 2.5.4, Numpy 1.3, matplotlib 
0.99, basemap 0.99.4 in a VM. All examples work (some depend on PIL).

Can you run these commands without crash?

python -c import _geoslib
python -c from mpl_toolkits.basemap import _geod
python -c from mpl_toolkits.basemap import _proj

These basemap/geos C modules depend on MSVCR71.DLL and MSVCP71.DLL, 
which are not included in the basemap installer.

Christoph

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wx and matplotlib

2009-08-16 Thread Christopher Barker
Werner F. Bruhin wrote:
 I am trying to put together a wxPython frame using py.aui to show 
 multiple matplotlib.figures/canvas.

I'd recommend you take a look at wxMPL -- it's a nice way to embed MPL 
in wx.

 Would like that each figure takes x percentage of available screen 
 estate.  I.e. would like e.g. to have 2 rows with 3 columns of 
 figures/statistics, i.e. 6 graphics.

To be clear with the vocabulary -- in MPL, a figure would be one 
wxWindow. In that you can put multiple axes which show the actual 
plots (sometimes referred to as subplots). In this case, I'm not sure if 
you want more than one MPL figure.

 If the total screen estate is too small then there should be scrollbars 
 per figure/canvas.

If you want multiple figures, than this isn't really an MPL question. 
You'd do that layout the same way you would with any other set of 
wxWindows -- probably putting them all on a wxScrolledWindow, in Sizers, 
and giving them a minimum size.

With a single MPL Figure, it would be similar, put it on 
wxScrolledWindows, with a minimum size set.

 Hopefully some samples code (in the example files which existed in 
 0.90.x)
Is this what you are looking for?

http://matplotlib.sourceforge.net/examples/index.html

in particular, you might want to look at the wx examples here:

http://matplotlib.sourceforge.net/examples/user_interfaces/index.html

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users