Re: [matplotlib-devel] Backend for Pyside

2011-04-11 Thread Gerald Storer
Hi,
I've submitted a pull request with backend changes that (should) let all 
currently supported versions of PyQt work along side PySide.  I've 
tested with PyQt 4.8.3 and PySide 1.0.0.

I haven't bothered chasing down old versions of PyQt as they seem elusive.

Gerald.

On 29/03/2011 3:25 AM, butt...@gmail.com wrote:
> Looking forward, supporting the Python 3 compatible PyQt API is likely 
> the way to go.
>
> Le , Gerald Storer  a écrit :
> > On 28/03/2011 1:10 AM, Peter Butterworth wrote:
> >
> >
> > Wouldn't it be possible to use a single backend compatible with both
> >
> > PyQt and Pyside ?
> >
> >
> > The current Qt mpl backend uses the old PyQt slots/signals API which 
> PySide doesn't really support (there are some macros but they don't 
> work 100% the same).  From a quick glance at the IPython 
> implementation it looks like they are using the new API which means 
> older versions (<4.5) of PyQt won't be supported. This might be ok, I 
> don't know.
> >
> > If it isn't then, there will need to be some try...excepts around 
> the place or separate back ends.  If you ignore the PySide bugs I had 
> to work around I've only changed ~4 lines in the main backend.
> >
> >
> >
> > Pierre's formlayout is also using an obsolete method that isn't 
> present in PySide.  I've opted to emulate it, but it would be best to 
> change the code to use the alternative method available in both PyQt 
> and PySide.  formlayout also uses the old QString implementation of 
> PyQt, PySide only supports the new implementation where QString is 
> transparently convert to/from str/unicode.  Setting QString = unicode 
> seems to work though.
> >
> >
> >
> > Gerald.
> > 

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Fwd: Source of inaccuracies in the matplotlib library

2011-04-11 Thread Konrad Bartkowski

Ok, forwarding it to the matplotlib-devel list.

Best wishes,

Konrad (on behalf of our workgroup)


 Original Message 
Subject:Source of inaccuracies in the matplotlib library
Date:   Fri, 8 Apr 2011 18:12:47 +0200
From:   Bartkowski, Konrad 

To: d...@cornell.edu , md...@stsci.edu 
, efir...@hawaii.edu , 
jdhun...@ace.bsd.uchicago.edu , 
jdh2...@gmail.com 
CC: Bartkowski, Konrad , 
el...@interia.pl , Matthias Bolten 
, Grotendorst, Johannes 
, Steffen, Bernhard 




Dear Matplotlib developers,

I am writing about the matplotlib library with the mpl_toolkits. First
of all let me emphasize how great software it is. Recently, in one of
our projects we were rendering big surfaces and encountered the
following problem:

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg06869.html

It's not a bug (which all in all is a natural and unavoidable ingredient
of the software, and especially in such a big and complex system like
matplotlib would be fully natural), since the software does exactly the
projection mathematics that it is expected to do, but a source of the
inaccuracies, which is especially visible in the critical examples. For
the profit of the Python community we are sending You a proposition of a
modification of the surface plotting rendering system, in case You find
it interesting enough to include in the consecutive version of the
library. In the source code from the attachment we redesigned a little
bit the computation process – since the computations are especially
sensible to numerical errors, that are for example amplified while
norming or processing the quaterions in the various stages (for example
division over coordinate in the perspective projection). Therefore the
computational focus can be shifted from the Polygon collection to the
polygons itself. In the example from the above forum or the slightly
modified one, one can observe a big difference in the numerical
precision while the speed of the computations does not decrease (at
least visibly). While instead of the surfaces from the forum, the
following surfaces are rendered:

u = np.linspace(0, 2 * np.pi, 100)
v = np.linspace(0, np.pi, 100)

x = 10 * np.outer(np.cos(u), np.sin(v))
y = 10 * np.outer(np.sin(u), np.sin(v))
z = 10 * np.outer(np.ones(np.size(u)), np.cos(v))

ax.plot_surface(x, y, z, rstride=8, cstride=8, color='y', alpha=0.5)
shiftX=28
shiftY=28
X,Y=np.meshgrid(range(-20+shiftX,20+shiftX),range(-20+shiftY,20+shiftY))
Z=np.ones((X.shape[0], Y.shape[1]))
ax.plot_surface(X, Y, Z, color='r', rstride=10, cstride=10, alpha=1.0)

the issue is visible for example at the azimuth=40 , elevation=70 – with
those parameters the mentioned case is visible on the red surface, while
with elevation=68 not. Moreover, now also the stride is big (in the new
approach the influence of increasing stride on the numerical precision
grows).
So again let me use this opportunity to thank You for empowering the
Python community worldwide in a great, powerful scientific visualization
tool.

Best wishes,
Konrad Bartkowski





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



