Problem with Arcs

Hello all

I'm having some troubles with Arcs in MPL. Using the following code:

            circ = Arc( (0,0), width=2, height=2, angle=0.0,
theta1=0.0, theta2=360.0, ec=None, fc=None)
            axes.add_patch(circ)

gives:

Traceback (most recent call last):
  File "pystereo22.py", line 524, in onPlotRose
    circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0,
theta2=360.0, ec=None, fc='none')
  File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line
1043, in __init__
    fill = kwargs.pop('fill')
KeyError: 'fill'

It's working fine with Circle or Ellipse. I'm trying to use Arc
because I only want a half-circle.

Thanks all

···

--
Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008
carlos dot grohmann at gmail dot com
http://www.igc.usp.br/pessoais/guano/
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can’t stop the signal.

Arcs exist as an optimization to render really large circles and ellipses with high accuracy.

    An elliptical arc. Because it performs various optimizations, it
    can not be filled.

If you want to draw a filled, yet partial, circle, I believe you want to use Wedge.

Cheers,
Mike

Carlos Gu�no Grohmann wrote:

···

Hello all

I'm having some troubles with Arcs in MPL. Using the following code:

            circ = Arc( (0,0), width=2, height=2, angle=0.0,
theta1=0.0, theta2=360.0, ec=None, fc=None)
            axes.add_patch(circ)

gives:

Traceback (most recent call last):
  File "pystereo22.py", line 524, in onPlotRose
    circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0,
theta2=360.0, ec=None, fc='none')
  File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line
1043, in __init__
    fill = kwargs.pop('fill')
KeyError: 'fill'

It's working fine with Circle or Ellipse. I'm trying to use Arc
because I only want a half-circle.

Thanks all

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

Have you tried specifying a value for fill?

2009/5/18 Carlos "Guâno" Grohmann <carlos.grohmann@...287...>:

···

Hello all

I'm having some troubles with Arcs in MPL. Using the following code:

       circ = Arc\( \(0,0\), width=2, height=2, angle=0\.0,

theta1=0.0, theta2=360.0, ec=None, fc=None)
axes.add_patch(circ)

gives:

Traceback (most recent call last):
File "pystereo22.py", line 524, in onPlotRose
circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0,
theta2=360.0, ec=None, fc='none')
File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line
1043, in __init__
fill = kwargs.pop('fill')
KeyError: 'fill'

It's working fine with Circle or Ellipse. I'm trying to use Arc
because I only want a half-circle.

Thanks all

--
Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008
carlos dot grohmann at gmail dot com
http://www.igc.usp.br/pessoais/guano/
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can’t stop the signal.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Thanks Mike,

Actually, I don't want it to be filled, but the wedge did what I
wanted, so I'm sticking with it.

cheers

2009/5/18 Michael Droettboom <mdroe@...86...>:

···

Arcs exist as an optimization to render really large circles and ellipses
with high accuracy.

An elliptical arc. Because it performs various optimizations, it
can not be filled.

If you want to draw a filled, yet partial, circle, I believe you want to use
Wedge.

Cheers,
Mike

Carlos Guâno Grohmann wrote:

Hello all

I'm having some troubles with Arcs in MPL. Using the following code:

       circ = Arc\( \(0,0\), width=2, height=2, angle=0\.0,

theta1=0.0, theta2=360.0, ec=None, fc=None)
axes.add_patch(circ)

gives:

Traceback (most recent call last):
File "pystereo22.py", line 524, in onPlotRose
circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0,
theta2=360.0, ec=None, fc='none')
File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line
1043, in __init__
fill = kwargs.pop('fill')
KeyError: 'fill'

It's working fine with Circle or Ellipse. I'm trying to use Arc
because I only want a half-circle.

Thanks all

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

--
Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008
carlos dot grohmann at gmail dot com
http://www.igc.usp.br/pessoais/guano/
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can’t stop the signal.

Well.. that worked. I didn't tried at first because the docs says it
can't be filled...

cheers

2009/5/18 Roban Hultman Kramer <roban@...2124...>:

···

Have you tried specifying a value for fill?

2009/5/18 Carlos "Guâno" Grohmann <carlos.grohmann@...287...>:

Hello all

I'm having some troubles with Arcs in MPL. Using the following code:

       circ = Arc\( \(0,0\), width=2, height=2, angle=0\.0,

theta1=0.0, theta2=360.0, ec=None, fc=None)
axes.add_patch(circ)

gives:

Traceback (most recent call last):
File "pystereo22.py", line 524, in onPlotRose
circ = Arc( (0,0), width=2, height=2, angle=0.0, theta1=0.0,
theta2=360.0, ec=None, fc='none')
File "/usr/lib/python2.5/site-packages/matplotlib/patches.py", line
1043, in __init__
fill = kwargs.pop('fill')
KeyError: 'fill'

It's working fine with Circle or Ellipse. I'm trying to use Arc
because I only want a half-circle.

Thanks all

--
Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008
carlos dot grohmann at gmail dot com
http://www.igc.usp.br/pessoais/guano/
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can’t stop the signal.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008
carlos dot grohmann at gmail dot com
http://www.igc.usp.br/pessoais/guano/
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can’t stop the signal.