Re: [matplotlib-devel] Bug in Interactive Save with WX Backend

2009-11-03 Thread Michael Droettboom
No problem.  Many of the developers don't follow the tracker as closely 
as the mailing list.  I'll look at this bug later today.

Cheers,
Mike

Robert Schroll wrote:
 Dear all,

 I hope this isn't considered gauche, but:

 A few weeks ago, I added a bug [1] I had found when saving figures from 
 the toolbar with a WX-based backend.  I think it's a simple issue, and I 
 included the simple fix that worked for me.  Since then there's been no 
 apparent activity on it.  Is there something more I need to do on it?

 If someone is already taking care of it, I apologize for hassling you. 
 But if the fix is as simple as I think it is, it would be a shame to 
 have it fall through the cracks.

 Thanks,
 Robert

 [1]https://sourceforge.net/tracker/?func=detailatid=560720aid=2880836group_id=80706

 --
 Come build with us! The BlackBerry(R) 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/devconference
 ___
 Matplotlib-devel mailing list
 Matplotlib-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
   

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


--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Incorrect output from demo_text_path.py on mac

2009-11-03 Thread Jae-Joon Lee
On Tue, Nov 3, 2009 at 4:23 AM, tcb thecolourblu...@gmail.com wrote:
 and if I convert the dvi with dvipng, it all seems in order
 (demo_text_path_tex.png). I haven't looked closely into how the textpath
 stuff works, but I thought it would read the dvi as a path, and display that
 on the screen- if that is correct then I dont know how it ends up displaying
 a different symbol from what is in the dvi file.

Well, dvi files only contains the name of the tex font. What textpath
does is to pick up corresponding type I font and convert them to path
using the freetype library (as far as I know, this is what dvipng and
matplotlib pdf backend does). So, my guess is that, textpath is
somehow picking up wrong fonts, or wrong glyphs.

The code works fine at least in my mac os X tiger w/ texlive 2008, and
in ubuntu with texlive 2007.
As I don't have any access to mac os X 10.6, it would be hard to track
down what is wrong. Here are a few more test I wish you to run.

*) Check if pdf backend produces a correct result. Do not use textpath
example, but simply use text command with usetex=True, and see if the
pdf output is okay. FWIW, the textpath code is largely borrowed from
the pdfbackend.

*) Run the attached code, and post the terminal output. The output is
basically the name of the tex font and the name of the substituted
type1 font, etc. For your reference, here is my output.

texname, type1name, enc, char_id
cmex10 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmex10.pfb
None CMEX10-34
cmsy10 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmsy10.pfb
None CMSY10-49
cmex10 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmsy10.pfb
None CMEX10-88
cmmi12 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmmi12.pfb
None CMMI12-110
cmr17 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMR17-61
cmr17 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMR17-49
cmsy10 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMSY10-0
cmmi12 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMMI12-101
cmmi12 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMMI12-105
cmmi12 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMMI12-25
cmr17 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMR17-50
cmmi12 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMMI12-110
cmex10 /usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb
None CMEX10-35
pncr8r /usr/local/texlive/2008/texmf-dist/fonts/type1/urw/ncntrsbk/uncr8a.pfb
/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc
Century%20Schoolbook%20L%20Roman-232

Regards,

-JJ


demo_text_path2.py
Description: Binary data
--
Come build with us! The BlackBerry(R) 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/devconference___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] SVN ltk error

2009-11-03 Thread Wayne Werner
Hi,

I was following the directions found here:

http://old.nabble.com/ImportError:-No-module-named-mplot3d-td24291309.html

which consists of:
svn co
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
matplotlib

python setup.py install

-when I executed that last command I get the following:

wa...@x61:matplotlib$ sudo python setup.py install

BUILDING MATPLOTLIB
matplotlib: 1.0.svn
python: 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)  [GCC
4.3.3]
  platform: linux2

REQUIRED DEPENDENCIES
 numpy: 1.3.0
 freetype2: 9.20.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.27
   Tkinter: Tkinter: 70220, Tk: 8.5, Tcl: 8.5
  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
  Gtk+: gtk+: 2.16.1, glib: 2.20.1, pygtk: 2.14.1,
pygobject: 2.16.1
   Mac OS X native: no
Qt: no
   Qt4: no
 Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
  datetime: present, version unknown
  dateutil: 1.4.1
  pytz: 2008h

OPTIONAL USETEX DEPENDENCIES
dvipng: no
   ghostscript: 8.64
 latex: 3.141592
   pdftops: 0.10.5

[Edit setup.cfg to suppress the above messages]

pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -
build/lib.linux-i686-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -
build/lib.linux-i686-2.6/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._tkagg' extension
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/src/agg_py_transforms.o
build/temp.linux-i686-2.6/src/_tkagg.o
build/temp.linux-i686-2.6/CXX/cxx_extensions.o
build/temp.linux-i686-2.6/CXX/cxxsupport.o
build/temp.linux-i686-2.6/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.6/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/local/lib -ltk8.5 -ltcl8.5 -lstdc++ -lm -lfreetype -lz -lstdc++ -lm
-o build/lib.linux-i686-2.6/matplotlib/backends/_tkagg.so
/usr/bin/ld: cannot find -ltk8.5
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1


I've searched for the ltk8.5 error on google and wasn't able to find
anything that helped. One that looked promising but failed to help:
http://old.nabble.com/Building-matplotlib-0.99.1.1:-cannot-find--ltk8.5-(whereas-0.91.4-works)-td25677275.html#a25677275

I really want the mpl_toolkits.mplot3d library...

Thanks for any help,
Wayne
--
Come build with us! The BlackBerry(R) 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/devconference___
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-11-03 Thread Stéfan van der Walt
Hi JJ

2009/11/2 Jae-Joon Lee lee.j.j...@gmail.com:
 I now think this is not the dpi issue.
 Can you check the size of your figure in mac os X backend, after the
 plot is drawn?

 print f.get_size_inches()

 8x6 inch is the default.

It says [4, 2.52], so I think you are right!

 So, my recommendation is to use smaller dpi for screen display
 (default is something like 80), and increase the dpi when saving the
 figure (savefig has a dpi parameter).

This fixes the problem.  Now, why does the MacOSX end do this when
none of the others do?

Thanks for helping me track this down!
Stéfan

--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Closing paths in PolyCollection

2009-11-03 Thread John Hunter
On Mon, Nov 2, 2009 at 4:59 PM, Matthew West mw...@illinois.edu wrote:
 Hi,

 The PolyCollection class currently closes the path for each polygon by
 adding a last point the same as the first point. This means that the
 line joins will be different on this point. I've submitted a patch to
 make PolyCollection use Path.CLOSEPOLY to close the path, which makes
 the line joins on the stroking correct.

 See 
 https://sourceforge.net/tracker/?func=detailaid=2890979group_id=80706atid=560722

 There is also a small test script and the current and expected output
 attached to the above tracker entry.

 Please let me know if there is some other way this should be fixed.

Project Admin
Hide

I attempted to apply this but it triggered three regression test failures --
this may be simply because the regression test is expecting a different
number of verts in the simplification tests, but I am going to assign this
to Michael, who wrote the tests, so he can update the tests and the patch
at the same time

For future patches, if possible, please submit an svn diff as these are
easier to apply.
Thanks,
JDH



==
FAIL: matplotlib.tests.test_simplification.test_noise
--
Traceback (most recent call last):
File
/opt/app/g++lib6/python-2.4.5/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py,
line 182, in runTest
self.test(*self.arg)
File
/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/tests/test_simplification.py,
line 72, in test_noise
assert len(simplified) == 2675
AssertionError

==
FAIL: matplotlib.tests.test_simplification.test_sine_plus_noise
--
Traceback (most recent call last):
File
/opt/app/g++lib6/python-2.4.5/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py,
line 182, in runTest
self.test(*self.arg)
File
/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/tests/test_simplification.py,
line 89, in test_sine_plus_noise
assert len(simplified) == 628
AssertionError

==
FAIL: matplotlib.tests.test_simplification.test_start_with_moveto
--
Traceback (most recent call last):
File
/opt/app/g++lib6/python-2.4.5/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py,
line 182, in runTest
self.test(*self.arg)
File
/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/tests/test_simplification.py,
line 166, in test_start_with_moveto
assert segs[0][1] == Path.MOVETO
AssertionError

--
Ran 107 tests in 74.927s

FAILED (KNOWNFAIL=34, errors=3, failures=3)

--
Come build with us! The BlackBerry(R) 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/devconference
___
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-11-03 Thread John Hunter
2009/11/3 Stéfan van der Walt ste...@sun.ac.za:
 Hi JJ

 2009/11/2 Jae-Joon Lee lee.j.j...@gmail.com:
 I now think this is not the dpi issue.
 Can you check the size of your figure in mac os X backend, after the
 plot is drawn?

 print f.get_size_inches()

 8x6 inch is the default.

 It says [4, 2.52], so I think you are right!

 So, my recommendation is to use smaller dpi for screen display
 (default is something like 80), and increase the dpi when saving the
 figure (savefig has a dpi parameter).

 This fixes the problem.  Now, why does the MacOSX end do this when
 none of the others do?

 Thanks for helping me track this down!

Perhaps you can file a bug report on the tracker so Michiel can look into it?

Thanks,
JDH

--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] curved quiver arrows

2009-11-03 Thread jason-sage
How hard would it be to extend the quiver command to support curved 
arrows?  For example, the U and V arrays, instead of giving just the 
vector, could for each vector give a list of x coordinates and a list of 
y coordinates for each segment of a vector.  Additionally, C could give 
either a color for the curved vector, or a list of colors for each 
segment of the vector.

Thanks,

Jason


--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] [ANN] For SF Bay Area residents: a discussion with Guido at the Berkeley Py4Science seminar

2009-11-03 Thread Fernando Perez
Hi folks,

if you reside in the San Francisco Bay Area, you may be interested in
a meeting we'll be having tomorrow November 4 (2-4 pm), as part of our
regular py4science meeting series.  Guido van Rossum, the creator of
the Python language, will visit for a session where we will first do a
very rapid overview of a number of scientific projects that use Python
(in a lightning talk format) and then we will have an open discussion
with Guido with hopefully interesting questions going in both
directions.  The meeting is open to all, bring your questions!

More details on this seminar series (including location) can be found here:

https://cirl.berkeley.edu/view/Py4Science

Cheers,

f

--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] curved quiver arrows

2009-11-03 Thread Eric Firing
jason-s...@creativetrax.com wrote:
 How hard would it be to extend the quiver command to support curved 
 arrows?  For example, the U and V arrays, instead of giving just the 
 vector, could for each vector give a list of x coordinates and a list of 
 y coordinates for each segment of a vector.  Additionally, C could give 
 either a color for the curved vector, or a list of colors for each 
 segment of the vector.

Very hard.  I would recommend starting from scratch with a new class.  I 
think that very little of the present Quiver code would be usable.

Eric

--
Come build with us! The BlackBerry(R) 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/devconference
___
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-11-03 Thread Stéfan van der Walt
2009/11/3 John Hunter jdh2...@gmail.com:
 Perhaps you can file a bug report on the tracker so Michiel can look into it?

Here we go:

https://sourceforge.net/tracker/?func=detailaid=2891502group_id=80706atid=560720

Cheers
Stéfan

--
Come build with us! The BlackBerry(R) 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/devconference
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] curved quiver arrows

2009-11-03 Thread jason-sage
Eric Firing wrote:
 jason-s...@creativetrax.com wrote:
 How hard would it be to extend the quiver command to support curved 
 arrows?  For example, the U and V arrays, instead of giving just the 
 vector, could for each vector give a list of x coordinates and a list 
 of y coordinates for each segment of a vector.  Additionally, C could 
 give either a color for the curved vector, or a list of colors for 
 each segment of the vector.

 Very hard.  I would recommend starting from scratch with a new class.  
 I think that very little of the present Quiver code would be usable.


Okay.  Thanks for the estimate.

Jason


--
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel