Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
John Hunter wrote: > On Mon, Jan 26, 2009 at 8:40 AM, Michael Droettboom wrote: > >> Support for handling NaNs in curves is now on the branch and trunk. >> >> While this solves the infinite recursion problem, it still may be better in >> your specific case to use a CirclePolygon. All my fix do

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 8:40 AM, Michael Droettboom wrote: > Support for handling NaNs in curves is now on the branch and trunk. > > While this solves the infinite recursion problem, it still may be better in > your specific case to use a CirclePolygon. All my fix does is remove an > entire bezie

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
Support for handling NaNs in curves is now on the branch and trunk. While this solves the infinite recursion problem, it still may be better in your specific case to use a CirclePolygon. All my fix does is remove an entire bezier curve when any of its elements are non-finite -- so we're talkin

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
At one point in history, the Agg backend would not do NaN removal on paths with curves -- but it looks like that's been inadvertently lost, probably in all the shuffling wrt simplification that went on, since simplification has similar restrictions. So at present, we have problems because it's

Re: [Matplotlib-users] plotting a circle in log space

2009-01-24 Thread John Hunter
On Fri, Jan 23, 2009 at 2:06 PM, Michael Hearne wrote: > I have discovered, from the mailing list, the easy way to draw a circle > in linear space: > ...snip > cx = 700 > cy = 700 > r = 1000 > > xmin = cx - r > xmax = cx + r > ymin = cy - r > ymax = cy + r > > cir = Circle( (cx,cx), radius=r,facec

[Matplotlib-users] plotting a circle in log space

2009-01-23 Thread Michael Hearne
I have discovered, from the mailing list, the easy way to draw a circle in linear space: cx = 700 cy = 700 r = 1000 xmin = cx - r xmax = cx + r ymin = cy - r ymax = cy + r cir = Circle( (cx,cx), radius=r,facecolor='w',edgecolor='b') a = gca() a.add_patch(cir) axis([xmin,xmax,ymin,ymax]) axis('