Re: [Matplotlib-users] legend is not properly drawn when a plot is saved in 'pdf' format

2008-04-24 Thread Michael Droettboom
I don't suspect another distro will make a difference.  The bug is in 
matplotlib's Cairo backend (it's interface to Cairo), not in Cairo 
itself.  Change your backend to PDF and you can avoid this bug.  In the 
meantime, we'll need to fix the Cairo backend in matplotlib.  Sorry I 
wasn't clearer the first time.

Cheers,
Mike

Yong-Duk Jin wrote:
 Well, I may have to try it from another distro.
 Thanks ^^

 On Thu, Apr 24, 2008 at 3:12 AM, Michael Droettboom [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 This bug seems to be Cairo-backend specific.  The Python PDF
 backend seems to work fine.  Most likely a problem in the Cairo
 backend and not Cairo itself, but I haven't dug any further.

 Cheers,
 Mike

 Joshua Lippai wrote:

 I just tested it on OS X using the wxAgg backend, and it
 appears to be
 fine. I've atached the pdf image. What GUI are you having
 matplotlib
 use?

 Josh

 On Wed, Apr 23, 2008 at 8:50 AM, Yong-Duk Jin
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  

 I'm using matplotlib 0.91.2 from ubuntu hardy 8.04

 When I saved a plot in a pdf format the legend is not
 properly drawn.
 I attached the figure to demonstrate the problem. The
 legend box(?)
 is smaller than the legend label.

 I used the following code to draw this test plot.

 from pylab import *
 x = []; y = []
 figure(figsize=(2,2))
 Angle = '0.0'
 plot(x,y,label='0.0deg'); axis([0,1,0,1]); legend()
 savefig('test.pdf')

 Any comment?

 --
 Yong-Duk Jin
 
 -
  This SF.net email is sponsored by the 2008 JavaOne(SM)
 Conference
  Don't miss this year's exciting event. There's still time
 to save $100.
  Use priority code J8TL2D2.

 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users


  
  
 



 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM)
 Conference Don't miss this year's exciting event. There's
 still time to save $100. Use priority code J8TL2D2.
 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



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




 -- 
 Yong-Duk Jin 

-- 
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 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] legend is not properly drawn when a plot is saved in 'pdf' format

2008-04-23 Thread Michael Droettboom
This bug seems to be Cairo-backend specific.  The Python PDF backend 
seems to work fine.  Most likely a problem in the Cairo backend and not 
Cairo itself, but I haven't dug any further.

Cheers,
Mike

Joshua Lippai wrote:
 I just tested it on OS X using the wxAgg backend, and it appears to be
 fine. I've atached the pdf image. What GUI are you having matplotlib
 use?

 Josh

 On Wed, Apr 23, 2008 at 8:50 AM, Yong-Duk Jin [EMAIL PROTECTED] wrote:
   
 I'm using matplotlib 0.91.2 from ubuntu hardy 8.04

 When I saved a plot in a pdf format the legend is not properly drawn.
 I attached the figure to demonstrate the problem. The legend box(?)
 is smaller than the legend label.

 I used the following code to draw this test plot.

 from pylab import *
 x = []; y = []
 figure(figsize=(2,2))
 Angle = '0.0'
 plot(x,y,label='0.0deg'); axis([0,1,0,1]); legend()
 savefig('test.pdf')

 Any comment?

 --
 Yong-Duk Jin
 -
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
  Don't miss this year's exciting event. There's still time to save $100.
  Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users


 
 

 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 

-- 
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 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users