Lionel Roubeyrie | 1 Aug 11:50 2007
Picon

ticklabels positions not updated

Hi all,
I'm going crazy with ticklabels positions, I just want to update yticklabels 
but nothing changes :
>tlist=gca().get_yticklabels()
>tlist[1].get_position()
              Out [571]:(0.0, 1.0)
>tlist[1].set_position((0.0, 2.0))
>draw()
>tlist[1].get_position()
              Out [574]:(0.0, 1.0)
Do I miss something?
Thanks

--

-- 
Lionel Roubeyrie - lroubeyrie <at> limair.asso.fr
Chargé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Jonathan Makem | 1 Aug 12:15 2007
Picon
Picon

Image Scalling

Hi,

   How do I scale an image of a plot so that it fits a landscape A4 page? How do you move the position of the x and y labels on the axis? How do you increase the font size of the numbers on each axis?

 

Regards,

Jonathan Makem

 

School of Mechanical and Aerospace Engineering
Ashby Building
Stranmillis Road
Belfast

BT9 5AH

 

Tel:  +44 (0)28 9097 4277

Fax: +44 (0)28 9066 1729

Email: jmakem01-4nBedr2rK6xaa/9Udqfwiw@public.gmane.org

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Michael Droettboom | 1 Aug 14:16 2007

Re: question about building from source on windows

william ratcliff wrote:
> I have a question about building from source on windows:
> I have installed freetype2 and libpng, for zlib, I have a collection 
> of dlls,
> But, where do I place these so that matplotlib can find them (for the 
> include files, libraries, etc.  Are there any that I have to 
> rename?)?  I am using mingw for compilation and python 2.5--I have 
> built numpy successfully from source and have installed wxpython.  I 
> have the latest version of matplotlib from the trunk of the svn 
> repository.
As of yesterday, the setup.py script should give a little more feedback 
about where it is looking for external dependencies.  I took great care 
to not change any of the Windows behavior, since I didn't have a Windows 
box handy to test with.  If you are still stuck after following the 
existing directions, the output of setup.py may offer some clues.

Cheers,
Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
william ratcliff | 1 Aug 15:56 2007
Picon

Re: question about building from source on windows

I tried the new setup.py script and found:

C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.90.1 (r3634)
                python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
                        v.1310 32 bit (Intel)]
              platform: win32
Traceback (most recent call last):
  File "setup.py", line 122, in <module>
    print_status('Windows version', sys.getwindowsversion())
  File "C:\matplotlib\trunk\matplotlib\setupext.py", line 119, in print_status
    subsequent_indent=indent)
  File "c:\python25\lib\textwrap.py", line 315, in fill
    return w.fill(text)
  File "c:\python25\lib\textwrap.py", line 287, in fill
    return "\n".join( self.wrap(text))
  File "c:\python25\lib\textwrap.py", line 274, in wrap
    text = self._munge_whitespace(text)
  File "c:\python25\lib\textwrap.py", line 122, in _munge_whitespace
    text = text.expandtabs()
AttributeError: 'tuple' object has no attribute 'expandtabs'

Any ideas?  Thanks!!!

William


On 8/1/07, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
william ratcliff wrote:
> I have a question about building from source on windows:
> I have installed freetype2 and libpng, for zlib, I have a collection
> of dlls,
> But, where do I place these so that matplotlib can find them (for the
> include files, libraries, etc.  Are there any that I have to
> rename?)?  I am using mingw for compilation and python 2.5--I have
> built numpy successfully from source and have installed wxpython.  I
> have the latest version of matplotlib from the trunk of the svn
> repository.
As of yesterday, the setup.py script should give a little more feedback
about where it is looking for external dependencies.  I took great care
to not change any of the Windows behavior, since I didn't have a Windows
box handy to test with.  If you are still stuck after following the
existing directions, the output of setup.py may offer some clues.

Cheers,
Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Michael Droettboom | 1 Aug 16:09 2007

Re: question about building from source on windows

That's my bad from my changes to setup.py yesterday.

Please update from SVN and try again.

Cheers,
Mike

william ratcliff wrote:
> I tried the new setup.py script and found:
>
> C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
> ============================================================================
> BUILDING MATPLOTLIB
>             matplotlib: 0.90.1 (r3634)
>                 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
>                         v.1310 32 bit (Intel)]
>               platform: win32
> Traceback (most recent call last):
>   File "setup.py", line 122, in <module>
>     print_status('Windows version', sys.getwindowsversion())
>   File "C:\matplotlib\trunk\matplotlib\setupext.py", line 119, in 
> print_status
>     subsequent_indent=indent)
>   File "c:\python25\lib\textwrap.py", line 315, in fill
>     return w.fill(text)
>   File "c:\python25\lib\textwrap.py", line 287, in fill
>     return "\n".join( self.wrap(text))
>   File "c:\python25\lib\textwrap.py", line 274, in wrap
>     text = self._munge_whitespace(text)
>   File "c:\python25\lib\textwrap.py", line 122, in _munge_whitespace
>     text = text.expandtabs()
> AttributeError: 'tuple' object has no attribute 'expandtabs'
>
> Any ideas?  Thanks!!!
>
> William
>
>
> On 8/1/07, * Michael Droettboom* <mdroe@... 
> <mailto:mdroe@...>> wrote:
>
>     william ratcliff wrote:
>     > I have a question about building from source on windows:
>     > I have installed freetype2 and libpng, for zlib, I have a collection
>     > of dlls,
>     > But, where do I place these so that matplotlib can find them
>     (for the
>     > include files, libraries, etc.  Are there any that I have to
>     > rename?)?  I am using mingw for compilation and python 2.5--I have
>     > built numpy successfully from source and have installed
>     wxpython.  I
>     > have the latest version of matplotlib from the trunk of the svn
>     > repository.
>     As of yesterday, the setup.py script should give a little more
>     feedback
>     about where it is looking for external dependencies.  I took great
>     care
>     to not change any of the Windows behavior, since I didn't have a
>     Windows
>     box handy to test with.  If you are still stuck after following the
>     existing directions, the output of setup.py may offer some clues.
>
>     Cheers,
>     Mike
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
william ratcliff | 1 Aug 16:14 2007
Picon

Re: question about building from source on windows

Ok--that did fix the expandtabs bug!  I can now see where there is a failure in the build:

Found executable C:\Python24\Enthought\MingW\bin\g++.exe
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined refer
ence to `inflateInit2_'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7): undefined refer
ence to `inflateEnd'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522): undefined refer
ence to `inflateReset'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8): undefined refer
ence to `inflate'
collect2: ld returned 1 exit status
error: Command "g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font
.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\
cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-
2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxex
tensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lz -lfre
etype -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd" failed
 with exit status 1


suggestions?

Thanks,
William

On 8/1/07, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
That's my bad from my changes to setup.py yesterday.

Please update from SVN and try again.

Cheers,
Mike

william ratcliff wrote:
> I tried the new setup.py script and found:
>
> C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
> ============================================================================
> BUILDING MATPLOTLIB
>             matplotlib: 0.90.1 (r3634)
>                 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
>                         v.1310 32 bit (Intel)]
>               platform: win32
> Traceback (most recent call last):
>   File "setup.py", line 122, in <module>
>     print_status('Windows version', sys.getwindowsversion())
>   File "C:\matplotlib\trunk\matplotlib\setupext.py", line 119, in
> print_status
>     subsequent_indent=indent)
>   File "c:\python25\lib\textwrap.py", line 315, in fill
>     return w.fill(text)
>   File "c:\python25\lib\textwrap.py", line 287, in fill
>     return "\n".join( self.wrap(text))
>   File "c:\python25\lib\textwrap.py", line 274, in wrap
>     text = self._munge_whitespace(text)
>   File "c:\python25\lib\textwrap.py", line 122, in _munge_whitespace
>     text = text.expandtabs()
> AttributeError: 'tuple' object has no attribute 'expandtabs'
>
> Any ideas?  Thanks!!!
>
> William
>
>
> On 8/1/07, * Michael Droettboom* < mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org
> <mailto:mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org>> wrote:
>
>     william ratcliff wrote:
>     > I have a question about building from source on windows:
>     > I have installed freetype2 and libpng, for zlib, I have a collection
>     > of dlls,
>     > But, where do I place these so that matplotlib can find them
>     (for the
>     > include files, libraries, etc.  Are there any that I have to
>     > rename?)?  I am using mingw for compilation and python 2.5--I have
>     > built numpy successfully from source and have installed
>     wxpython.  I
>     > have the latest version of matplotlib from the trunk of the svn
>     > repository.
>     As of yesterday, the setup.py script should give a little more
>     feedback
>     about where it is looking for external dependencies.  I took great
>     care
>     to not change any of the Windows behavior, since I didn't have a
>     Windows
>     box handy to test with.  If you are still stuck after following the
>     existing directions, the output of setup.py may offer some clues.
>
>     Cheers,
>     Mike
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
william ratcliff | 1 Aug 16:16 2007
Picon

Re: question about building from source on windows

Is it possible that the freetype library in win32_static is out of date?

Cheers,
William

On 8/1/07, william ratcliff < william.ratcliff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Ok--that did fix the expandtabs bug!  I can now see where there is a failure in the build:

Found executable C:\Python24\Enthought\MingW\bin\g++.exe
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined refer
ence to `inflateInit2_'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7): undefined refer
ence to `inflateEnd'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522): undefined refer
ence to `inflateReset'
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8): undefined refer
ence to `inflate'
collect2: ld returned 1 exit status
error: Command "g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font
.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\
cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-
2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxex
tensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lz -lfre
etype -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd" failed
 with exit status 1


suggestions?

Thanks,
William


On 8/1/07, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
That's my bad from my changes to setup.py yesterday.

Please update from SVN and try again.

Cheers,
Mike

william ratcliff wrote:
> I tried the new setup.py script and found:
>
> C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
> ============================================================================
> BUILDING MATPLOTLIB
>             matplotlib: 0.90.1 (r3634)
>                 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
>                         v.1310 32 bit (Intel)]
>               platform: win32
> Traceback (most recent call last):
>   File "setup.py", line 122, in <module>
>     print_status('Windows version', sys.getwindowsversion())
>   File "C:\matplotlib\trunk\matplotlib\setupext.py", line 119, in
> print_status
>     subsequent_indent=indent)
>   File "c:\python25\lib\textwrap.py", line 315, in fill
>     return w.fill(text)
>   File "c:\python25\lib\textwrap.py", line 287, in fill
>     return "\n".join( self.wrap(text))
>   File "c:\python25\lib\textwrap.py", line 274, in wrap
>     text = self._munge_whitespace(text)
>   File "c:\python25\lib\textwrap.py", line 122, in _munge_whitespace
>     text = text.expandtabs()
> AttributeError: 'tuple' object has no attribute 'expandtabs'
>
> Any ideas?  Thanks!!!
>
> William
>
>
> On 8/1/07, * Michael Droettboom* < mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org
> <mailto: mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org>> wrote:
>
>     william ratcliff wrote:
>     > I have a question about building from source on windows:
>     > I have installed freetype2 and libpng, for zlib, I have a collection
>     > of dlls,
>     > But, where do I place these so that matplotlib can find them
>     (for the
>     > include files, libraries, etc.  Are there any that I have to
>     > rename?)?  I am using mingw for compilation and python 2.5--I have
>     > built numpy successfully from source and have installed
>     wxpython.  I
>     > have the latest version of matplotlib from the trunk of the svn
>     > repository.
>     As of yesterday, the setup.py script should give a little more
>     feedback
>     about where it is looking for external dependencies.  I took great
>     care
>     to not change any of the Windows behavior, since I didn't have a
>     Windows
>     box handy to test with.  If you are still stuck after following the
>     existing directions, the output of setup.py may offer some clues.
>
>     Cheers,
>     Mike
>
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Michael Droettboom | 1 Aug 16:25 2007

Re: question about building from source on windows

It looks like I screwed up the order of libraries between freetype2 and 
zlib.  (It was updated to use pkg-config to determine the freetype 
dependencies where possible, but that inadvertently broke Windows.)

Please 'svn up' and try again.  Sorry for the inconvience.

Cheers,
Mike

william ratcliff wrote:
> Is it possible that the freetype library in win32_static is out of date?
>
> Cheers,
> William
>
> On 8/1/07, *william ratcliff* < william.ratcliff@... 
> <mailto:william.ratcliff@...>> wrote:
>
>     Ok--that did fix the expandtabs bug!  I can now see where there is
>     a failure in the build:
>
>     Found executable C:\Python24\Enthought\MingW\bin\g++.exe
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160):
>     undefined refer
>     ence to `inflateInit2_'
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7):
>     undefined refer
>     ence to `inflateEnd'
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522):
>     undefined refer
>     ence to `inflateReset'
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8):
>     undefined refer
>     ence to `inflate'
>     collect2: ld returned 1 exit status
>     error: Command "g++ -mno-cygwin -shared build\temp.win32-
>     2.5\Release\src\ft2font
>     .o build\temp.win32-2.5\Release\src\mplutils.o
>     build\temp.win32-2.5\Release\cxx\
>     cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o
>     build\temp.win32-
>     2.5\Release\cxx\indirectpythoninterface.o
>     build\temp.win32-2.5\Release\cxx\cxxex
>     tensions.o -Lwin32_static\lib -Lc:\python25\libs
>     -Lc:\python25\PCBuild -lz -lfre
>     etype -lpython25 -lmsvcr71 -o
>     build\lib.win32-2.5\matplotlib\ft2font.pyd" failed
>      with exit status 1
>
>
>     suggestions?
>
>     Thanks,
>     William
>
>
>     On 8/1/07, *Michael Droettboom* <mdroe@...
>     <mailto:mdroe@...>> wrote:
>
>         That's my bad from my changes to setup.py yesterday.
>
>         Please update from SVN and try again.
>
>         Cheers,
>         Mike
>
>         william ratcliff wrote:
>         > I tried the new setup.py script and found:
>         >
>         > C:\matplotlib\trunk\matplotlib>c:\python25\python.exe
>         setup.py build
>         > ============================================================================
>
>         > BUILDING MATPLOTLIB
>         >             matplotlib: 0.90.1 (r3634)
>         >                 python: 2.5.1 (r251:54863, Apr 18 2007,
>         08:51:08) [MSC
>         >                         v.1310 32 bit (Intel)]
>         >               platform: win32
>         > Traceback (most recent call last):
>         >   File "setup.py", line 122, in <module>
>         >     print_status('Windows version', sys.getwindowsversion())
>         >   File "C:\matplotlib\trunk\matplotlib\setupext.py", line
>         119, in
>         > print_status
>         >     subsequent_indent=indent)
>         >   File "c:\python25\lib\textwrap.py", line 315, in fill
>         >     return w.fill(text)
>         >   File "c:\python25\lib\textwrap.py", line 287, in fill
>         >     return "\n".join( self.wrap(text))
>         >   File "c:\python25\lib\textwrap.py", line 274, in wrap
>         >     text = self._munge_whitespace(text)
>         >   File "c:\python25\lib\textwrap.py", line 122, in
>         _munge_whitespace
>         >     text = text.expandtabs()
>         > AttributeError: 'tuple' object has no attribute 'expandtabs'
>         >
>         > Any ideas?  Thanks!!!
>         >
>         > William
>         >
>         >
>         > On 8/1/07, * Michael Droettboom* < mdroe@...
>         <mailto:mdroe@...>
>         > <mailto: mdroe@...
<mailto:mdroe@...>>> wrote:
>         >
>         >     william ratcliff wrote:
>         >     > I have a question about building from source on windows:
>         >     > I have installed freetype2 and libpng, for zlib, I have
>         a collection
>         >     > of dlls,
>         >     > But, where do I place these so that matplotlib can find
>         them
>         >     (for the
>         >     > include files, libraries, etc.  Are there any that I
>         have to
>         >     > rename?)?  I am using mingw for compilation and python
>         2.5--I have
>         >     > built numpy successfully from source and have installed
>         >     wxpython.  I
>         >     > have the latest version of matplotlib from the trunk of
>         the svn
>         >     > repository.
>         >     As of yesterday, the setup.py script should give a little
>         more
>         >     feedback
>         >     about where it is looking for external dependencies.  I
>         took great
>         >     care
>         >     to not change any of the Windows behavior, since I didn't
>         have a
>         >     Windows
>         >     box handy to test with.  If you are still stuck after
>         following the
>         >     existing directions, the output of setup.py may offer
>         some clues.
>         >
>         >     Cheers,
>         >     Mike
>         >
>         >
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
william ratcliff | 1 Aug 16:35 2007
Picon

Re: question about building from source on windows

A bit strange:

gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o build\temp.win32-2.5\Release\src\ft2font.o
g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxextensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd
Found executable c:\python24\enthought\mingw\bin\g++.exe
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x317): undefined reference to `_imp__FT_Done_FreeType'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x3e7): undefined reference to `_imp__FT_Done_FreeType'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x4b7): undefined reference to `_imp__FT_Done_FreeType'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x14da): undefined reference to `_imp__FT_Get_PS_Font_Info'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x2520): undefined reference to `_imp__FT_Get_Name_Index'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x29e8): undefined reference to `_imp__FT_Get_Glyph_Name'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x4150): undefined reference to `_imp__FT_Get_Kerning'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x45a7): undefined
...
....
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x18ba3): undefined reference to `_imp__FT_Set_Char_Size'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x18d2e): undefined reference to `_imp__FT_Get_Postscript_Name'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x1a86a): undefined reference to `_imp__FT_New_Face'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x1aef3): undefined reference to `_imp__FT_Set_Char_Size'
build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x1b07e): undefined reference to `_imp__FT_Get_Postscript_Name'
collect2: ld returned 1 exit status
error: Command "g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxextensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd" failed with exit status 1


But, I noticed in the beginning:

============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.90.1 (r3634)
                python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
                        v.1310 32 bit (Intel)]
              platform: win32
       Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
Setting mingw32 as default compiler for nt.
                 numpy: 1.0.4.dev3937
             freetype2: unknown (no pkg-config)

OPTIONAL DEPENDENCIES
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
               Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
              wxPython: no
                        *  WXAgg's accelerator requires `wx-config'.  The
                        * `wx-config' executable could not be located in any
                        * directory of the PATH environment variable. If you
                        * want to build WXAgg, and wx-config is in some
                        * other location or has some other name, set the
                        * WX_CONFIG environment variable to the full path of
                        * the executable like so:  export WX_CONFIG=/usr/lib
                        * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
                    Qt: no
                   Qt4: no
                 Cairo: no
                libpng: unknown (no pkg-config)

[Edit setup.cfg to suppress the above messages]
============================================================================

Does this mean that it's unable to find the win32_static directory?  I have in in the matplotlibdirectory.  I think I'm confused on something:  In the win32 directory, there are instructions for building under cygwin--but is it necessary to build, or does matplotlib just require the library files and their headers, which it should be able to find in the win32_static directory?

Cheers,
William

On 8/1/07, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
It looks like I screwed up the order of libraries between freetype2 and
zlib.  (It was updated to use pkg-config to determine the freetype
dependencies where possible, but that inadvertently broke Windows.)

Please 'svn up' and try again.  Sorry for the inconvience.

Cheers,
Mike

william ratcliff wrote:
> Is it possible that the freetype library in win32_static is out of date?
>
> Cheers,
> William
>
> On 8/1/07, *william ratcliff* < william.ratcliff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> <mailto:william.ratcliff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:
>
>     Ok--that did fix the expandtabs bug!  I can now see where there is
>     a failure in the build:
>
>     Found executable C:\Python24\Enthought\MingW\bin\g++.exe
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160):
>     undefined refer
>     ence to `inflateInit2_'
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7):
>     undefined refer
>     ence to `inflateEnd'
>     win32_static\lib/libfreetype.a( ftgzip.o):ftgzip.c:(.text+0x522):
>     undefined refer
>     ence to `inflateReset'
>     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8):
>     undefined refer
>     ence to `inflate'
>     collect2: ld returned 1 exit status
>     error: Command "g++ -mno-cygwin -shared build\temp.win32-
>     2.5\Release\src\ft2font
>     .o build\temp.win32-2.5\Release\src\mplutils.o
>     build\temp.win32-2.5\Release\cxx\
>     cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o
>     build\temp.win32-
>     2.5\Release\cxx\indirectpythoninterface.o
>     build\temp.win32- 2.5\Release\cxx\cxxex
>     tensions.o -Lwin32_static\lib -Lc:\python25\libs
>     -Lc:\python25\PCBuild -lz -lfre
>     etype -lpython25 -lmsvcr71 -o
>     build\lib.win32-2.5\matplotlib\ft2font.pyd " failed
>      with exit status 1
>
>
>     suggestions?
>
>     Thanks,
>     William
>
>
>     On 8/1/07, *Michael Droettboom* < mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org
>     <mailto:mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org>> wrote:
>
>         That's my bad from my changes to setup.py yesterday.
>
>         Please update from SVN and try again.
>
>         Cheers,
>         Mike
>
>         william ratcliff wrote:
>         > I tried the new setup.py script and found:
>         >
>         > C:\matplotlib\trunk\matplotlib>c:\python25\python.exe
>         setup.py build
>         > ============================================================================
>
>         > BUILDING MATPLOTLIB
>         >             matplotlib: 0.90.1 (r3634)
>         >                 python: 2.5.1 (r251:54863, Apr 18 2007,
>         08:51:08) [MSC
>         >                         v.1310 32 bit (Intel)]
>         >               platform: win32
>         > Traceback (most recent call last):
>         >   File "setup.py", line 122, in <module>
>         >     print_status('Windows version', sys.getwindowsversion ())
>         >   File "C:\matplotlib\trunk\matplotlib\setupext.py", line
>         119, in
>         > print_status
>         >     subsequent_indent=indent)
>         >   File "c:\python25\lib\textwrap.py", line 315, in fill
>         >     return w.fill(text)
>         >   File "c:\python25\lib\textwrap.py", line 287, in fill
>         >     return "\n".join( self.wrap(text))
>         >   File "c:\python25\lib\textwrap.py", line 274, in wrap
>         >     text = self._munge_whitespace(text)
>         >   File "c:\python25\lib\textwrap.py", line 122, in
>         _munge_whitespace
>         >     text = text.expandtabs ()
>         > AttributeError: 'tuple' object has no attribute 'expandtabs'
>         >
>         > Any ideas?  Thanks!!!
>         >
>         > William
>         >
>         >
>         > On 8/1/07, * Michael Droettboom* < mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org
>         <mailto:mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org>
>         > <mailto: mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org <mailto:mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org>>> wrote:
>         >
>         >     william ratcliff wrote:
>         >     > I have a question about building from source on windows:
>         >     > I have installed freetype2 and libpng, for zlib, I have
>         a collection
>         >     > of dlls,
>         >     > But, where do I place these so that matplotlib can find
>         them
>         >     (for the
>         >     > include files, libraries, etc.  Are there any that I
>         have to
>         >     > rename?)?  I am using mingw for compilation and python
>         2.5--I have
>         >     > built numpy successfully from source and have installed
>         >     wxpython.  I
>         >     > have the latest version of matplotlib from the trunk of
>         the svn
>         >     > repository.
>         >     As of yesterday, the setup.py script should give a little
>         more
>         >     feedback
>         >     about where it is looking for external dependencies.  I
>         took great
>         >     care
>         >     to not change any of the Windows behavior, since I didn't
>         have a
>         >     Windows
>         >     box handy to test with.  If you are still stuck after
>         following the
>         >     existing directions, the output of setup.py may offer
>         some clues.
>         >
>         >     Cheers,
>         >     Mike
>         >
>         >
>
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Michael Droettboom | 1 Aug 16:49 2007

Re: question about building from source on windows

william ratcliff wrote:
> A bit strange:
>
> gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include 
> -I. -Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o 
> build\temp.win32-2.5\Release\src\ft2font.o
> g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o 
> build\temp.win32-2.5\Release\src\mplutils.o 
> build\temp.win32-2.5\Release\cxx\cxxsupport.o 
> build\temp.win32-2.5\Release\cxx\cxx_extensions.o 
> build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o 
> build\temp.win32-2.5\Release\cxx\cxxextensions.o -Lwin32_static\lib 
> -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 
> -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd
> Found executable c:\python24\enthought\mingw\bin\g++.exe
> build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x317): 
> undefined reference to `_imp__FT_Done_FreeType'
These _imp__ things have something to do with how mingw32 links with 
libraries.  I'm afraid I'm getting a little out of my element there.  If 
you want to rule out any unintentional consequences of my very recent 
setup.py changes (which were primarily to give more information, rather 
than change how things work), you can revert SVN a bit "svn -r 3645" and 
see if things are any different.  Please let me know how that goes 
either way.
> But, I noticed in the beginning:
>
> ============================================================================
> BUILDING MATPLOTLIB
>             matplotlib: 0.90.1 (r3634)
>                 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
>                         v.1310 32 bit (Intel)]
>               platform: win32
>        Windows version: (5, 1, 2600, 2, 'Service Pack 2')
>
> REQUIRED DEPENDENCIES
> Setting mingw32 as default compiler for nt.
>                  numpy: 1.0.4.dev3937
>              freetype2: unknown (no pkg-config)
>
> OPTIONAL DEPENDENCIES
>                   Gtk+: no
>                         * Building for Gtk+ requires pygtk; you must 
> be able
>                         * to "import gtk" in your build/install 
> environment
>                Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
>               wxPython: no
>                         *  WXAgg's accelerator requires `wx-config'.  The
>                         * `wx-config' executable could not be located 
> in any
>                         * directory of the PATH environment variable. 
> If you
>                         * want to build WXAgg, and wx-config is in some
>                         * other location or has some other name, set the
>                         * WX_CONFIG environment variable to the full 
> path of
>                         * the executable like so:  export 
> WX_CONFIG=/usr/lib
>                         * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
>                     Qt: no
>                    Qt4: no
>                  Cairo: no
>                 libpng: unknown (no pkg-config)
>
> [Edit setup.cfg to suppress the above messages]
> ============================================================================
>
> Does this mean that it's unable to find the win32_static directory?  I 
> have in in the matplotlibdirectory.
No.  The line:

   freetype2: unknown (no pkg-config)

indicates that the freetype2 headers were found, but it couldn't 
determine the version through pkg-config.  If it wasn't able to find it, 
it would hav said "freetype2: no".  On second glance, I admit that 
message might be confusing.  Do you think "found, but unknown version" 
would be better?
>   I think I'm confused on something:  In the win32 directory, there 
> are instructions for building under cygwin--but is it necessary to 
> build, or does matplotlib just require the library files and their 
> headers, which it should be able to find in the win32_static directory?
I'll defer on that question to someone with more matplotlib + Windows 
experience.

Cheers,
Mike

>
> Cheers,
> William
>
> On 8/1/07, *Michael Droettboom* <mdroe@... 
> <mailto:mdroe@...>> wrote:
>
>     It looks like I screwed up the order of libraries between
>     freetype2 and
>     zlib.  (It was updated to use pkg-config to determine the freetype
>     dependencies where possible, but that inadvertently broke Windows.)
>
>     Please 'svn up' and try again.  Sorry for the inconvience.
>
>     Cheers,
>     Mike
>
>     william ratcliff wrote:
>     > Is it possible that the freetype library in win32_static is out
>     of date?
>     >
>     > Cheers,
>     > William
>     >
>     > On 8/1/07, *william ratcliff* < william.ratcliff@...
>     <mailto:william.ratcliff@...>
>     > <mailto:william.ratcliff@...
>     <mailto:william.ratcliff@...>>> wrote:
>     >
>     >     Ok--that did fix the expandtabs bug!  I can now see where
>     there is
>     >     a failure in the build:
>     >
>     >     Found executable C:\Python24\Enthought\MingW\bin\g++.exe
>     >     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160):
>     >     undefined refer
>     >     ence to `inflateInit2_'
>     >     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7):
>     >     undefined refer
>     >     ence to `inflateEnd'
>     >     win32_static\lib/libfreetype.a(
>     ftgzip.o):ftgzip.c:(.text+0x522):
>     >     undefined refer
>     >     ence to `inflateReset'
>     >     win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8):
>     >     undefined refer
>     >     ence to `inflate'
>     >     collect2: ld returned 1 exit status
>     >     error: Command "g++ -mno-cygwin -shared build\temp.win32-
>     >     2.5\Release\src\ft2font
>     >     .o build\temp.win32-2.5\Release\src\mplutils.o
>     >     build\temp.win32-2.5\Release\cxx\
>     >     cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o
>     >     build\temp.win32-
>     >     2.5\Release\cxx\indirectpythoninterface.o
>     >     build\temp.win32- 2.5\Release\cxx\cxxex
>     >     tensions.o -Lwin32_static\lib -Lc:\python25\libs
>     >     -Lc:\python25\PCBuild -lz -lfre
>     >     etype -lpython25 -lmsvcr71 -o
>     >     build\lib.win32-2.5\matplotlib\ft2font.pyd " failed
>     >      with exit status 1
>     >
>     >
>     >     suggestions?
>     >
>     >     Thanks,
>     >     William
>     >
>     >
>     >     On 8/1/07, *Michael Droettboom* < mdroe@...
>     <mailto:mdroe@...>
>     >     <mailto:mdroe@...
<mailto:mdroe@...>>> wrote:
>     >
>     >         That's my bad from my changes to setup.py yesterday.
>     >
>     >         Please update from SVN and try again.
>     >
>     >         Cheers,
>     >         Mike
>     >
>     >         william ratcliff wrote:
>     >         > I tried the new setup.py script and found:
>     >         >
>     >         > C:\matplotlib\trunk\matplotlib>c:\python25\python.exe
>     >         setup.py build
>     >         >
>     ============================================================================
>     >
>     >         > BUILDING MATPLOTLIB
>     >         >             matplotlib: 0.90.1 (r3634)
>     >         >                 python: 2.5.1 (r251:54863, Apr 18 2007,
>     >         08:51:08) [MSC
>     >         >                         v.1310 32 bit (Intel)]
>     >         >               platform: win32
>     >         > Traceback (most recent call last):
>     >         >   File "setup.py", line 122, in <module>
>     >         >     print_status('Windows version',
>     sys.getwindowsversion ())
>     >         >   File "C:\matplotlib\trunk\matplotlib\setupext.py", line
>     >         119, in
>     >         > print_status
>     >         >     subsequent_indent=indent)
>     >         >   File "c:\python25\lib\textwrap.py", line 315, in fill
>     >         >     return w.fill(text)
>     >         >   File "c:\python25\lib\textwrap.py", line 287, in fill
>     >         >     return "\n".join( self.wrap(text))
>     >         >   File "c:\python25\lib\textwrap.py", line 274, in wrap
>     >         >     text = self._munge_whitespace(text)
>     >         >   File "c:\python25\lib\textwrap.py", line 122, in
>     >         _munge_whitespace
>     >         >     text = text.expandtabs ()
>     >         > AttributeError: 'tuple' object has no attribute
>     'expandtabs'
>     >         >
>     >         > Any ideas?  Thanks!!!
>     >         >
>     >         > William
>     >         >
>     >         >
>     >         > On 8/1/07, * Michael Droettboom* < mdroe@...
>     <mailto:mdroe@...>
>     >         <mailto:mdroe@... <mailto:mdroe@...>>
>     >         > <mailto: mdroe@... <mailto:mdroe@...>
>     <mailto:mdroe@...
<mailto:mdroe@...>>>> wrote:
>     >         >
>     >         >     william ratcliff wrote:
>     >         >     > I have a question about building from source on
>     windows:
>     >         >     > I have installed freetype2 and libpng, for zlib,
>     I have
>     >         a collection
>     >         >     > of dlls,
>     >         >     > But, where do I place these so that matplotlib
>     can find
>     >         them
>     >         >     (for the
>     >         >     > include files, libraries, etc.  Are there any
>     that I
>     >         have to
>     >         >     > rename?)?  I am using mingw for compilation and
>     python
>     >         2.5--I have
>     >         >     > built numpy successfully from source and have
>     installed
>     >         >     wxpython.  I
>     >         >     > have the latest version of matplotlib from the
>     trunk of
>     >         the svn
>     >         >     > repository.
>     >         >     As of yesterday, the setup.py script should give a
>     little
>     >         more
>     >         >     feedback
>     >         >     about where it is looking for external
>     dependencies.  I
>     >         took great
>     >         >     care
>     >         >     to not change any of the Windows behavior, since I
>     didn't
>     >         have a
>     >         >     Windows
>     >         >     box handy to test with.  If you are still stuck after
>     >         following the
>     >         >     existing directions, the output of setup.py may offer
>     >         some clues.
>     >         >
>     >         >     Cheers,
>     >         >     Mike
>     >         >
>     >         >
>     >
>     >
>     >
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Gmane