Re: [matplotlib-devel] incorrect rendering of quadratic bezier path in ps and pdf backend

2008-09-09 Thread Michael Droettboom
Thanks for taking this on.  That was completely my bad -- I put that 
code in there as a reasonable approximation and meant to go back and fix 
it, but it fell through the cracks.

One small note -- the PDF output was broken for acroread (but strangely 
not for xpdf), since it was outputting 8 values rather than 6 for the 
converted quadratic curves.  I've fixed this in SVN.

Cheers,
Mike

Jouni K. Seppänen wrote:
> "Jae-Joon Lee" <[EMAIL PROTECTED]> writes:
>
>   
>> I'm attaching a patch (for pdf and ps backends) which I believe
>> correctly handle this.
>> I hope this patch is reviewed and applied. Note that the function
>> _quad2cubic is duplicated in both backends. This function might be
>> moved to some common place.
>> 
>
> Looks good. I applied this, with the quad2cubic function moved to
> cbook.py and your test case included in the examples directory. Thanks!
>
>   

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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Matplotlib website down?

2008-09-09 Thread Michael Droettboom
I'm getting a 404 error from http://matplotlib.sf.net/

Is this just Sourceforge suffering an outage or did the content 
accidentally get removed?

Cheers,
Mike

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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib website down?

2008-09-09 Thread John Hunter
On Tue, Sep 9, 2008 at 7:43 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> I'm getting a 404 error from http://matplotlib.sf.net/
>
> Is this just Sourceforge suffering an outage or did the content
> accidentally get removed?

It seems like a blip because it is up (for me) now

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib website down?

2008-09-09 Thread Michael Droettboom
Me, too, now as well.

John Hunter wrote:
> On Tue, Sep 9, 2008 at 7:43 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>   
>> I'm getting a 404 error from http://matplotlib.sf.net/
>>
>> Is this just Sourceforge suffering an outage or did the content
>> accidentally get removed?
>> 
>
> It seems like a blip because it is up (for me) now
>
> JDH
>   

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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Ginput bug

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

I noticed that `ginput` no longer works (tested with SVN trunk).  Is
this a known problem?

Kind regards,
Stéfan

---
PyDeadObjectError Traceback (most recent call last)

/Users/stefan/ in ()

/Users/stefan/lib/python2.5/site-packages/matplotlib/pyplot.pyc in
ginput(*args, **kwargs)
353 If *timeout* is negative, does not timeout.
354 """
--> 355 return gcf().ginput(*args, **kwargs)
356 if Figure.ginput.__doc__ is not None:
357 ginput.__doc__ = dedent(Figure.ginput.__doc__)

/Users/stefan/lib/python2.5/site-packages/matplotlib/figure.pyc in
ginput(self, n, timeout, show_clicks)
   1039 blocking_mouse_input = BlockingMouseInput(self)
   1040 return blocking_mouse_input(n=n, timeout=timeout,
-> 1041 show_clicks=show_clicks)
   1042
   1043 def waitforbuttonpress(self, timeout=-1):

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in __call__(self, n, timeout, show_clicks)
235 self.clicks  = []
236 self.marks   = []
--> 237 BlockingInput.__call__(self,n=n,timeout=timeout)
238
239 return self.clicks

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in __call__(self, n, timeout)
105 finally: # Run even on exception like ctrl-c
106 # Disconnect the callbacks
--> 107 self.cleanup()
108
109 # Return the events in this case

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in cleanup(self)
222 mark.remove()
223 self.marks = []
--> 224 self.fig.canvas.draw()
225
226 # Call base class to remove callbacks

/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.pyc
in __getattr__(self, *args)
  14312 if not hasattr(self, "_name"):
  14313 self._name = "[unknown]"
> 14314 raise PyDeadObjectError(self.attrStr % self._name)
  14315
  14316 def __nonzero__(self):

PyDeadObjectError: The C++ part of the FigureCanvasWxAgg object has
been deleted, attribute access no longer allowed.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] incorrect rendering of quadratic bezier path in ps and pdf backend

2008-09-09 Thread Jouni K . Seppänen
Michael Droettboom <[EMAIL PROTECTED]> writes:

> One small note -- the PDF output was broken for acroread (but strangely 
> not for xpdf), since it was outputting 8 values rather than 6 for the 
> converted quadratic curves.  I've fixed this in SVN.

Thanks for fixing this -- Apple's Preview also showed the broken files
with no problems.

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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel