[Matplotlib-users] STIX font baseline shifted in screen and png backend

2008-02-20 Thread Bernhard Voigt
Hi!

Using the STIX fonts, the baseline of mathtext glyphs is corrupt using
screen backands like GTK or TK. The problem does not appear using the ps or
pdf backend.
Attached is png and eps file of a semilogy plot with a mathtext xlabel. The
ytick labes and the xlabel are skrewed in the png.

Best wishes! Bernhard
<>

stix.eps
Description: PostScript document
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [wxPython-users] Re: MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread Werner F. Bruhin
Hi Robin and Stef,

Robin wrote:
> 
> This is a binary distribution, that is one that has already been
> compiled on a different machine. This won't have the setup.cfg file,
> since it is a file that is used to configure the compilation process
> of matplotlib. Also this is why you can only use this distribution
> with specific versions of python, wx etc.
>   
I am under the impression that as of mpl 0.9x there is NO specific
version dependency for wxPython.  I believe there was some optimization
code which forced a dependency on wxPython 2.6 Unicode for the wxAgg
backend.

Werner


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [wxPython-users] Re: MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread Werner F. Bruhin
Stef,

Stef Mientki wrote:
> ...
> btw, i just saw this on "matplotlibrc"
>  CONFIGURATION BEGINS HERE
> # the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
> # WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
> backend  : TkAgg
> numerix  : numpy  # numpy, Numeric or numarray
>
>   
I think this is your problem, I have:
backend  : WXAgg
numerix  : numpy  # numpy, Numeric or numarray


Hope this gets it cleared.
Werner


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread Werner F. Bruhin
Hi,

[EMAIL PROTECTED] wrote:
> So, do I understand this correctly:
>
> In order to get rid of the Tkinter problem when
> building a matplotlib application using py2exe, I need
> 0.91.2 ver of matplotlib and use the setup.cfg file to
> select the backend I want (wxpython in my case).  Then
> run py2exe to build the ap.  Correct?
>   
I haven't tried it with 0.91.x but with 0.90 I used a matplotlib exe
installer for Windows and I can create a distribution of my application
with py2exe which does NOT contain tkinter.

> But then, as I posted earlier, this create a new
> problem for me in that py2exe says it can't find
> wxmsw26uh_vc.dll - even though the file exists.
>   
That dll should no longer be needed by matplotlib.  Obviously if you use
a wxPython build you will get the it, i.e. I am on 2.8 so I have a bunch
of  "wxmsw26uh???.dll" files in my dist folder.
> What I need is a version of 0.91.2 ver of matplotlib
> that works with Python 2.3 to see if that works, or I
> guess I would include Tkinter with my exe?
>   
There was another message from Stef which might be the explanation, the
default matplotlibrc file is defining TKAgg as the default backend, so
change it to the following:

backend  : WXAgg
numerix  : numpy  # numpy, Numeric or numarray


Werner


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread kc106_2005-matplotlib
I *finally* got this to work!!!  

Thanks to Werner's message, I found the culpit:  the
matplotlibrc file copied to the dist directory
contains the TkAgg backend.  All I had to do is to
change *that* file to say:

backend  : WXAgg

Note that it's not the matplotlibrc in the installed
copy - but the one in the resulting dist directory.

In addition, I have to do a:

   set MATPLOTLIBDATA=.\mpl-data

before I start the exe file.  I don't know why this is
necessary because the code for _get_data_path appears
to look at that directory by default but if I don't
set this, it can't find the data files.

In any event, it works now - after bumping head for 2
weeks!

Thanks everybody.


> -Original Message-
> From: Werner F. Bruhin
[mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 20, 2008 1:45 AM
> To: [EMAIL PROTECTED]
> Cc: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] MatPlotLib + Py2exe,
backend problems ...
> 
> 
> Hi,
> 
> [EMAIL PROTECTED] wrote:
> > So, do I understand this correctly:
> >
> > In order to get rid of the Tkinter problem when
> > building a matplotlib application using py2exe, I
need
> > 0.91.2 ver of matplotlib and use the setup.cfg
file to
> > select the backend I want (wxpython in my case). 
Then
> > run py2exe to build the ap.  Correct?
> >   
> I haven't tried it with 0.91.x but with 0.90 I used
a 
> matplotlib exe installer for Windows and I can
create a 
> distribution of my application with py2exe which
does NOT 
> contain tkinter.
> 
> > But then, as I posted earlier, this create a new
> > problem for me in that py2exe says it can't find
wxmsw26uh_vc.dll - 
> > even though the file exists.
> >   
> That dll should no longer be needed by matplotlib. 
Obviously 
> if you use a wxPython build you will get the it,
i.e. I am on 
> 2.8 so I have a bunch of  "wxmsw26uh???.dll" files
in my dist folder.
> > What I need is a version of 0.91.2 ver of
matplotlib
> > that works with Python 2.3 to see if that works,
or I
> > guess I would include Tkinter with my exe?
> >   
> There was another message from Stef which might be
the 
> explanation, the default matplotlibrc file is
defining TKAgg 
> as the default backend, so change it to the
following:
> 
> backend  : WXAgg
> numerix  : numpy  # numpy, Numeric or numarray
> 
> 
> Werner
> 

--
John Henry

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] subplots with linked axes

2008-02-20 Thread Nick Granger-Brown
I would like to plot two or three graphs as subplots in a figure and
control the axes such that when one graph is zoomed the others are
adjusted too.  I was hoping there would be a notification mechanism
which would allow me to catch a rescaling of one subplot and redraw the
others in step.  Can anyone suggest a method of doing this?
 
Nick Granger-Brown
 

__
This email may contain privileged or confidential information, which should 
only be used for the purpose for which it was sent by Xyratex. No further 
rights or licenses are granted to use such information. If you are not the 
intended recipient of this message, please notify the sender by return and 
delete it. You may not use, copy, disclose or rely on the information contained 
in it.

Internet email is susceptible to data corruption, interception and unauthorised 
amendment for which Xyratex does not accept liability. While we have taken 
reasonable precautions to ensure that this email is free of viruses, Xyratex 
does not accept liability for the presence of any computer viruses in this 
email, nor for any losses caused as a result of viruses.

Xyratex Technology Limited (03134912), Registered in England & Wales, 
Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA.

The Xyratex group of companies also includes, Xyratex Ltd, registered in 
Bermuda, Xyratex International Inc, registered in California, Xyratex 
(Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co Ltd 
registered in The People's Republic of China and Xyratex Japan Limited 
registered in Japan.
__-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread John Hunter
On Feb 20, 2008 6:30 AM, Nick Granger-Brown
<[EMAIL PROTECTED]> wrote:
>
>
> I would like to plot two or three graphs as subplots in a figure and control
> the axes such that when one graph is zoomed the others are adjusted too.  I
> was hoping there would be a notification mechanism which would allow me to
> catch a rescaling of one subplot and redraw the others in step.  Can anyone
> suggest a method of doing this?

ax1 = fig.add_subplot(211)
ax1.plot(something)

ax2 = fig.add_subplot(212, sharex=ax1) # ditto for sharey
ax2.plot(something_else)

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] automatically choose line markers/styles?

2008-02-20 Thread Gary Ruben
Just an idea: Maybe you could also auto cycle between dash types if only 
the colour and not the dash type is specified in a plot command. The 
gnuplot default would be one model, or the predefined patterns in 
CorelDraw or Inkscape etc. Personally I don't see this as a high 
priority though.

Gary R.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] STIX font baseline shifted in screen and png backend

2008-02-20 Thread Michael Droettboom
Yeah -- the hinting doesn't seem work very well with the STIX fonts.  I 
may need to expose an option in the font backend to turn hinting off.

Thanks for the report,
Mike

Bernhard Voigt wrote:
> Hi!
> 
> Using the STIX fonts, the baseline of mathtext glyphs is corrupt using 
> screen backands like GTK or TK. The problem does not appear using the ps 
> or pdf backend.
> Attached is png and eps file of a semilogy plot with a mathtext xlabel. 
> The ytick labes and the xlabel are skrewed in the png.
> 
> Best wishes! Bernhard
> 
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
> 
> 
> 
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread Werner F. Bruhin
Hi,

[EMAIL PROTECTED] wrote:
> I *finally* got this to work!!!  
>
> Thanks to Werner's message, I found the culpit:  the
> matplotlibrc file copied to the dist directory
> contains the TkAgg backend.  All I had to do is to
> change *that* file to say:
>
> backend  : WXAgg
>
> Note that it's not the matplotlibrc in the installed
> copy - but the one in the resulting dist directory.
>
> In addition, I have to do a:
>
>set MATPLOTLIBDATA=.\mpl-data
>   
You shouldn't need to do this.  Note in matplotlib.__init__.py, it looks 
at a different folder if it is frozen by py2exe or py2app or ...:
# py2exe zips pure python, so still need special check
if getattr(sys,'frozen',None):
path = os.path.join(os.path.split(sys.path[0])[0], 'matplotlibdata')

So, if you use the sample setup.py I posted a while ago here and on the 
wxPython list it will create the matplotlibdata folder in your 
distribution (basically a copy of your mpl-data folder) folder.
> before I start the exe file.  I don't know why this is
> necessary because the code for _get_data_path appears
> to look at that directory by default but if I don't
> set this, it can't find the data files.
>
> In any event, it works now - after bumping head for 2
> weeks!
>   
Hope the wall wasn't to hard, I always try this or the wxPython list 
after a day or two ;-) .

See you
Werner

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread Michael Droettboom
It sounds like what you want is to use the "shared axis" functionality.

See the shared_axis_demo.py

http://matplotlib.sourceforge.net/examples/shared_axis_demo.py

Cheers,
Mike

Nick Granger-Brown wrote:
> I would like to plot two or three graphs as subplots in a figure and 
> control the axes such that when one graph is zoomed the others are 
> adjusted too.  I was hoping there would be a notification mechanism 
> which would allow me to catch a rescaling of one subplot and redraw the 
> others in step.  Can anyone suggest a method of doing this?
>  
> *Nick Granger-Brown*
> // 
> 
> __
> This email may contain privileged or confidential information, which 
> should only be used for the purpose for which it was sent by Xyratex. No 
> further rights or licenses are granted to use such information. If you 
> are not the intended recipient of this message, please notify the sender 
> by return and delete it. You may not use, copy, disclose or rely on the 
> information contained in it.
> 
> Internet email is susceptible to data corruption, interception and 
> unauthorised amendment for which Xyratex does not accept liability. 
> While we have taken reasonable precautions to ensure that this email is 
> free of viruses, Xyratex does not accept liability for the presence of 
> any computer viruses in this email, nor for any losses caused as a 
> result of viruses.
> 
> Xyratex Technology Limited (03134912), Registered in England & Wales, 
> Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA.
> 
> The Xyratex group of companies also includes, Xyratex Ltd, registered in 
> Bermuda, Xyratex International Inc, registered in California, Xyratex 
> (Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co 
> Ltd registered in The People's Republic of China and Xyratex Japan 
> Limited registered in Japan.
> __
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
> 
> 
> 
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread Nick Granger-Brown
Thanks Michael!

I'm new to this but I'm still kicking myself for not spotting it.  Just
what I was looking for. 


Nick Granger-Brown
+44 (0)23 9249 6727 

-Original Message-
From: Michael Droettboom [mailto:[EMAIL PROTECTED] 
Sent: 20 February 2008 13:21
To: Nick Granger-Brown
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] subplots with linked axes

It sounds like what you want is to use the "shared axis" functionality.

See the shared_axis_demo.py

http://matplotlib.sourceforge.net/examples/shared_axis_demo.py

Cheers,
Mike

Nick Granger-Brown wrote:
> I would like to plot two or three graphs as subplots in a figure and 
> control the axes such that when one graph is zoomed the others are 
> adjusted too.  I was hoping there would be a notification mechanism 
> which would allow me to catch a rescaling of one subplot and redraw 
> the others in step.  Can anyone suggest a method of doing this?
>  
> *Nick Granger-Brown*
> //
> 
> __
> This email may contain privileged or confidential information, which 
> should only be used for the purpose for which it was sent by Xyratex. 
> No further rights or licenses are granted to use such information. If 
> you are not the intended recipient of this message, please notify the 
> sender by return and delete it. You may not use, copy, disclose or 
> rely on the information contained in it.
> 
> Internet email is susceptible to data corruption, interception and 
> unauthorised amendment for which Xyratex does not accept liability.
> While we have taken reasonable precautions to ensure that this email 
> is free of viruses, Xyratex does not accept liability for the presence

> of any computer viruses in this email, nor for any losses caused as a 
> result of viruses.
> 
> Xyratex Technology Limited (03134912), Registered in England & Wales, 
> Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA.
> 
> The Xyratex group of companies also includes, Xyratex Ltd, registered 
> in Bermuda, Xyratex International Inc, registered in California, 
> Xyratex
> (Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) 
> Co Ltd registered in The People's Republic of China and Xyratex Japan 
> Limited registered in Japan.
> __
> 
> 
> --
> --
> 
> --
> --- This SF.net email is sponsored by: Microsoft Defy all challenges. 
> Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
> 
> --
> --
> 
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

__
This email may contain privileged or confidential information, which should 
only be used for the purpose for which it was sent by Xyratex. No further 
rights or licenses are granted to use such information. If you are not the 
intended recipient of this message, please notify the sender by return and 
delete it. You may not use, copy, disclose or rely on the information contained 
in it.

Internet email is susceptible to data corruption, interception and unauthorised 
amendment for which Xyratex does not accept liability. While we have taken 
reasonable precautions to ensure that this email is free of viruses, Xyratex 
does not accept liability for the presence of any computer viruses in this 
email, nor for any losses caused as a result of viruses.

Xyratex Technology Limited (03134912), Registered in England & Wales, 
Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA.

The Xyratex group of companies also includes, Xyratex Ltd, registered in 
Bermuda, Xyratex International Inc, registered in California, Xyratex 
(Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co Ltd 
registered in The People's Republic of China and Xyratex Japan Limited 
registered in Japan.
__

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] MatPlotLib + Py2exe, backend problems ...

2008-02-20 Thread kc106_2005-matplotlib
Ok, I know what the problem is.  I was using a sample
setup.py posted by Stef and in his setup, he created a
"mpl-data" subdirectory under "dist" to store all of
the data files use by matplotlib.  That's why
matplotlib couldn't find it without a set statement. 
After changing the name to "matplotlibdata",
everything works.

I also made changes to every one of the matplotlibrc
file I found in the installed copy of matplotlib to
invoke WXAgg - instead of TkAgg.

So for completeless, may be this will benefit other
matplotlib users, here's my py2exe script - tested
using python 2.3, latest wxpython and so forth.

Let say you wish to create an exe of the sample
multicolor.py program.  Place multicolor.py in a
test\multicolor directory, and a copy of the following
script, have py2exe installed, and then just run it. 
You will end up with a dist subdirectory under
test\multicolor and that's where you'll find
multicolor.exe.

#
Kill_Distro = True
MatPlotLib_Wanted = True

def File_Exists( path ):
res=os.path.isdir(path)
if res==True:
return res
return os.path.isfile(path)
 
from distutils.core import setup
import py2exe
import sys

import os

import shutil
import glob

homedir= r"E:\test\Matplotlib\multicolor"

python = r"c:\Python25" # Name of python directory
if File_Exists(python)==False:
python = r"c:\Python23" # Name of python directory

#
***
# Some suggests that old build/dist should be cleared
#
***
dist_paths =  [ homedir+'\\build',
homedir+'\\dist' ]
for path in dist_paths :
if File_Exists ( path ) :
shutil.rmtree ( path )
#
***

#
***
#
***
data_files = []
packages = []
includes = []
excludes = []
dll_excludes = []
data_files.append ( ( '', glob.glob ( 'templates_*.*'
) ) )

#
***
# For MatPlotLib
#
***
if MatPlotLib_Wanted :
import matplotlib

includes.append ( 'matplotlib.numerix.random_array' )

packages.append ( 'matplotlib' )
packages.append ( 'pytz' )

def mpl_data_files(destpath, path):
mpl_data=[]
for x in glob.glob (path+'\\*.*' ):
if os.path.isdir(x):

mpl_data_files(destpath+'\\'+os.path.split(x)[1],
x)
elif os.path.isfile(x):
mpl_data.append(x)
data_files.append ( ( destpath, mpl_data))

mpl_data_files(r'matplotlibdata',
python+r'\Lib\site-packages\matplotlib\mpl-data')

data_files.append ( ( r'matplotlibdata', glob.glob (

python+r'\Lib\site-packages\matplotlib\mpl-data\matplotlibrc'
)))
data_files.append ( ( r'matplotlibdata\images',
glob.glob (

python+r'\Lib\site-packages\matplotlib\mpl-data\images\*.*'
)))
data_files.append ( ( r'matplotlibdata\fonts\afm',
glob.glob (

python+r'\Lib\site-packages\matplotlib\mpl-data\fonts\afm\*.*'
)))
data_files.append ( (
r'matplotlibdata\fonts\pdfcorefonts', glob.glob (

python+r'\Lib\site-packages\matplotlib\mpl-data\fonts\pdfcorefonts\*.*')))
data_files.append ( ( r'matplotlibdata\fonts\ttf',
glob.glob (

python+r'\Lib\site-packages\matplotlib\mpl-data\fonts\ttf\*.*'
)))

excludes.append ( '_gtkagg')
excludes.append ( '_tkagg' )
excludes.append ( '_agg2'  )
excludes.append ( '_cairo' )
excludes.append ( '_cocoaagg' )
excludes.append ( '_fltkagg' )
excludes.append ( '_gtk' )
excludes.append ( '_gtkcairo')
excludes.append ( 'backend_qt' )
excludes.append ( 'backend_qt4')
excludes.append ( 'backend_qt4agg' )
excludes.append ( 'backend_qtagg' )
excludes.append ( 'backend_cairo' )
excludes.append ( 'backend_cocoaagg' )
excludes.append ( 'Tkconstants' )
excludes.append ( 'Tkinter' )
excludes.append ( 'tcl' )
excludes.append ( "_imagingtk" )
excludes.append ( "PIL._imagingtk" )
excludes.append ( "ImageTk" )
excludes.append ( "PIL.ImageTk" )
excludes.append ( "FixTk" )

dll_excludes.append ( 'libgdk-win32-2.0-0.dll' )
dll_excludes.append ( 'libgdk_pixbuf-2.0-0.dll' )
dll_excludes.append ( 'libgobject-2.0-0.dll')
dll_excludes.append ( 'tcl84.dll' )
dll_excludes.append ( 'tk84.dll' )
dll_excludes.append ( 'tclpip84.dll' )
#
*