From: André W. <wo...@us...> - 2014-01-06 22:10:21
|
Gert, Thank you for the suggestion. You're right, and we should probably rethink the data handling. It is rather old code, and its design probably predates the Python 2.2 release, where iterators have been introduced. At least it was working on older Python versions for many years. I'm making myself a note and we can probably address this in one of the next releases. Best, André Am 06.01.2014 um 09:19 schrieb Gert Ingold <ger...@ph...>: > Dear André and Jörg, > > first of all a happy (and productive;-) new year! > > I just started to make my first plots with PyX 0.13 and came across > the following problem. In graph.data.points I frequently use something > like zip(xvals, yvals) where xvals would be e.g. a Numpy linspace and > yvals is evaluated by applying Numpy functions to xvals. With Python 2 > this > works fine because zip produces a list. However, in Python 3, zip > produces an > iterable which is not compatible with graph.data.points requiring an > object > with a len-method. I am wondering whether it would make sense to > rewrite > graph.data.points in such a way that it accepts iterables. It seems > that > this would be more Python3-like. What do you think? > > Best regards, > Gert > > -- > Gert-Ludwig Ingold email: Ger...@Ph... > Institut für Physik Phone: +49-821-598-3234 > Universität Augsburg Fax: +49-821-598-3222 > D-86135 Augsburg WWW: www.physik.uni-augsburg.de/theo1/ingold > Germany PGP: 86FF5A93, key available from homepage > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > PyX-devel mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-devel -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |