In 0.98 ellipse is drawn using bezier curves, which do not scale correctly in log-scaled plots.
As an alternative, you can use a RegularPolygon with a high number of vertices (this is exactly what 0.91 did). Mike Yves Revaz wrote: > Dear list, > > How is it possible to draw a nice ellipse in a log-log plot using > patches.Ellipse ? > With matplotlib 0.91 I was able to to that using : > Ellipse((log10(100),log10(100)), width=100, height=100,alpha=0.5) > > Now, it seems that something has changed in version 0.98 and I do not > need to ad the log10 > in Ellipse. However, instead of having a nice ellipse, I get a kind of > patatoïd ? > See the example below. > How can I fix it ? > > Thanks in advance, > > yves > > > > > > from numpy import * > import pylab as pt > from matplotlib.patches import Ellipse > > > ax = pt.gca() > > e = Ellipse((100,100), width=100, height=100,alpha=0.5) > ax.add_artist(e) > > pt.semilogx() > pt.semilogy() > > pt.axis([1,1e3,1,1e3]) > > pt.show() > > -- 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users