Re: [matplotlib-devel] Comparing pdf output in tests

2009-09-27 Thread Jouni K . Seppänen
Andrew Straw  writes:

> Thus, the call to savefig() would continue not to explicitly set the
> extension. I've quickly modified the source to reflect my idea, but I
> haven't had a chance to flesh it out or test it. It should show the
> idea, though. See attached.

I committed something based on this, and a new rc parameter
savefig.extension that sets the filename extension when you call savefig
with a bare filename. The pdf tests seem to be working, at least for me,
but I am sure that the code can be improved.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Layout of subplots in output

2009-09-27 Thread Stéfan van der Walt
Hi all,

When saving plots (using plt.figsave and matplotlib from SVN)
consisting of subplots, the layout is a bit messed up.  As an example,
have a look at

http://mentat.za.net/refer/segmentation.pdf

I have tried adjusting the figure size, the font size, the w- and
hspace, etc.  Is this a known problem, or am I doing something silly?

Thanks for your time,
Stéfan

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Layout of subplots in output

2009-09-27 Thread Eric Firing
Stéfan van der Walt wrote:
> Hi all,
> 
> When saving plots (using plt.figsave and matplotlib from SVN)
> consisting of subplots, the layout is a bit messed up.  As an example,
> have a look at
> 
> http://mentat.za.net/refer/segmentation.pdf

Wow, that's really ugly!  I suspect that for anyone to provide any help 
on this, you will need to supply a minimal script to show what you are 
doing.  I take it you are starting with something that looks reasonable 
on the screen, but comes out quite different when you save it?

Eric

> 
> I have tried adjusting the figure size, the font size, the w- and
> hspace, etc.  Is this a known problem, or am I doing something silly?
> 
> Thanks for your time,
> Stéfan
> 


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Fwd: OS X 10.6 port

2009-09-27 Thread John Hunter
in case anyone has some suggestions, I'm forwarding this from the sage list


-- Forwarded message --
From: William Stein 
Date: Sun, Sep 27, 2009 at 10:51 PM
Subject: OS X 10.6 port
To: sage-devel , John Hunter 


Hi,

I spent several hours yesterday trying to get matplotlib for Sage to
work on OS X 10.6.  On my laptop everything works perfectly, but on
another test machine (bsd.math) the workaround from my laptop doesn't
work.  So at this point Sage still does not support OS X 10.6.

The problem is in matplotlib's C++ wrapper for freetype2.  It's a
Python extension module implemented directly in C++, and it simply
doesn't work correctly at all.  For example, whenever it tries to
raise a Python exception, it just terminates Python with

"11713 Abort trap              sage-ipython "$@" -i"

I'm cc'ing John Hunter -- author of matplotlib, in case he has any
advice to share.  In particular, he has an account on
bsd.math.washington.edu and build tests matplotlib there, so I'm
curious if he has any issues with that.  Note that Sage builds
freetype from source, which could be relevant.

I will try updating freetype in Sage (our version is slightly out of
date), and also checking if there is some sort of conflict with a
system-wide freetype.  My worry is that Matplotlib has some weird
custom C++ code for writing extensions that maybe uses signals or
something to raise exceptions, and it is just broken when used with OS
X 10.6.  Hopefully this is not that the case, and something special to
Sage is happening.

William

--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel