[matplotlib-devel] Detailed instructions for compiling matplotlib on Windows XP

2010-12-13 Thread Ian Bell
Hello all,

I finally, after much pain and anguish, succeeded at compiling MPL with
GTKAgg on windows and I thought people might be interested to know how I
managed it.  Of course, your mileage may vary...


   1. Install Python (I used the Python (x,y) distribution of 2.6:
   http://code.google.com/p/pythonxy/wiki/Downloads
   2. Install the GTK bits and pieces.  For some reason using the newest
   ones causes some problems with paths.  I can confirm that this set works on
   at least two computers:
   
Glade3.6.7withGTK+.exe<http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe>
   (Install this to c:\GTK so that MPL build can find it without playing with
   paths)
   
pygtk-2.12.1-3.win32-py2.6.exe<http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.6.exe>
   
pycairo-1.4.12-2.win32-py2.6.exe<http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.6.exe>
   
pygobject-2.14.2-2.win32-py2.6.exe<http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.6.exe>
   3. Install 
libpng<http://downloads.sourceforge.net/gnuwin32/libpng-1.2.37-setup.exe>and
   freetype <http://gnuwin32.sourceforge.net/downlinks/freetype.php> using
   the installers (also includes the zlib dll).  They will default to install
   to c:\Program Files\GnuWin32 . This is fine, but note the location.
   4. Either checkout the MPL source from subversion, or download a
tarball<http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/?view=tar>and
unpack it
   5. Download the win32_static
files<http://matplotlib.sourceforge.net/win32_static_vs.tar.gz>,
   and unpack them to the place where your MPL source is, you should then have
   a folder in the MPL source folder called win32_static
   6. Open the file setupext.py in the MPL source folder
   7. Edit line 51 (or so) to read:: 'win32' : ['win32_static','c:\\Program
   Files\\GnuWin32']
   8. Install Visual Studio 2008
Express<http://www.microsoft.com/express/Downloads/#2008-Visual-CPP>if
you do not have a version of Visual Studio 2008 on your computer
   9. Open a console and type:: python setup.py build --compiler=msvc
   bdist_wininst
   10. Wait for it to finish, then:: python setup.py install  to install MPL
   11. If everything worked right, you should be able to open a python shell
   and type
   >> import matplotlib
   >> matplotlib.use('GTKAgg')
   >> import pylab
   >> pylab.plot(0,4,'s')
   >> pylab.show()
   12. And you should see a GTK rendered plot window with a small square in
   the center hopefully

Improvements to this procedure would be greatly appreciated - but this
finally seems to work..

Regards,
Ian

Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev ___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Problems building Sphinx sampledoc tutorial on Windows

2011-01-18 Thread Ian Bell
Hello all,

I am trying (unsuccessfully at present) to build the sampledoc tutorial on
windows with the freshest sampledoc tutorial and svn-build matplotlib on
windows xp, and I was wondering if I was missing a step along the way.  I
would really like to be able to use Sphinx to document my project.  A
collection of errors is generated when I try to do

make html

in the root sampledoc_tut folder that I pulled from svn.  When I open the
generated html files, rather than seeing the plots on the extensions page, I
see no-image icons and the links to the code, png, and pdf files are output
as :

[`source code 
<.\plot_directive\pyplots/ellipses.py>`__
, `hires.png 
<.\plot_directive\pyplots/ellipses.hires.png>`__
,`pdf 
<.\plot_directive\pyplots/ellipses.pdf>`__
]

Something seems to be messed up somewhere along the way.  It should build
straight away out of the box, no??

The build errors that I get are:

C:\Documents and
Settings\ibell\Desktop\sampledoc_tut\sphinxext\inheritance_diagram.py:312:
DeprecationWarning: xfileref_role is deprecated, use XRefRole
  'class', ':class:`%s`' % name, name, 0, state)

C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst::
(ERROR/3) Anonymous hyperlink mismatch: 5 references but 0 targets.
See "backrefs" attribute for IDs.

C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst::
WARNING: image file not readable:
C:\DocumentsandSettings\ibell\Desktop\sampledoc_tut\build\plot_directive\pyplots\ellipses.png
C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst::
WARNING: image file not readable:
C:\DocumentsandSettings\ibell\Desktop\sampledoc_tut\build\plot_directive\pyplots\ellipses.pdf
C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst::
WARNING: image file not readable:
C:\DocumentsandSettings\ibell\Desktop\sampledoc_tut\build\plot_directive\inline\aa2bc10136.png
C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst::
WARNING: image file not readable:
C:\DocumentsandSettings\ibell\Desktop\sampledoc_tut\build\plot_directive\inline\aa2bc10136.pdf
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 50%] extensions
###writing output... [100%] index

C:\Documents and Settings\ibell\Desktop\sampledoc_tut\extensions.rst:220:
(WARNING/2) 'dot' called with invalid arguments

writing additional files... genindex search
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 6 warnings.
process_begin: CreateProcess(NULL, echo, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [html] Error 2

Any help would be greatly appreciated.

Ian



Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Bug in Sphinx plotdirective on Windows

2011-01-30 Thread Ian Bell
Ben,

I'm building with the freshest subversion build of MPL with Sphinx 1.0.7 and
Windows XP.  I'd be happy to give you any other information that you need,
just let me know.

Ian

----
Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626


On Sun, Jan 30, 2011 at 11:34 PM, Benjamin Root  wrote:

> On Sunday, January 30, 2011, Ian Bell  wrote:
> > I have built the sphinx sampledoc tutorial without problems on Ubuntu and
> OSX, but I'm having problems on Windows.  I have filed a bug regarding the
> problems I am having with the plot directive.  For some reason the
> hyperlinks to the PDF and  get messed up on windows, but are fine on OSX and
> Ubuntu.  I have to run a virtual machine just to compile my documentation.
>  Needless to say, not optimal.  I attached a screenshot with the messed up
> links, and I have posted the build errors I get that I think are related to
> the problems with the plot directive.  I have the same problem in my own
> documentation that I am building on my own plotting module based on MPL.
> >
> >
> > D:\My_Documents\sampledoc_tut2\extensions.rst:: (ERROR/3) Anonymous
> hyperlink mismatch: 5 references but 0 targets.See "backrefs" attribute for
> IDs.
> >
> > process_begin: CreateProcess(NULL, echo, ...) failed.
> > make (e=2): The system cannot find the file specified.make: *** [html]
> Error 2
> >
> > 
> > Ian Bell
> > Graduate Research Assistant
> > Herrick Labs
> > Purdue University
> > email: [email protected]
> > cell: (607)227-7626
> >
> >
>
> Curious, there are forward slashes in those links.  Which version of
> mpl are you building documentation for?
>
> Ben Root
>
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Bug in Sphinx plotdirective on Windows

2011-01-30 Thread Ian Bell
Ben,

Its the main trunk, svn info is below:

Path: .
URL:
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
Repository Root: https://matplotlib.svn.sourceforge.net/svnroot/matplotlib
Repository UUID: f61c4167-ca0d-0410-bb4a-bb21726e55ed
Revision: 8935
Node Kind: directory
Schedule: normal
Last Changed Author: pivanov314
Last Changed Rev: 8935
Last Changed Date: 2011-01-24 04:41:49 -0500 (Mon, 24 Jan 2011)

Ian


Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626


On Mon, Jan 31, 2011 at 1:36 AM, Benjamin Root  wrote:

> On Sunday, January 30, 2011, Ian Bell  wrote:
> > Ben,
> > I'm building with the freshest subversion build of MPL with Sphinx 1.0.7
> and Windows XP.  I'd be happy to give you any other information that you
> need, just let me know.
> >
> >
> > Ian
> > Ian Bell
> > Graduate Research Assistant
> > Herrick Labs
> > Purdue University
> > email: [email protected]
> > cell: (607)227-7626
> >
>
> From which branch?  The development branch or the maintenance branch?
> If you aren't sure, just paste the results of 'svn info' (or whatever
> equivalent in your windows svn client).
>
> Ben Root
>
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Bug in Sphinx plotdirective on Windows

2011-02-01 Thread Ian Bell
Ben,

I had a thought about what you noticed with the paths, so I got in there and
modified plot_directive.py to replace all the '/' with os.sep, but it didn't
seem to do anything.  All the links were still broken even though it seems
like they all point to the right places.  A problem of absolute versus
relative paths?  The paths to the inline plots all seem to take absolute
paths and the RST links are relative.

Ian


Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626


On Mon, Jan 31, 2011 at 1:43 AM, Ian Bell  wrote:

> Ben,
>
> Its the main trunk, svn info is below:
>
> Path: .
> URL:
> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
> Repository Root: https://matplotlib.svn.sourceforge.net/svnroot/matplotlib
> Repository UUID: f61c4167-ca0d-0410-bb4a-bb21726e55ed
> Revision: 8935
> Node Kind: directory
> Schedule: normal
> Last Changed Author: pivanov314
> Last Changed Rev: 8935
> Last Changed Date: 2011-01-24 04:41:49 -0500 (Mon, 24 Jan 2011)
>
> Ian
>
> 
> Ian Bell
> Graduate Research Assistant
> Herrick Labs
> Purdue University
> email: [email protected]
> cell: (607)227-7626
>
>
> On Mon, Jan 31, 2011 at 1:36 AM, Benjamin Root  wrote:
>
>> On Sunday, January 30, 2011, Ian Bell  wrote:
>> > Ben,
>> > I'm building with the freshest subversion build of MPL with Sphinx 1.0.7
>> and Windows XP.  I'd be happy to give you any other information that you
>> need, just let me know.
>> >
>> >
>> > Ian
>> > Ian Bell
>> > Graduate Research Assistant
>> > Herrick Labs
>> > Purdue University
>> > email: [email protected]
>> > cell: (607)227-7626
>> >
>>
>> From which branch?  The development branch or the maintenance branch?
>> If you aren't sure, just paste the results of 'svn info' (or whatever
>> equivalent in your windows svn client).
>>
>> Ben Root
>>
>
>
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Installing GTK and matplotlib on OSX

2011-03-27 Thread Ian Bell
I have been able to get pygtk installed on OSX by following these
instructions, and it works fine:
http://kedeligdata.blogspot.com/2011/03/building-pygtk-for-mac.html

I would really like to get GTK working on OSX since I have done some app
development using GTK and Glade, and I can get GTK and Glade working without
problems on both Windows and Linux machines.  OSX is the thorn in my side at
the moment.

FYI: In make.osx, the path for the libpng install is no longer any good, the
correct full path should be
http://sourceforge.net/projects/libpng/files/libpng12/1.2.44/libpng-1.2.44.tar.gz/download
The linpng folks seem to have relocated their installation files on the
sourceforge server.

When altering the paths for GTK, what modifications are required?  How can I
help the matplotlib install find the GTK files?

Regards,
Ian


Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626
--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Bleeding edge repository location

2011-04-12 Thread Ian Bell
Where is the bleeding edge MPL source located?  It doesn't seem to be
subversion,
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/stuck
at revision 8988  or
https://github.com/astraw/matplotlib, which is also from november of last
year.  If the bleeding-edge code is somewhere else, would it be possible to
update the MPL website to reflect this?

Regards,
Ian


----
Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Bleeding edge repository location

2011-04-12 Thread Ian Bell
Fernando,

Perfect!  Thanks for the information.  Perhaps this can get updated on the
web somehow?

Ian


Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: [email protected]
cell: (607)227-7626


On Tue, Apr 12, 2011 at 6:28 PM, Fernando Perez wrote:

> Hi Ian,
>
> On Tue, Apr 12, 2011 at 3:03 PM, Ian Bell  wrote:
> > Where is the bleeding edge MPL source located?  It doesn't seem to be
> > subversion,
> >
> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/
> > stuck at revision 8988  or https://github.com/astraw/matplotlib, which
> is
> > also from november of last year.  If the bleeding-edge code is somewhere
> > else, would it be possible to update the MPL website to reflect this?
>
> sorry for the doc confusion, the new official repo (for all mpl
> development) lives at:
>
> https://github.com/matplotlib/matplotlib
>
> Cheers,
>
> f
>
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel