I tried that, but that will make the entire plot look very strange if xlim = [0;100] and ylim=[-1:1].

What I really want to do is add a scale free aspect ratio correct circle to the plot. Just like the circles that appear on a scatter plot.

Best regards,

Mads

On 2011-03-09 14:44, Aman Thakral wrote:
Hi Mads,

Did you add axis='equal' to you axes command?

e.g. ax  =  fig.add_subplot(111,  aspect='equal')


-Aman

On Wed, Mar 9, 2011 at 6:07 AM, Mads Ipsen <madsip...@gmail.com <mailto:madsip...@gmail.com>> wrote:

    Hi,

    I am using the Qt4 based back engine for displaying a 2D plot in a
    widget. The plot typically contains lots of line plots. Suppose I
    add a
    CirclePolygon to the plot like this:

    circle = CirclePolygon((x,y), radius=0.04, edgecolor='black',
    facecolor='red', zorder=1)
    axes.add_patch(circle)

    Then when I start to zoom in the window the aspect ratio of the circle
    is not preserved (it appears like an ellipse). If you plot a line with
    points, displaying its points using circles, these circles do have
    their
    aspect ratio (and size) preserved. There must be some approach for
    achieving the same effect for a manually added circle.

    Any help is appreciated,

    Best regards,

    Mads

    --
    +--------------------------------------------------------------+
    | Mads Ipsen, Scientific developer                             |
    +-------------------------------+------------------------------+
    | QuantumWise A/S               | phone:          +45-29716388 |
    | Lersø Parkallé 107            | www: www.quantumwise.com
    <http://www.quantumwise.com> |
    | DK-2100 Copenhagen Ø, Denmark | email: mads.ip...@gmail.com
    <mailto:mads.ip...@gmail.com> |
    +-------------------------------+------------------------------+



    
------------------------------------------------------------------------------
    Colocation vs. Managed Hosting
    A question and answer guide to determining the best fit
    for your organization - today and in the future.
    http://p.sf.net/sfu/internap-sfd2d
    _______________________________________________
    Matplotlib-users mailing list
    Matplotlib-users@lists.sourceforge.net
    <mailto:Matplotlib-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
+--------------------------------------------------------------+
| Mads Ipsen, Scientific developer                             |
+-------------------------------+------------------------------+
| QuantumWise A/S               | phone:          +45-29716388 |
| Lersø Parkallé 107            | www:     www.quantumwise.com |
| DK-2100 Copenhagen Ø, Denmark | email:  mads.ip...@gmail.com |
+-------------------------------+------------------------------+


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to