Besuchen Sie uns auf unserem neuen Webauftritt unter www.fz-juelich.de
def plot_surface(self, X, Y, Z, *args, **kwargs):
'''
Create a surface plot.

By default it will be colored in shades of a solid color,
but it also supports color mapping by supplying the *cmap*
argument.

= 
Argument  Description
= 
*X*, *Y*, *Z* Data values as numpy.arrays
*rstride* Array row stride (step size)
*cstride* Array column stride (step size)
  

[matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Michael Droettboom
I couldn't find the old thread about Sourceforge bug tracker vs. the 
Github issue tracker, but maybe we should reevaluate based on the new 
Github issue tracker announced on Saturday:

https://github.com/blog/831-issues-2-0-the-next-generation

The integration with git commits (closing issues by mentioning them in 
the commit message) is particularly compelling.

Cheers,
Mike

-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Darren Dale
On Mon, Apr 11, 2011 at 12:13 PM, Michael Droettboom  wrote:
> I couldn't find the old thread about Sourceforge bug tracker vs. the
> Github issue tracker, but maybe we should reevaluate based on the new
> Github issue tracker announced on Saturday:
>
> https://github.com/blog/831-issues-2-0-the-next-generation
>
> The integration with git commits (closing issues by mentioning them in
> the commit message) is particularly compelling.

The new issue tracker is a really big improvement over the old github
tracker, and I prefer it to the one at sourceforge since it integrates
so nicely with github version control. The github tracker is still
missing some features that we may want to consider: prioritize issues,
add attachments, and perhaps report issues without opening a github
account.

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Paul Ivanov
Darren Dale, on 2011-04-11 13:24,  wrote:
> On Mon, Apr 11, 2011 at 12:13 PM, Michael Droettboom  wrote:
> > I couldn't find the old thread about Sourceforge bug tracker vs. the
> > Github issue tracker, but maybe we should reevaluate based on the new
> > Github issue tracker announced on Saturday:
> >
> > https://github.com/blog/831-issues-2-0-the-next-generation
> >
> > The integration with git commits (closing issues by mentioning them in
> > the commit message) is particularly compelling.
> 
> The new issue tracker is a really big improvement over the old github
> tracker, and I prefer it to the one at sourceforge since it integrates
> so nicely with github version control. The github tracker is still
> missing some features that we may want to consider: prioritize issues,
> add attachments, and perhaps report issues without opening a github
> account.

I'm fine either way - though moving to GitHub certainly makes
sense as it has momentum - whereas SF.net has been stagnating and
not getting any faster for quite some time now.

My only concern / request is that we transfer and/or clean up
(wholesale) the sf.net bug tracker before we move to GH. It'd be
a disservice to our users if we just ignored or mass-closed those
issues in the transition to GH.

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 


signature.asc
Description: Digital signature
--
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Darren Dale
On Mon, Apr 11, 2011 at 3:02 PM, Paul Ivanov  wrote:
> Darren Dale, on 2011-04-11 13:24,  wrote:
>> On Mon, Apr 11, 2011 at 12:13 PM, Michael Droettboom  wrote:
>> > I couldn't find the old thread about Sourceforge bug tracker vs. the
>> > Github issue tracker, but maybe we should reevaluate based on the new
>> > Github issue tracker announced on Saturday:
>> >
>> > https://github.com/blog/831-issues-2-0-the-next-generation
>> >
>> > The integration with git commits (closing issues by mentioning them in
>> > the commit message) is particularly compelling.
>>
>> The new issue tracker is a really big improvement over the old github
>> tracker, and I prefer it to the one at sourceforge since it integrates
>> so nicely with github version control. The github tracker is still
>> missing some features that we may want to consider: prioritize issues,
>> add attachments, and perhaps report issues without opening a github
>> account.
>
> I'm fine either way - though moving to GitHub certainly makes
> sense as it has momentum - whereas SF.net has been stagnating and
> not getting any faster for quite some time now.
>
> My only concern / request is that we transfer and/or clean up
> (wholesale) the sf.net bug tracker before we move to GH. It'd be
> a disservice to our users if we just ignored or mass-closed those
> issues in the transition to GH.

I spent a weekend working on porting the issues to github.
https://github.com/ddale/mpl-issues contains an xml dump of the
sourceforge tracker, along with the script I used to parse the dump
file, filter it, and upload the issues to that repo. It could be
improved to add labels, assign to developers, assign milestones, once
github provides API access to issues-2.0.

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


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Eric Firing
On 04/11/2011 07:24 AM, Darren Dale wrote:
> On Mon, Apr 11, 2011 at 12:13 PM, Michael Droettboom  wrote:
>> I couldn't find the old thread about Sourceforge bug tracker vs. the
>> Github issue tracker, but maybe we should reevaluate based on the new
>> Github issue tracker announced on Saturday:
>>
>> https://github.com/blog/831-issues-2-0-the-next-generation
>>
>> The integration with git commits (closing issues by mentioning them in
>> the commit message) is particularly compelling.
>
> The new issue tracker is a really big improvement over the old github
> tracker, and I prefer it to the one at sourceforge since it integrates
> so nicely with github version control. The github tracker is still
> missing some features that we may want to consider: prioritize issues,
> add attachments, and perhaps report issues without opening a github
> account.

It is better, but to my eye, still not good.

Prioritization can be handled via labels or milestones, but the lack of 
a simple, obvious attachment facility is a huge omission.  As far as I 
know there is also no simple set of categories for closed status--maybe 
that would also be done with labels. (I'm not positive; I have not 
closed an item, and nothing happens when I click the "60 closed issues" 
tab, expecting to see the closed issues.  Similarly, nothing happens 
when I click the "submitted" "updated", and "comments" buttons.  Maybe 
all these things are bugs that show up if one does not have Firefox 4 or 
Chrome?)  The automatic, compulsory, irrevocable Markdown parsing of all 
comments is a horrible design, and all the more so in the absence of 
file up/download facility.

It's being used; I think we are stuck with it.  I have no objection to 
getting the migration over with, if you have the machinery to do it, Dale.

Eric

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


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Michael Droettboom
On 04/11/2011 03:51 PM, Eric Firing wrote:
> On 04/11/2011 07:24 AM, Darren Dale wrote:
>
>> On Mon, Apr 11, 2011 at 12:13 PM, Michael Droettboom   
>> wrote:
>>  
>>> I couldn't find the old thread about Sourceforge bug tracker vs. the
>>> Github issue tracker, but maybe we should reevaluate based on the new
>>> Github issue tracker announced on Saturday:
>>>
>>> https://github.com/blog/831-issues-2-0-the-next-generation
>>>
>>> The integration with git commits (closing issues by mentioning them in
>>> the commit message) is particularly compelling.
>>>
>> The new issue tracker is a really big improvement over the old github
>> tracker, and I prefer it to the one at sourceforge since it integrates
>> so nicely with github version control. The github tracker is still
>> missing some features that we may want to consider: prioritize issues,
>> add attachments, and perhaps report issues without opening a github
>> account.
>>  
> It is better, but to my eye, still not good.
>
> Prioritization can be handled via labels or milestones, but the lack of
> a simple, obvious attachment facility is a huge omission.  As far as I
> know there is also no simple set of categories for closed status--maybe
> that would also be done with labels.
Labels could be used for that purpose -- but it would be "by 
convention", so I can imagine we'd forget to do that from time to time.
>   (I'm not positive; I have not
> closed an item, and nothing happens when I click the "60 closed issues"
> tab, expecting to see the closed issues.  Similarly, nothing happens
> when I click the "submitted" "updated", and "comments" buttons.
I see this too.  And I think we're not the only ones -- there's a bug 
filed about it:

http://support.github.com/discussions/issues-issues/608-closed-tickets-do-not-show-up-in-the-list-firefox-3615

(Hmm... git doesn't use its own issue tracker for tracking its own 
issues... what does that say? )
>Maybe
> all these things are bugs that show up if one does not have Firefox 4 or
> Chrome?)  The automatic, compulsory, irrevocable Markdown parsing of all
> comments is a horrible design,
The Wikis on github support a handful of formatting languages, including 
reStructuredText (which is what my fingers know best) -- so they "have 
the technology" to do something else.  But honestly, for short issue 
comments, I think plain text is the best choice.
>   and all the more so in the absence of
> file up/download facility.
>
They've got gist, of course, but it is neither easy or intuitive for 
casual use.

Mike
> It's being used; I think we are stuck with it.  I have no objection to
> getting the migration over with, if you have the machinery to do it, Dale.
>
> Eric
>
> --
> 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
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>


-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA


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


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Darren Dale
On Mon, Apr 11, 2011 at 3:40 PM, Michael Droettboom  wrote:
> (Hmm... git doesn't use its own issue tracker for tracking its own
> issues... what does that say? )

Brilliant, whatever they use allows uploading attachments.

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


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Benjamin Root
On Mon, Apr 11, 2011 at 4:19 PM, Darren Dale  wrote:

> On Mon, Apr 11, 2011 at 3:40 PM, Michael Droettboom 
> wrote:
> > (Hmm... git doesn't use its own issue tracker for tracking its own
> > issues... what does that say? )
>
> Brilliant, whatever they use allows uploading attachments.
>
>
Maybe it would be made available for "Issues: Deep Space Nine", or do I have
to wait until "Voyager"?

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


Re: [matplotlib-devel] New issue tracker on GitHub

2011-04-11 Thread Eric Firing
On 04/11/2011 11:19 AM, Darren Dale wrote:
> On Mon, Apr 11, 2011 at 3:40 PM, Michael Droettboom  wrote:
>> (Hmm... git doesn't use its own issue tracker for tracking its own
>> issues... what does that say?)
>
> Brilliant, whatever they use allows uploading attachments.

They are using this: http://tenderapp.com/


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